Invoking the Only Long & Only Short positions in EA Properties

 

Hi guys,

Sorry if this had been address before, but I couldn't find it here or anywhere else.

How do I Invoke the Only Long & Only Short positions in EA Properties using EA?

Thanks in advance

Saifx

 
If you mean in the Strategy Tester . . go to Expert Properties, then the testing Tab the elect what you need next to Positions
 
What EA are you using? Isn't there a property setting?
 

Sorry if it's a bit confusing..I'm no programmer so don't be hard on me...

What I mean is how to change the setting to Only Short or Only Long by using a code?

 
There is no setting . . . if you don't want to take long trades . . then don't take them. This might help . . . OrderSend and TradeTypes
 
Ok, thanks Raptor
 
saifx:
Ok, thanks Raptor
When you have the EA on a chart you can go to Properties, F7, then the Common tab and select Long only, Short only or Long & Short. I've never used it but I assume it may do what you want without the need for any code changes.
 

Hello guys!

How to get a status of "Common" window on EA properties? Maybe any Boolean can I get ?

Thanks!

Reason: