Spread history indicator

 

Hello,


I would to know if it's possible to have a spread history indicator

(not current spread).

In fact I wonder if MetaTrader save both bid and ask value in history.


Regards

 
scls19fr:

Hello,


I would to know if it's possible to have a spread history indicator

(not current spread).

In fact I wonder if MetaTrader save both bid and ask value in history

MT4 only saves open/high/low/close, all of Bid and only for the current chart.

It is possible to write a spread history indicator, but since the lowest chart is 1minute you would have to display the max/min/mean or rms spread (for example) during that bar. You could have an indicator line for each if you wanted. Otherwise you have to write the spread values to a file and use Excel or some other charting software.

 
You're going to have to write the spread values to a file if you want the indicator to display previous bars after a chart change/terminal restart/etc.
 
WHRoeder:
You're going to have to write the spread values to a file if you want the indicator to display previous bars after a chart change/terminal restart/etc.
Good point :-)
 

This spread indicator from the code base might be of interest ( I haven't checked it myself)

https://www.mql5.com/en/code/9324

 
Thanks
Reason: