Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #61 (permalink)  
Old 04-07-2009, 10:59 AM
Senior Member
 
Join Date: Dec 2007
Posts: 492
Enforcer is on a distinguished road
Here, a sample code:
Code:
extern int     TrailingStop           = 0;
extern int     TSstep                 = 1;

//------------------------------------------------------------------------------------------------
void TrailingStop()
{
if(TSstep<1) TSstep=1;
   RefreshRates();
    for(int i=0;i<OrdersTotal();i++)
    {
       OrderSelect(i, SELECT_BY_POS,MODE_TRADES);
       if (OrderSymbol()==Symbol() && OrderMagicNumber() == MagicNumber)
       {
         if(OrderType() == OP_BUY)
         {
            if(Bid-OrderOpenPrice()>Point*TrailingStop && (OrderStopLoss()+(Point*TSstep)<Bid-(Point*TrailingStop)||OrderStopLoss()==0))
               OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(Point*TrailingStop),OrderTakeProfit(),0,Blue);
         }
         else if(OrderType() == OP_SELL)
         { 
            if(OrderOpenPrice()-Ask>Point*TrailingStop && (OrderStopLoss()-(Point*TSstep)>Ask+(Point*TrailingStop)||OrderStopLoss()==0))
               OrderModify(OrderTicket(),OrderOpenPrice(),Ask+(Point*TrailingStop),OrderTakeProfit(),0,Red);
         }
       }
    }
    return;
}
//------------------------------------------------------------------------------------------------

int start()
{
 if(TrailingStop>0) TrailingStop();
}
__________________
www.signalcopy.com - Most advanced tools for copy Metatrader signals.
Free MT4 account statistics - advanced stats and graphs for MT4 accounts
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #62 (permalink)  
Old 05-22-2009, 02:41 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,218
matrixebiz is on a distinguished road
Quote:
Originally Posted by igorad View Post
Hi,

I just have finished 1st version of Stepped Stops EA.
I need help to test it, because it is possible only on real trade.

How to use?
Open position and then apply EA - the expert will make all rest.

Igor
Hello, just wondering if you can explain what the settings mean and where Stop is moved according to the settings;

extern double InitialStop = 30;
extern double BreakEven = 20; // Profit Lock in pips
extern double StepSize = 5;
extern double MinDistance = 10;


Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #63 (permalink)  
Old 07-13-2009, 07:06 PM
Junior Member
 
Join Date: Jun 2009
Posts: 1
Fxgc is on a distinguished road
Question about how to stick together 2 eas

Hi, i would like to know if it is posible to combine the STEP STOP EXPERT V 1.1 with my other eas i created with the EA ROBOT CREATOR. Because this EA CREATOR dont allows to code "complex" trailing stops like the STEP STOP EXPERT V 1.1 So this is basically my quiestion, and if it is possible, how to do it. It would be very a real mess if i need to code my eas again with the aditional code of the STEP STOP EXPERT V 1.1. But if it is so, then ill post my my "best" EA, so someone could add this codes.

I also want to say thanx for this wonderfull STEP STOP EXPERT V 1.1 because this exit strategy is something i had in mind some days before finding it.

Thnx,

Fxgc
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #64 (permalink)  
Old 09-24-2009, 12:27 PM
Junior Member
 
Join Date: Sep 2009
Posts: 4
PaythePipper is on a distinguished road
Target acquired Trailing Stop EA?

Hello everyone,
I am looking for a trailing stop EA that starts trailing as soon as my target is reached. Like a Take Profit, except it starts a trailing stop from that point instead of closing a trade.

Does anyone know of something like this? I have searched and found one I thought would work, but it turned out to be wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #65 (permalink)  
Old 09-24-2009, 04:10 PM
Junior Member
 
Join Date: Sep 2009
Posts: 4
PaythePipper is on a distinguished road
I didn't originally post here, my post must have been moved.
I am not looking for a stop step EA I am looking for the following.

(Manually) Open Trade
Set Stop Loss

(EA) Set trailing stop when profit =50 pips
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #66 (permalink)  
Old 10-31-2009, 09:44 PM
Junior Member
 
Join Date: Jan 2008
Posts: 2
A Reagan American is on a distinguished road
Simple trailing stop EA

I am looking for a simple Trailing Stop EA that will:
1 - begin adjusting my SL immediately, and
2 - affect only a specific manually opened trade.

I have spent hours searching for such an EA and I have found a number of very interesting TS EAs on this site but while they describe the more advanced features they include they seem not to mention if they address these two requirements. Could some one direct me to the proper EA?
I am not averse to the EA including other features (I am interested in testing such) as long as it also meet these two requirements.

The closest I have read is the e-Trailing.mq4 but it affects all opened trades. Is it possible to add some code to input the order number or other identification of the specific trade I want to adjust ?

Thank you in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #67 (permalink)  
Old 11-01-2009, 09:13 PM
Junior Member
 
Join Date: Jan 2008
Posts: 2
A Reagan American is on a distinguished road
Testing Trailing Stop EA's

Is there an easy and safe way to test the various Trailing Stop EA's without risking to have all your trades affected ?
As they are used on manually opened trades, backtesting is out of the question.

Also, some EA's have a magic number. Does that mean that once such an EA is attached to a chart, it appends that number to any new trade opened from that particular chart only and thus affects only those identified trades?

Blessings,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
exit EA, exit strategy, StepStopExpert, stops, trailing stops


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tighter Trailing Stops && Stops Nicholishen Expert Advisors - Metatrader 4 34 04-09-2009 08:11 AM
Optimal Trailing Stops FlatLine Metatrader 4 3 10-31-2006 07:52 AM
Confused with Trailing Stops baharoth General Discussion 2 05-19-2006 10:37 AM


All times are GMT. The time now is 10:59 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.