Download MetaTrader 5
To add comments, please log in or register
Do you need private account monitoring? The Signals will provide you one!
Wemerson Guimaraes
535
Wemerson Guimaraes 2015.06.26 00:59 

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);
Wemerson Guimaraes
535
Wemerson Guimaraes 2015.07.17 14:51  
Any help ? There are any way to make the orders be recognized on stragy tester?
oliver
3
oliver 2016.02.23 12:29  
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?
whroeder1
13627
whroeder1 2016.02.23 12:45  
:
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.
Zirkon
123
Zirkon 2016.02.24 19:01  
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
rmknet23
3
rmknet23 2016.06.09 17:31  

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.... 

/
To add comments, please log in or register