Forum

Last trade result code problem

Hi everybody! I'm new with coding in mql4 and i'm having some issues while trying to implement money managment rules in my EA. Here is the code: bool last; //last trade result bool Last() //check last trade result { for ( int i=OrdersHistoryTotal()- 1 ;i>= 0 ;i--) {