Search found 86 matches

Re: Check previous 10 candles/bars and determine the lowest close price

I found this, I think that will do the trick. mt5 code double Highest(string symbol,ENUM_TIMEFRAMES timeframe,int count=WHOLE_ARRAY,int start=0)   {    double highest=0;    double High[];    ArraySetAsSeries(High,true);    int copied=CopyHigh(symbol,timeframe,start,count,High);    int index=ArrayMax...

Check previous 10 candles/bars and determine the lowest close price

Hi, How could have a function that checks the previous 10 candles/bars and determine the lowest close price of those candles/bars?I found this for MT4,but I need a function that works with mt5 ... double CalcStopLoss() { double sl; double LowestClose = Low[iLowest( NULL, 0, MODE_CLOSE, 10, 1 )]; dou...

Return to the advanced search