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 05-28-2009, 04:44 AM
Junior Member
 
Join Date: Aug 2007
Posts: 13
Blog Entries: 1
pipscaner is on a distinguished road
indicator input

Hi newgigital
is it possible to input indicator window on 5 min and 15 min on 1H chart indicator window? Will the inputed indicators read differently?. Let say: . i have MACD 12,26,9 on 3 charts. 5 m, 15m and 1H. instead looking at 3 time frame. I want to input whatever the Macd read on 5m and 15m into 1 H chart. Thanks for your repond
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 06-16-2009, 01:16 AM
Junior Member
 
Join Date: Mar 2008
Posts: 2
rickyzb is on a distinguished road
Exclamation trailing stop ea 's problem

i have tried most of these ea;s here on demo fxopen account and none work .i have commercial ea;s that scalp and work ok.i am looking for just plain simple 5 pip trailing stop. always have smiley face; boxes all checked. i am manual trading ;some have even sl and tp.have used many eas before i can;t undertand why. the reason manual trading is so many eas fail expectations and scalping on chart looks more profitable using less drawn down .actually 1 minute chart ;that no robot will attempt;but for me gives a head start over 5 and 15 min scale. reason being i need ea because you have to be fast to close trade.1 of these did scalp 3- pips;but no trailing as i want to ride profits out and happy to give up 2-3 pips gain up to 40+.tried swiss army ea and even fx ambush ea;that kept opening trades automactically for some reason and still would not trail.might be something simple as often is.might reload platform as disabled ea might be interfering.any help thanks not a script writer;more a trader with good ideas.
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 06-19-2009, 01:36 AM
Junior Member
 
Join Date: Mar 2008
Posts: 2
rickyzb is on a distinguished road
trailing stop fxopen

after spending many hours trying and looking at these ts.i have found some answers. with fxopen no orders go through because of the 10 pip buy/sell limit.ts works fine if tp and sl and ts are 10 and 15 pips.i presume most other dealing desk brokers the same.i tied sl ea on mb trading new mt4 demo ecn and work fine with 2 pip(20 5- digits) sl tp and ts.so this broker can see you are using a ea; yet allows scalping; you can close 1-9 pips manually.would be interested if most other brokers the same.what would be a solution with these trailing stop.
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 06-28-2009, 10:50 AM
Junior Member
 
Join Date: Sep 2008
Posts: 12
dedreko is on a distinguished road
Loss Protection

Hi all,

I'm testing some ways to protect from loses trades, so I made this trailling loss protection.
It work like the trailling stop for winning trades, but in inverted direction.
If the trade is losing 15 pips, and come back losing only 5 pips, close the trade (step one).
If the trade is losing 30 pips, and come back losing 15 pips, close the trade (step two).
And one more step with the same logic. All the params is customizable.

To use, include this variables on your EA:
extern bool UseTrailingLoss = True;
extern int TrailingStopLoss1 = 15;
extern int TrailingStepLoss1 = 5;
extern int TrailingStopLoss2 = 30;
extern int TrailingStepLoss2 = 15;
extern int TrailingStopLoss3 = 45;
extern int TrailingStepLoss3 = 30;
int SlipPage = 3; // Your SlipPage
int MAGIC = 1111111; //Your EA Magic Number
int orderloss[100]; // Max open trades of your EA is the array size


Inside int start():
if (UseTrailingLoss) TrailingLoss();


And here is the code of trailing stop (the comments is in portuguese because I'm Brazilian):

Code:
void TrailingLoss() {
  for (int i=0; i<OrdersTotal(); i++) {
  //Print("I:",i);
    if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
      if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) {
        if (OrderType()==OP_BUY) {
             if (orderloss[i]>0)
             {
               if (orderloss[i]==1)
               {
                  if (OrderOpenPrice()-Bid<TrailingStepLoss1*Point)
                  {  
                     //Print("Atingiu o preço de retorno1");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (orderloss[i]==2)
               {
                  if (OrderOpenPrice()-Bid<TrailingStepLoss2*Point)
                  {  
                     //Print("Atingiu o preço de retorno2");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (orderloss[i]==3)
               {
                  if (OrderOpenPrice()-Bid<TrailingStepLoss3*Point)
                  {  
                     //Print("Atingiu o preço de retorno3");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (OrderOpenPrice()-Bid>TrailingStopLoss2*Point)
               {
                  //Print("Antes de mudar2:", orderloss[i]);
                  //Print("Atingiu Loss Point2");
                  //Print("I:",i);
                  orderloss[i]=2; 
                  //Print("Depois de mudar:2", orderloss[i]);
               }
               if (OrderOpenPrice()-Bid>TrailingStopLoss3*Point)
               {
                  //Print("Antes de mudar3:", orderloss[i]);
                  //Print("Atingiu Loss Point3");
                  //Print("I:",i);
                  orderloss[i]=3; 
                  //Print("Depois de mudar3:", orderloss[i]);
               }  
             }
             else
             {
               if (OrderOpenPrice()-Bid>TrailingStopLoss1*Point)
               {
                  //Print("Antes de mudar:", orderloss[i]);
                  //Print("Atingiu Loss Point");
                  //Print("I:",i);
                  orderloss[i]=1; 
                  //Print("Depois de mudar:", orderloss[i]);
               }
               else
               {
                  orderloss[i]=0;
               }
             } 
        }
        if (OrderType()==OP_SELL) {
            if (orderloss[i]>0)
             {
               if (orderloss[i]==1)
               {
                  if (Ask-OrderOpenPrice()<TrailingStepLoss1*Point)
                  {  
                     //Print("Atingiu o preço de retorno1");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (orderloss[i]==2)
               {
                  if (Ask-OrderOpenPrice()<TrailingStepLoss2*Point)
                  {  
                     //Print("Atingiu o preço de retorno2");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (orderloss[i]==3)
               {
                  if (Ask-OrderOpenPrice()<TrailingStepLoss3*Point)
                  {  
                     //Print("Atingiu o preço de retorno3");
                     OrderClose(OrderTicket(), OrderLots(), Bid, SlipPage, White);
                     orderloss[i]=0;      
                  }
               }
               if (Ask-OrderOpenPrice()>TrailingStopLoss2*Point)
               {
                  //Print("Antes de mudar2:", orderloss[i]);
                  //Print("Atingiu Loss Point2");
                  //Print("I:",i);
                  orderloss[i]=2; 
                  //Print("Depois de mudar:2", orderloss[i]);
               }
               if (Ask-OrderOpenPrice()>TrailingStopLoss3*Point)
               {
                  //Print("Antes de mudar3:", orderloss[i]);
                  //Print("Atingiu Loss Point3");
                  //Print("I:",i);
                  orderloss[i]=3; 
                  //Print("Depois de mudar3:", orderloss[i]);
               }  
             }
             else
             {
               if (Ask-OrderOpenPrice()>TrailingStopLoss1*Point)
               {
                  //Print("Antes de mudar:", orderloss[i]);
                  //Print("Atingiu Loss Point");
                  //Print("I:",i);
                  orderloss[i]=1; 
                  //Print("Depois de mudar:", orderloss[i]);
               }
               else
               {
                  orderloss[i]=0;
               }
             }
        }
      }
    }
  }
}
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 07-08-2009, 04:57 AM
Junior Member
 
Join Date: Dec 2008
Posts: 4
ahsmile is on a distinguished road
Quote:
Originally Posted by matrixebiz View Post
Hello, just wondering if anyone has come across a Trailing Profit by$ EA?
Sort of like Training Stop but instead of moving SL it keeps track of profit.
I would like to have a buffer lets say a TP of 5$ so if account profit keeps rising good but if account profit get to $20 but then starts loosing $5 then close all orders. Kind of like locking in profits but if starting to drop let close all and be happy
Thank you
Hi There,
did you managed to get this kind of EA ?
I'm looking the same things as what you looking for.
if you managed to find it, can you share this with me?
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
  #67 (permalink)  
Old 07-22-2009, 02:25 AM
Junior Member
 
Join Date: Mar 2009
Posts: 1
victorsalman is on a distinguished road
Loss protection mq4

Hi Dedreko

sounds very promising the loss protection in a trailingstop

Did you found a good trailing stop to implement it in ?

The attached trailingstop is the most promising I have found so far!

Could you see if you could write your loss protection code in there

Thanks

Vs!
Attached Files
File Type: mq4 TrailingWithPartialClose.mq4 (29.5 KB, 122 views)
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
  #68 (permalink)  
Old 10-31-2009, 01:38 PM
Junior Member
 
Join Date: Oct 2009
Posts: 2
NaijaTrader is on a distinguished road
Hello Newdigital

I am a newbie to Forex Just starting out. I would like to use the Trailing Stop you gave on the first page of this thread. I downloaded alright but I am unable to attach it to my chart. Can you please assist? I am using Alpari platform.

Thanks a lot and this is a wonderful place to source for vital information.

NijaTrader
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
  #69 (permalink)  
Old 11-01-2009, 09:32 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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
I do not know ...
I did not use it for the long time.

Try this EA: http://www.forex-tsd.com/290723-post26.html
__________________
My blog on TSD
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
atr stop ea, atr trailing stop ea, best trailing stop ea, e-trailing, e-trailing ea, e-trailing.mq4, ea trailing stop, forex trailing stop, forex trailing stop ea, metatrader trailing stop ea, mt4 ea trailing stop, MT4 trailing stop, mt4 trailing stop ea, stepStop, stop EA, trail stop, trailing, trailing ea, trailing stop, trailing stop ea, trailing stop expert, trailing stop forex, trailing stop in forex, trailingstop ea, TrailingStop.mq4, training stop


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
How to set a trailing stop??? theolive9 Metatrader 4 1 12-06-2006 12:12 AM
EA trailing stop JoZo Metatrader 4 6 11-10-2006 02:34 PM


All times are GMT. The time now is 06:05 AM.



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