Discussion of article "Testing and optimization of binary options strategies in MetaTrader 5" - page 2

 

For binary options (3min. expiry time) once successfully !!! used standard OsMA indicator.

The only problem - the accuracy of entry was not enough due to the lack of 30sec timeframe in MT4 :)

Look for market imbalance - search for the beginning of movement towards balance, this signal is always fulfilled ;)

 

Tried your concatenation

   int         total            = PositionsTotal();
   for(int i=total-1; i>=0; i--)
   {
      int    position_magic        = position.Magic();
      string position_symbol       = position.Symbol(); /*PositionGetString(POSITION_SYMBOL)*/;
      ulong  position_ticket       = position.SelectByIndex(i);

MetaEditor does not pass: 'position' - undeclared identifier

 

Do you have this part of the code?

#include <Trade\PositionInfo.mqh>
CPositionInfo  position;

If not, insert it right after

#property version   "1.000"

Regards, Vladimir.

 
MrBrooklin #:

Do you have that part of the code?

If not, insert it right after

Regards, Vladimir.

Thank you. It worked.