Overlay Chart

johnnybegoode

Trader
Jul 19, 2016
56
0
22
44
Shouldn't there be some sort of CopyBuffer or ArrayInitialize to O[] after the
"O[_i] = _CurRangeCenter + _SubOpen * _PipsRatio;" line?

O[0] for now in the CHFJPY example is around 107.262 instead of the indicator's plotted value of around 1.12443 when overlaid on the EURUSD chart in the attached chart example.

The value of O[0] is not current.

Screen_Shot_2016_07_22_at_1_03_46_PM.png
 

ruma29

Master Trader
Nov 12, 2016
58
4
49
54
Enivid, USD index is frozen between 4pm EST and is normal at 8pm EST...so when overlay any other currency pair with USD index there is offset..doesn't match charts. All other pairs are OK. is it possible to fix that offset? Thank you.
 

Enivid

Administrator
Staff member
Nov 30, 2008
15,903
789
144
Odessa
www.earnforex.com
It took me quite long, but I have finally updated the MQL5 version of the OverlayChart indicator to properly synchronize subcharts that have fewer (or more) bars than the host chart. For example, here is the EUR/USD chart with S&P500 index futures overlaid on H1 timeframe - when there are not enough bars, no subsymbol bar appears on the chart:

sp500-on-eurusd.png

And this is the German DAX30 index futures chart with EUR/USD added to it. When there is no place to display the more frequent EUR/USD bars, they are skipped:

eurusd-on-dax30.png
 

Attachments

  • Like
Reactions: Loneblade and jagg

Eurotrade

Trader
Jan 9, 2020
1
0
6
70
It took me quite long, but I have finally updated the MQL5 version of the OverlayChart indicator to properly synchronize subcharts that have fewer (or more) bars than the host chart. For example, here is the EUR/USD chart with S&P500 index futures overlaid on H1 timeframe - when there are not enough bars, no subsymbol bar appears on the chart:

View attachment 14827

And this is the German DAX30 index futures chart with EUR/USD added to it. When there is no place to display the more frequent EUR/USD bars, they are skipped:

View attachment 14828
Thank you so mutch for this indicator - it works very well
 

masoud_da

Newbie
Apr 8, 2020
1
0
1
44
Hi .
I hope you are doing well
Thanks for your great site and information .
I found the OverlayChart.mq5 on your site .
I want to change it to an ea to see the bars on the chart .
But i want to migrate it to an ea and have 1 file inclusing the ea and indicator .
Can you help me to do this ?
The ea is not supposed to do anything . just see the OverlayChart on the screen .

Thanks
 

darioaquino

Newbie
Oct 8, 2019
2
0
2
39
@darioaquino I guess you could just add something like if (prev_calculated > 0) return(rates_total); at the top of the OnCalculate() function, but what is the point of preventing it from adding new bars?

this indicator of the option to start at the bar x set_center thus having a greater precision of the price distance
 

Attachments

Enivid

Administrator
Staff member
Nov 30, 2008
15,903
789
144
Odessa
www.earnforex.com
As I can see in the attached code, the indicator uses the Close value of a given bar instead of the High-Low range middle to draw the overlay chart. But how does that improve its precision?

It isn't difficult to change the current MT5 version to take the set_center bar as an input parameter, I just don't see how it makes anything better.