Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
BUY CONDITIONS
1. Must place a BUY trade when the first buy signal shows up i.e. a YELLOW or BLUE arrow. However the trade should remain active when the immediatenext Buy arrow is of a different color to the first one. Example if the robot initiates a BUY trade with a YELLOW arrow and immediately another buy signal comes up with a BLUE arrow, it should ignore the new signal and keep the old trade. Another example is if the robot initiates a BUY trade with a BLUE arrow and immediately another buy signal comes up with a YELLOW arrow, it should ignore the new signal and keep the old trade.
2. Conditions to exit a BUY TRADE:
· Trade should exit when the 1stSELL signal shows up that is a RED or MAGENTAarrow shows up. Immediately the buy trade exits,Robot should quickly initiate a SELL trade.
· Trade should exit when the next signal is the same BUY signal and of the same color. That is if the robot initiates a BUY trade with a Yellow arrow and the next immediate arrow that comes after it is also Yellow, it should exit the 1st buy trade and initiate a new BUY trade with the new yellow arrow.
SELL CONDITIONS:
3. Must place a SELL trade when the first sell signal shows up i.e. a RED or MAGENTA arrow. However the trade should remain active when the immediatenext Sell arrow is of a different color to the first one. Example if the robot initiates a SELL trade with a RED arrow and immediately another Sell signal comes up with a MAGENTAarrow, it should ignore the new signal and keep the old trade. Another example is if the robot initiates a SELL trade with a RED arrow and immediately another Sell signal comes up with a MAGENTA arrow, it should ignore the new signal and keep the old trade.
4. Conditions to exit a SELL TRADE:
· Trade should exit when the 1stBUY signal shows up that is a RED or YELLOW arrow shows up. Immediately the Sell trade should exit and quickly initiate a BUY trade.
· Trade should exit when the next signal is the same SELL signal of the same color. That is if the robot initiates a SELL trade with a RED arrow and the next immediate arrow that comes after it is also RED, it should exit the 1st Sell trade and initiate a new SELL trade with the new Red arrow.
SUMMARY:
1. Buy when arrows are either YELLOW or BLUE
2. Sell when arrows are either RED or MAGENTA
DEFAULT SETTINGS OF ROBOT:
Take Profit: 0
Stop Loss: 0
Trail Start: 20
Trail distance or trailing pips: 5
Trail step: 1
Lot size: Equity/12000
Typical Trade Sequence for Robot:
1. Blue Box: Here robot will initiate a buy trade because of the Blue Buy arrow.
2. Red Box: Here robot will exit buy trade initiated in blue box and initiate a Sell trade because of the first sell arrow which is RED. Also robot will ignore 2nd sell signal from the magenta arrow since the color of the 2nd sell signal is different from the previous one which was red. Hence the sell trade that remains will be the one initiated from Red Arrow.
3. Yellow Box: Here robot will exit sell trade initiated in Red box and immediately initiate a buy trade because of the buy arrow which is YELLOW.
4. PurpleBox: Here since the robot has initiated a buy already at the site of the 1st yellow arrow from the yellow box, it will exit and initiate a new buy since the immediate arrow after that buy trade is also a yellow arrow that is the colors for both‘buys’ are of the same color. Hence the active trade will be the one from the new yellow arrow.
Dear friend
with the issue of when open trade, I want it to be when the arrow appears but not at the close of the candle, as it will be late for entry.
The issue of arrow appearing on same candle, the EA should trade as per original specification, as we have realized that the two arrows do not appear at the same time(especially one 1H timeframe).