GbpChf – EA MetaTrader 5

GbpChf - expert for MetaTrader 5
The code of the adviser, excluding the position opening algorithm, is copied from the advisor Dual MACD  int size_need_position=ArraySize(SNeedPosition); if(main_0[1]>0 && main_1[1]>0) if(main_0[1]<main_1[1] && main_0[0]>main_1[0]) { if(!InpReverse) { ArrayResize(SNeedPosition,size_need_position+1); SNeedPosition[size_need_position].pos_type=POSITION_TYPE_BUY; return(true); } else { ArrayResize(SNeedPosition,size_need_position+1); SNeedPosition[size_need_position].pos_type=POSITION_TYPE_SELL; return(true); } } if(main_0[1]<0 && main_1[1]<0) if(main_0[1]>main_1[1] && main_0[0]<main_1[0]) Trading settings In the Expert Advisor, you can both enable … Read more