Forex
Google

Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2005, 03:09 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,435
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
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; //
Attached Files
File Type: rar b-SimpleTrailing.rar (909 Bytes, 333 views)

Last edited by newdigital : 12-12-2005 at 04:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-12-2005, 03:25 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,435
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
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";
Attached Files
File Type: rar b-TLE_v.1.6.rar (1.8 KB, 299 views)

Last edited by newdigital : 12-12-2005 at 03:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-12-2005, 03:32 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,435
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
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.
Attached Files
File Type: rar b-TSatr_NRTR.rar (1.5 KB, 228 views)

Last edited by newdigital : 12-12-2005 at 04:07 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-12-2005, 03:36 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,435
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Trailing based on NRTR WATR indicator.
Attached Files
File Type: rar b-TSatr_NRTR.rar (1.5 KB, 178 views)

Last edited by newdigital : 12-12-2005 at 04:08 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-12-2005, 03:45 PM
goldstock goldstock is offline
Junior Member
 
Join Date: Sep 2005
Posts: 9
goldstock is on a distinguished road
stops

Newdigital
these scripts do not compile ,Goldstock
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-12-2005, 03:56 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,435
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by goldstock
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.

Last edited by newdigital : 12-12-2005 at 04:02 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-12-2005, 04:00 PM
goldstock goldstock is offline
Junior Member
 
Join Date: Sep 2005
Posts: 9
goldstock is on a distinguished road
thank you Newdigital
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-25-2006, 04:42 PM
drtorque drtorque is offline
Junior Member
 
Join Date: Feb 2006
Posts: 5
drtorque is on a distinguished road
Unhappy

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..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 10-28-2007, 03:37 AM
highway3000 highway3000 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
highway3000 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 10-31-2007, 06:53 PM
highway3000 highway3000 is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
highway3000 is on a distinguished road
Quote:
Originally Posted by highway3000 View Post
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
For 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.
Attached Files
File Type: ex4 JackosAuntyHedge.ex4 (12.5 KB, 64 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


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


All times are GMT. The time now is 12:10 PM.