Quote:
|
Originally Posted by newdigital
Use this file for the simple trailing stop (created by Kimiv).
It means the EA will use this file to move stop loss.
1. insert attached file to the \experts\include
2. #include <b-SimpleTrailing.mqh> should be included in the code of EA (your EA)
3. in 'start' function of your EA add the following code:
if (UseTrailing) TrailingPositions();
4. after compilation of your EA (in MetaEditor) you will see the new settings:
extern string _Parameters_Trailing = "------ settings of the trailing";
extern bool UseTrailing = True; // Use Trailing
extern bool ProfitTrailing = True; // Use Profit Trailing
extern int TrailingStop = 60; // Fixed Trailing
extern int TrailingStep = 5; // Trailing steps
5. to work currectly with this structure you should define and initialize the constant MAGIC:
#define MAGIC 20051119
This file uses the following settings:
extern bool UseSound = True; // Use sound
extern string NameFileSound = "expert.wav"; // name of the file for the sound
extern color clModifyBuy = Yellow; // Color of the modifybuy
extern color clModifySell = Pink; //
|
hi, i downloaded the rar files into include. but the ea easclose still seems to be shaded in the navigator window..