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";
stops
Newdigital
these scripts do not compile ,Goldstock
thank you Newdigital
Newdigital these scripts do not compile ,Goldstock
Yes Goldstock,
you are right.
Please do not compile the files.
Because these files are not the scripts. There are library files and should be in \experts\include folder.
Compile the EAs only.
Adaptive trailing
An other trailing.
And some comments:
do not look on the names of these library files, these files will work with your EA irrespective of the name (of the files).
Author (Kimiv) tested it on some particular EAs and indicators and did not have a time to change the names.
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 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..
Trailing pending Order EA
Is there somewhere already a Trailing Pending Order EA ?
It should be something that is opposite of a Trailingstop EA.
Example - If price is 2.0000 and I put a pending buy trailing of 20 pips. When If price goes down 50 pips, my pending buy order should also move down to 1.9970
When price moves back to 1.9970, my entry will be triggered.
Thanks for your help
Is there somewhere already a Trailing Pending Order EA ?
It should be something that is opposite of a Trailingstop EA.
Example - If price is 2.0000 and I put a pending buy trailing of 20 pips. When If price goes down 50 pips, my pending buy order should also move down to 1.9970
When price moves back to 1.9970, my entry will be triggered.
Thanks for your helpFor programming indicators, there are great ones here. But it seems there are no good or willing programmers for Expert Advisers in this Forum. Prove me wrong.
I found this one from ForexFactory. Thanks to Diallist there.
TrailingStop EA help
hi guys, I am having trouble with this indicator, it does not trail my trades all of the time. last night I placed a few trades and left the computer on with the trailing stop EA on. When I awoke, I noticed that some of the trades had their stop in the original position. I have attached my settings. I have to turn off and then on the EA's and then it updates. Does it matter which broker you have? do some partially block it?
thanks
PS. I accidentally posted this in the wrong forum. Can an admin move this to the correct forum? thank you.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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 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; //