Download MetaTrader 5

Experts: Open Source Forex

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
187182
MetaQuotes Software Corp.  

Open Source Forex:

The concept of this EA is to monitor several indicators and trade based on a value returned by those indicators.

Author: eesfx

Daniel Abitbol
214
Daniel Abitbol  
MetaQuotes Software Corp.:

Open Source Forex:

Author: eesfx

Hi, I decided to try to the OSF on demo and noted that it only performs sell orders. I am not a pragrammer but I decided to take a look at the lines and found the following possible error:

            ticket=OrderSend(Symbol(),OP_SELL,buylots,Ask,3,StopLoss,Target,"OSF BUY",MagicEA,0,Green); 

 

Shouldn't we have here and OP_BUY?

Alain Verleyen
Moderator
33349
Alain Verleyen  
Mincealors99:

Hi, I decided to try to the OSF on demo and noted that it only performs sell orders. I am not a pragrammer but I decided to take a look at the lines and found the following possible error:

            ticket=OrderSend(Symbol(),OP_SELL,buylots,Ask,3,StopLoss,Target,"OSF BUY",MagicEA,0,Green); 

 

Shouldn't we have here and OP_BUY?

Yes. Good catch.
To add comments, please log in or register