Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
High, i made this simple expert for a friend, and now he wants to only allow one trade on the same direction.
So if there's a buy position open, the expert wont open another buy position; and if there's a sell position open, the expert wont open another sell position.
High, i made this simple expert for a friend, and now he wants to only allow one trade on the same direction.
So if there's a buy position open, the expert wont open another buy position; and if there's a sell position open, the expert wont open another sell position.
Could someone help me?
Thanks in advance,
JCC
Hi
Thanks man
Could you explain more about this EA and adjustment , TF…?
__________________
health & wealth , success & happiness
Hi
Its pretty simple, if you have 3 consecutive bars making higher closes, then it buys, if you have 3 consecutive bars making lower closes, then it sells.
Closes positions on reverse signals.
The thing is that i must limit this EA to just 1 open trade at a time, and to only open 1 trade in the same direcction.
If someone could helpme add that code to the ea i'll be thankful.
As for timeframe you can use anyone, i didnt fully test this ea, because it's just for a friend that asked me for it.
I guess it should work well with the limit i just said, and with really tight stops and tight trailing stops (sl arround 10-14 pips for 1h tf, 20-25 for 1d tf, and ts arround 20 for 1h, 40 for 1d tf).
You can try to put your order opening instructions inside this if loop. In that way, your order will go through only if there is no existing position. [I am a rookie and copied this from another Expert].
High, i made this simple expert for a friend, and now he wants to only allow one trade on the same direction.
So if there's a buy position open, the expert wont open another buy position; and if there's a sell position open, the expert wont open another sell position.
Could someone help me?
Thanks in advance,
JCC
Hi,
I've added 2 parameters : maxBuys and maxSells, i check for those values
where you set the entry signals, and i assign count the orders in the order loop before that.