|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Trailing file
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; // Last edited by newdigital : 12-12-2005 at 04:05 PM. |
|
|||
|
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. |
|
|||
|
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. Last edited by newdigital : 12-12-2005 at 04:07 PM. |
|
|||
|
Quote:
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. Last edited by newdigital : 12-12-2005 at 04:02 PM. |
|
|||
|
Quote:
|
|
|||
|
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 |
|
|||
|
Quote:
I found this one from ForexFactory. Thanks to Diallist there. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to save to *.TXT file | thanhhaf2003 | Metatrader 4 mql 4 - Development course | 1 | 02-11-2007 07:41 PM |
| How to attach file? | phildunn | General Discussion | 1 | 04-25-2006 11:30 PM |
| What is .set file? | maniek | Questions | 0 | 03-31-2006 08:20 PM |
| Mt3 EXP file | forexpipmaster | General Discussion | 7 | 02-03-2006 05:17 PM |
| I can not attach a file | WhatFor | Non Related Discussions | 4 | 11-03-2005 05:16 PM |