Download MetaTrader 5

Experts: Open Source Forex

To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
MetaQuotes Software Corp.
Moderator
181349
MetaQuotes Software Corp. 2008.08.26 09:35 

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
215
Daniel Abitbol 2015.05.30 09:01  
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
30745
Alain Verleyen 2015.05.30 10:18  
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