Download MetaTrader 5

Using Binnary Branch Lots Determination

To add comments, please log in or register
Rene Noteborn
216
Rene Noteborn  

Hallo,

I am using A binnary tree to determine the lotsize depending on the profit of the last three orders. Is it possable that the function OrdersHistoryTotal() doenst work while backtesting? 

         OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);  
         double P5 = OrderProfit();  
Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
renen:

Hallo,

I am using A binnary tree to determine the lotsize depending on the profit of the last three orders. Is it possable that the function OrdersHistoryTotal() doenst work while backtesting? 

No,  but it reads the Strategy Tester Order history  . . . not your Live/Demo Order history.  If your EA hasn't placed any orders there will be no orders to read . . .
To add comments, please log in or register