mardi 23 juin 2015

Forex EA/indicator to automate buy stop ONLY if sell stop is activated

I would like to make an Expert Advisor/indicator for MetaTrader. It has to automatically set a BUY STOP (order), but only when a SELL STOP (order) was started/activated. Could you make or provide me with this programming script? I'm using MetaEditor.

In short, the condition should look like this
PHP Code:

first trade: If (in EUR/USDcurrent market price is at 1.0010then set a sell stop at 1.0000 ONLY if the buy stop (orderhas started already
second trade: If price is at 1.0000then set a buy stop at 1.0010 ONLY if the sell stop (orderhas started already 
third trade 
first trade 
fourth trade 
second trade 
fith trade 
first trade 
etc 
When profit of all activated trades equals 35 pips in positive
then close all trades



Aucun commentaire:

Enregistrer un commentaire