Experts: Open Source Forex

 

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

 
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?

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