Forum

Newbie Question: referencing an indicator from a EA

Hi I have wrote a few simple EA and have them running on a demo account . I now want to use the indicator Williams Fractals, I see the function iFractal, but note this is described as an indicator and the example uses onCalculate which is triggered by an indicator. Is there a difference when coding

Newbie Question: Candlestick Properties

Hi I'm new to MQL5 and forex trading, have written a basic EA to prove some of the syntax's and have this running on a demo account . I would like to analyse previous candles noting the length and open / close prices. x = candle[0].length; // Last Candle y = candle[1].length; // Candle previous to