Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal

Simple bar spread indicator as reported by the OnCalculate data - indicator for MetaTrader 5
- Views:
- 4700
- Rating:
- Published:
- 2022.05.01 14:05
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This is a very simple MQL5 code for an indicator to plot the values of the spread[] data (in points) as reported by the OnCalculate event handler. These are the same spread data values that would be returned when collecting MqlRates data via the CopyRates function.

The indicator shows the percentage of the 'Close' price above and below the 'iMA' indicator

The color indicator shows in a separate window the moment if the intersection of two iMA (MOving Average, MA) was on the current bar

Colored Stochastic smoothed with iMA (Moving Average, MA)

Martingale strategy based on custom indicator 'MACD Four Colors 2'