|
3-level exit
What is 3-level exit?
If your EA riches the profit +20, the stop loss will
It is example only:
LevelProfit1 = 20; // First profit level
LevelMoving1 = 1; // First level of moving
LevelProfit2 = 35; // Second profit level
LevelMoving2 = 20; // Second level of moving
LevelProfit3 = 55; // Third profit level
LevelMoving3 = 30; // Third level of moving
it means that if your EA riches the profit +20, the stop loss will be moved on +1, if profit is +35 or more the stop will be moved on 20, if profit is +55 your stop loss will mobe on 30. And further movement of s/l is doing by trailing stop.
You may change all these figures of course.
You must define the following variables in your EA:
int MAGIC = 20051120;
color clModifyBuy = Aqua;
color clModifySell = Tomato;
bool UseSound = False;
string NameFileSound = "expert.wav";
Last edited by newdigital; 12-12-2005 at 03:27 PM.
|