Forum

How long will mt4 be totally obsolete?

1 year 3 years 5 years 10 years never

EA change lot size according to previous operation

Hello Someone can help me. I'm doing an EA and I want to change the price according to the result of the previous operation OrderSelect ( 1 , SELECT_BY_POS , MODE_HISTORY ); if ( OrderProfit ()=< 0 ) lotaje1=lotaje1+step1; else if ( OrderProfit ()> 0 ) lotaje1=_LOT_trade_1; Try doing it