DislikedSq, I am tired. I have had a heavy couple of days. Right now, I couldn't give a toss.
More to the point, I trust your judgement/coding/intellect 100%. Do me a huge favour please. Just post a fixed ea here that I can adopt into post 1 and then forget, please.
Cheers, pal.
Ignored
All righty!
Here is the modified EA.
To be tested before taking this for granted
It calcs and draws the Square lines properly in any timeframe.
When "SquareTimeFrame" is set to H4(240), it will convert that to H1 bars to avoid the "broker-GMT-offset syndrom", so everyone should have the same Square lines whatever broker and TF you are using.
Brian:
Your explanation confirms my understanding of how the Square should be drawn.
However, using H4 timeframe leaves you with the "GMT-offset syndrom" issue: if you open the same H4 chart on brokers with different GMT-offsets, then your Square lines will be "anchored" at different "absolute times", and therefore may show different levels:
If broker1 is GMT+0, then the first H4 bar of this broker's "day" is at 00:00GMT.
If broker2 is GMT+2, then the first H4 bar of this broker's "day" is at 02:00GMT, therefore giving different square levels.
This is why i proposed to convert H4 bars to the equivalent number of H1 bars.
This mod of the EA uses this concept.
Sq
Attached File(s)
Brijon Concept of Threes auto trading robot by Steve Hopwood.mq4
58 KB
|
360 downloads