How to do Backtest for OB Advisor ?

 

Hi...

I am developing an Expert for Binary Options it is openig orders for BO normally... But when i try to do Backtests, stops when an order is created... see :

 Backtest 

 

Below the code for creating an order with expiration in 5 minutes: 

orderNumber = OrderSend(Symbol(), OP_SELL, 1.00, Bid, 0, 0, 0, "BO exp: 300", MagicNumber, 0, clrRed);
 
Any help ? There are any way to make the orders be recognized on stragy tester?
 
Can you solve it?
I'm looking for a solution in time, but I can not ..
If you managed to solve you can help me?
 
:
wemersonrv:n i try to do Backtests, stops when an order is created... see :

  

Below the code for creating an order with expiration in 5 minutes:

orderNumber = OrderSend(Symbol(), OP_SELL, 1.00, Bid, 0, 0, 0, "BO exp: 300", MagicNumber, 0, clrRed);
  1. It is opening only one order on the last candle of the test. Why is it not opening earlier? Do you have enough history?
  2. Where do you set an expiration value? You can't open market orders with an expiration.
 
xxpsyvampxx:
Can you solve it?
I'm looking for a solution in time, but I can not ..
If you managed to solve you can help me?
It's not possible to test BO symbols with the Strategy Tester. It can't manage when Bid=Ask
 

Hi everybody,

 

I asked me the same thing, how can I backtest my Binary Order EAs.

I found no way to do this with MT4/5 strategy tester.

But there is a way to backtest with the historical tick data inside MT4/5 tester, it works fine.

I would share my results here, if somebody will help me with the binary oder String.

It seems to be a big secret to use OrderSend() inside EA program.

If I use the orderstrings like previous posts, I always get  [Trade is disabeled] answer from Core Liquidity in DEMO account.

Core Liquidity answer to OrderSend()

Does anybody know Why? 

This is my EA code (hardcoded testvalues):

     int ticket = OrderSend(Symbol(),OP_SELL,10.0,Bid,0,0,0,"BO exp: 60",Identifier,0,clrBlue);

     //MessageBox(expirycmd +" " + _Symbol + " " + Bid); 

 

I also tried :

"BO exp: 60" instead of "BO exp:60" 

close[0] instead of Bid

 MarketInfo(Symbol(),MODE_BID) instead of Bid

 

Nothing worked.... 

 

Is it possible to do the backtesting of an ea?
Reason: