Heo Uhaeng / Publications
Forum
OrderProfit() result value abnormality.
This is a phenomenon that occurs occasionally. The profit in the results window is -12.02, but when printed from the source, it comes out as -8.84. [Code] for ( int i = OrdersHistoryTotal() - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_HISTORY) == false ) continue ;