@javaai
Active 10 years, 3 months agosmallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Thanks a lot G … and thanks for the great link too
Wow, so many great developments here and at main thread … thanks guys
smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Thanks a lot brother Kiads, this is a good example for me to understand “OnArray” better …

smallcat replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
msgArray[2] = “Low Volume”; clrArray[2] = Blue; // … etc … msgArray[13] = “Very High Vol < Prev 2”; clrArray[13] = DarkOrange; msgArray[14] = “CAUTION – Ultra High Volume”; clrArray[14] = Red; return(true); }
What will happen when we compile the code (a) without #property strict and (b) with #property strict included? In both cases, our code…[Read more]simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Here you are:
G. approved this by PM, so I’m posting it. Remember: this is nothing more than a quick copy and paste for now!
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Interesting:
Maybe we could discuss this ‘special’ inverse HP filter in a different thread?
s.
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Dear G.!
I’m not excited, and I’m focused, as far as possible. For a focused work, clarity about demand and priorities is a basic requirement.
Accomplished.
Accomplished. Any TF goes for my function.
This makes no sense at all. EA and Indicator can use the same function and the same library. The function reflects the core of this…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
My Peak and Trough indicator to test and check. Single TF for the moment, triple TF needs some code cleanup.
The EA will only need one of the functions: getClearState()
Place .mqh in your Include folder and compile.
Once this is approved to be ok I will post in the main thread including some remarks for @vlanfx to ensure for proper integration…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
My Peak and Trough indicator to test and check. Single TF for the moment, triple TF needs some code cleanup.
The EA will only need one of the functions: getClearState()
Place .mqh in your Include folder and compile.
Once this is approved to be ok I will post in the main thread including some remarks for @vlanfx to ensure for proper integration…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Hah, interesting:
We were working on the same thing. I found it over here, including a good pdf description.
@Lowphat: I’m currently debugging my CLEAR function, so you might save some work and wait for mine … or … see who’s faster!

@gg53: is your P&T identical to Clear Method or only similar?
I followed G.’s proposal over here and…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Hah, interesting:
We were working on the same thing. I found it over here, including a good pdf description.
@Lowphat: I’m currently debugging my CLEAR function, so you might save some work and wait for mine … or … see who’s faster!

@gg53: is your P&T identical to Clear Method or only similar?
I followed G.’s proposal over here and…[Read more]
simplex replied to the topic A Flexible And Compact Currency Strength Indicator in the forum Trading Systems Discussion 10 years, 4 months ago
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Great:
I’ll send you by PM in a few minutes for review.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Sorry G.:
I did not mean to intervene in your methodical development by proposing new priorities. This is not my job. I had an idea which possibly can help to work around one of the weaknesses of MT4 and threw it in, that’s all.
Last night I followed my own path of methodical development, worked through this thread top down and compiled its…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi John,
how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter?
Addendum: I would suggest you convert the script Peak_and_Valley.mq4 into an indicator so it can be verified that it does not repaint. From looking at the code, I would say it repaints heavily.
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
Hi John,
how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter?
s.
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Thanks G. The “5” here is just an example variable of X bars, just want to get the PreviousBar HH, HL, LH, LL. Based on :
Highest High = Previous Bar HighestHigh.
Lowest High = Previous Bar LowestHigh.
Highest Low = Previous Bar HighestLow.
Lowest Low = Previous Bar LowestLow
To get Previous Bar LowestHigh, as example, we need to define in…[Read more]
smallcat replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
Thanks G. The “5” here is just an example variable of X bars, just want to get the PreviousBar HH, HL, LH, LL. Based on :
Highest High = Previous Bar HighestHigh<br style=”color: #1a1a1a; font-family: Verdana, Helvetica, sans-serif; font-size: 13px; background-color: rgba(212, 213, 215, 0.407843);” />Lowest High = Previous Bar LowestHigh<br…
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 4 months ago
I’m coming back to this:
And what if we added a feature to our CS (or a script) that dumps CS filter results in a csv file, the EA reads this csv file during backtest and so ‘knows’ when to trade and when not to trade the current symbol?
This is a bit inconvenient, but it would be possible.
s.
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 4 months ago
G.:
I spotted the time interval and checked with my version. The indicator looks pretty similar, but it’s hard to believe that there are SO many deviations in our price data.
I’ll post my indicator in the main thread for you to check.
s.
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 4 months ago
Hi Guys!
Some of you will possibly remember that I don’t get tired to emphasize how important it is to include
#property stricton top of practically every MQL code.This afternoon I downloaded an indicator that shows a nice example of why this is so important. Experienced coders see it at a glance, but newbies please take some minutes to think…[Read more]
- Load More