escape – EA MetaTrader 5
Author of the idea — pcbiz, author of the MQL5 code — barabashkakvn. The Expert Advisor trades based on two iMA: iMA(5) and iMA(4) on the M5 timeframe. Individual TakeProfit and StopLoss levels are set for Buy and Sell. Block for making decisions: if(!ExistPositions()) { double diClose_M5_1=iClose(1,Symbol(),PERIOD_M5); double diMA5=iMAGet(handle_iMA_5,1); double diMA4=iMAGet(handle_iMA_4,1); if((diClose_M5_1<diMA5)) { OpenBuy(); return; } if((diClose_M5_1>diMA4)) { … Read more