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
  #1 (permalink)  
Old 09-10-2009, 03:04 PM
meshleman3's Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 13
meshleman3 is on a distinguished road
Trailing Stop Needed For EA

I'm sure this might sound like an easy task for a lot of people here but I really have no programming experience. All I need is a working trailing stop input added to this "TimeEntry" EA. Maybe it could have an input to either have the trailing stop on or off. And if set to on, then another input for the trailing stop amount. I don't need anything else changed or deleted. If anyone could add this for me or teach me how I would really appreciate it. Thanks!
Attached Files
File Type: mq4 TimeEntry.mq4 (5.0 KB, 17 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
  #2 (permalink)  
Old 09-10-2009, 06:34 PM
Junior Member
 
Join Date: Jan 2008
Posts: 4
faizalperu is on a distinguished road
Quote:
Originally Posted by meshleman3 View Post
I'm sure this might sound like an easy task for a lot of people here but I really have no programming experience. All I need is a working trailing stop input added to this "TimeEntry" EA. Maybe it could have an input to either have the trailing stop on or off. And if set to on, then another input for the trailing stop amount. I don't need anything else changed or deleted. If anyone could add this for me or teach me how I would really appreciate it. Thanks!
here it is, just wanna help.....i hope you like it
Attached Files
File Type: mq4 TimeEntry_V1.mq4 (6.3 KB, 28 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
  #3 (permalink)  
Old 09-10-2009, 08:41 PM
meshleman3's Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 13
meshleman3 is on a distinguished road
faizalperu, Thanks a lot! It is exactly what I wanted. And it was done so fast too. All I need to do now is test it but I'm sure it will work just fine. 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
  #4 (permalink)  
Old 09-10-2009, 09:10 PM
escape's Avatar
Member
 
Join Date: May 2009
Location: TURKEY
Posts: 32
escape is on a distinguished road
extern double lTrailingStop = 20;
extern double sTrailingStop = 10;

void TrailingPositionsBuy(int trailingStop) {
for (int i=0; i<OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol()==Symbol()) {
if (OrderType()==OP_BUY) {
if (Bid-OrderOpenPrice()>trailingStop*Point) {
if (OrderStopLoss()<Bid-trailingStop*Point)
ModifyStopLoss(Bid-trailingStop*Point);
}
}
}
}
}
}
void TrailingPositionsSell(int trailingStop) {
for (int i=0; i<OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol()==Symbol()) {
if (OrderType()==OP_SELL) {
if (OrderOpenPrice()-Ask>trailingStop*Point) {
if (OrderStopLoss()>Ask+trailingStop*Point ||

maybe work well
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
  #5 (permalink)  
Old 09-10-2009, 11:36 PM
Member
 
Join Date: Dec 2007
Posts: 39
kevinator is on a distinguished road
Here is the trail Ea most traders like as it has 1 pip breakeven function for tight manual trading.
Attached Files
File Type: ex4 Mauro_Trailing.ex4 (16.5 KB, 35 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
  #6 (permalink)  
Old 09-11-2009, 04:08 PM
meshleman3's Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 13
meshleman3 is on a distinguished road
Thanks everyone for your help. People in this forum are great!
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


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
script for trailing stop needed please? igotswansons Metatrader 4 35 11-02-2009 01:20 PM
Help Needed Making Perfect Trailing Stop EA sbwent Expert Advisors - Metatrader 4 31 08-07-2009 07:41 PM
What is Trailing Stop? matrixebiz Expert Advisors - Metatrader 4 8 05-04-2007 03:15 PM
Trailing Stop EA? Kaper Expert Advisors - Metatrader 4 1 04-19-2007 04:25 PM
Use 50 Ema For Trailing Stop marco70102 Setup Questions 2 03-19-2007 06:15 PM


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



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