simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 6 months ago

Not too bad, if you have no or only minimum experience in coding mq4!
I did not check the function yet, but looks ok at first sight.
What you should change in any case is adding indentation, function headers, etc: give your code a meaningful structure! I would suggest to read this post of mine, load the software and apply it to a copy…[Read more]
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Could anybody provide a little more technical detail, maybe a link to a site where this topic is covered?
s.
simplex replied to the topic Trading made REALLY Simple: Coder's Chat in the forum Development 10 years, 6 months ago
Thanks for pointing this out! The forum software changes names of uploaded files from time to time. Better to place them in zip containers.
s.
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 6 months ago
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 6 months ago

Absolutely correct – that’s it! The highest warning level of this indicator will be dumped in a black hole without a warning.
Who wants that?
s.
Edit: Adding #property strict is always the first thing I do before compiling downloaded code. All those hidden little sins of fellow coders displayed as compiler errors and warnings. Ok -…[Read more]
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 6 months ago

Absolutely correct – that’s it! The highest warning level of this indicator will be dumped in a black hole without a warning.
Who wants that?
s.
simplex replied to the topic Q & A For MQ4 Coding Newbies in the forum Development 10 years, 6 months ago
Ok:
(a) A loop over those m bars is exactly the thing to do first. I would prefer a for () { … } in this case, others might go for a while () { … } . What I like with for loops: the basic loop control is on top, I see it at a glance. (b) Inverting those negative ranges would imply to check for sign first and then multiply by -1. Easier to…[Read more]
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 6 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, 6 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, 6 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, 6 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, 6 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, 6 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, 6 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, 6 months ago
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 6 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, 6 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, 6 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, 6 months ago
Hi John,
how do you deal with the repainting issue introduced by using a Hodrick-Prescott filter?
s.
simplex replied to the topic Trading made REALLY Simple in the forum Development 10 years, 6 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.
- Load More