Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 05-19-2006, 02:29 PM
Junior Member
 
Join Date: Mar 2006
Posts: 12
Boiseboy is on a distinguished road
Question ATR Trailing Stop - Help

Hi everyone:

I have absolutely no coding experience in mq4 indicators, and am asking for help in creating an indicator. The volatility trailing stop that uses a multiple of ATR has been of great use to me in Metastock when I used to trade equities, and I've been looking for an equivalent in metatrader.

I've been using Igorad's EXCELLENT indicator VoltyChannel_Stop lately - found in this post:
http://www.forex-tsd.com/4357-post6.html
and it is truly great. However, sometimes I need to enter against the trend when I get a signal and must calculate the stop manually, because the indicator hasn't yet changed over.

So, what I'm looking for are TWO consistent lines indicating the long and short stops that sit x times ATR(y), above and below the closing price. The metastock code is this:

For Long: HHV(H - 2.5*ATR(5),10)
For Short: LLV(L + 2.5*ATR(5),10)

HHV means highest high value, LLV means lowest low value

I'd like to be able to modify the ATR setting (I'm using ATR(10) now) as well as the multiplier (I'm using 2*ATR now).

Please forgive me if this indicator has already been coded somewhere and I haven't found it - or, if I am asking too much.

Much appreciation, in advance, for everything,

Ed

PS: It looks something like this, but with an upper and lower stop line (PLEASE NOTE, THIS IS NOT MY PICTURE AND THE TEXT IS NOT ASSOCIATED WITH THIS REQUEST - Whew....) :


Last edited by Boiseboy; 05-19-2006 at 09:37 PM. Reason: add picture
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-19-2006, 03:47 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,320
Blog Entries: 106
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
It's all that I have inside my computer with the name ATR.
And check ASCTrend system thread - you will find many stop loss indicators based on ART there.
Attached Files
File Type: zip atr_indicators.zip (18.5 KB, 599 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-19-2006, 04:34 PM
Junior Member
 
Join Date: Mar 2006
Posts: 12
Boiseboy is on a distinguished road
Holy Cow, that's a lot of stuff. I'll go through them and see if there's something there that'll work.

Many thanks!

Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-19-2006, 06:06 PM
Junior Member
 
Join Date: Mar 2006
Posts: 12
Boiseboy is on a distinguished road
New Digital:

Again, thanks for uploading your ATR files. Unfortunately, none of the indicators can get me where I need to go. But, the ATR_SL_Chanel was close - but, I cannot figure out what the ATR setting is and what the input value represents.

In any event, if anyone reading this can code the description in the first post, I would be eternally grateful.

You'd get, maybe not my first born child, but probably one of the ones later on...



Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-20-2006, 07:44 AM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 814
igorad is on a distinguished road
Hi,
Try to use this indicator.

Igor
Attached Files
File Type: mq4 ATRStops_v1.mq4 (3.0 KB, 602 views)
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-20-2006, 05:34 PM
Junior Member
 
Join Date: Mar 2006
Posts: 12
Boiseboy is on a distinguished road
Igor:

I don't know how to keep thanking you for your help. I can see your generosity has no limit - and I'm sure I speak for many, many people on these forums.

This stop indicator is great; it is similar, I think, to the volatility stop (your volty_channelstop v1) I was using. I can't seem to figure out the difference, though I know one exists. They don't exactly match up even when I've make the settings equivalent.

Again, I really appreciate all your help, now, in the past, and certainly in the future (when you'll finally tire of me...).

Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-20-2006, 05:56 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,320
Blog Entries: 106
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
May be this one?
I am not sure ...
Attached Images
File Type: gif 12345.gif (27.6 KB, 1891 views)
Attached Files
File Type: zip indicators.zip (2.8 KB, 263 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-20-2006, 06:20 PM
igorad's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 814
igorad is on a distinguished road
Hi BoiseBoy,
Thanks for good words.
I've tried use your Stops formulas with small improvements.

Igor
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-20-2006, 06:39 PM
Junior Member
 
Join Date: Mar 2006
Posts: 12
Boiseboy is on a distinguished road
A Very Public Thanks

NewDigital and Igorad:

I think I've now got everything I need to do my backtesting.

You two are great examples of people who will go out of their way to help somebody they don't even know, when they get nothing in return short of appreciation (if they are lucky).

If I ever get this trading figured out so I'm consistently profitable, I'll have people like you to thank. They say one can only get to the top by standing on the shoulders of others, and the two of you are prime examples of very broad shoulders.

Thanks again,

Ed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-20-2006, 08:30 PM
DanielTyrkiel's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 176
DanielTyrkiel is on a distinguished road
I appreciate you've started this thread, and of course the invaluable help of Igor and Newdigital. I've started looking at one of the ATR SL indicators for my own style of trading. Very helpful my friends, thank you all.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
atr stop, atr channel

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/indicators-metatrader-4/2169-atr-trailing-stop-help.html
Posted By For Type Date
OANDA FXMessage: Help with ATR trailing stop custom indicator This thread Refback 04-16-2008 12:07 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trailing Stop EA newdigital Expert Advisors - Metatrader 4 42 10-05-2008 10:24 AM
How to set a trailing stop??? theolive9 Metatrader 4 1 12-05-2006 11:12 PM
EA trailing stop JoZo Metatrader 4 6 11-10-2006 01:34 PM


All times are GMT. The time now is 04:00 AM.



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