Quote:
|
Originally Posted by newdigital
It is written inside the code in Russian the followng:
Attach to one chart only!
ProfitTrailing = True; // profit trailing if true
TrailingStop = 8; // fixed trail size
TrailingStep = 2; // how many trailing steps
UseSound = True; // use sound
NameFileSound = "expert.wav"; // name of sound file
|
newdigital where is the code you have above in the e_Trailing EA, the one I posted has this.
extern string SL_TP_Trail_Options="--------------------------";
extern int StopLoss.Pips=30; // static, initial s/l. Unused if Use.Adr.for.sl.pips = true
extern int TakeProfit.Pips=160; // static, initial take profit
extern int Trail.Pips=15; // trail.pips. Unused if Use.Adr.for.sl.pips=true or if value=0
extern bool Trail.Starts.After.BreakEven=true; // if true trailing will start after a profit of "Move.To.BreakEven.at.pips" is made
extern int Move.To.BreakEven.at.pips=11; // trades in profit will move to entry price + Move.To.BreakEven.Lock.pips as soon as trade is at entry price + Move.To.BreakEven.at.pips
extern int Move.To.BreakEven.Lock.pips=7;
extern int Move.Trail.Every.xx.Pips=0; // If > 0 then ALL other s/l are dropped and trail will only move by Trail.Pips amount for every "Move.Trail.Every.Pips" in profit
extern bool Use.ADR.for.SL.pips=false; // if true s/l and trail according to average daily range and tsl.divisor
extern double tsl.divisor=0.40;
Found out what is happening the EA I Posted is e_Trailing the one newdigital is talking about is e-Trailing which is a different EA.
e-Trailing.mq4
e_Trailing.mq4