Sign in
|
Join
|
Help
in
Formula Assistance (forum)
Product and Service Development (group)
(Entire Site)
Search
Home
Blogs
Discussions
Images
Files
External News
Equis International Online Com...
»
Product and Service Developmen...
»
Formula Assistance
»
Re: Using ATR as an exit criteria
Using ATR as an exit criteria
Last post 03-09-2005, 0:30 by
jerome
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
02-17-2005, 21:35
498
BitTwiddler
Joined on 02-18-2005
Posts 3
Using ATR as an exit criteria
Hi,
I am writing a system test. I have my long entry working but I am having trouble coming up with a way code my exit.
I normally set my loss stop to be a multiple of the Average True Range on the day I enter (actually it is ATR(x)).
So I would need to store off that value upon entry, so that I can determine if the price has dropped below my ATR multiple (or be able to re-calculate it at any given point).
Any pointers would be appreciated!
BT
Post Points: 0
Report abuse
02-17-2005, 22:12
499
in reply to
498
Patrick
Joined on 09-08-2004
Lyon
Posts 2,292
Re: Using ATR as an exit criteria
I would do something like :
BuyCondition:={your buy condition};
StopAtr:=Valuewhen(1,BuyCondition,ATR(X))*{Your Multiplier};
EntryPrice:=Valuewhen(1,BuyCondition,C);
Cross((EntryPrice-StopAtr),C)
Hope this helps.
My Site
Post Points: 0
Report abuse
03-09-2005, 0:30
591
in reply to
498
jerome
Joined on 03-09-2005
Posts 7
Re: Using ATR as an exit criteria
unfortunately if the buy condition happens after you are in the trade then patrick's code will not give you the same atr stop.
have a look at the plugin http://www.tradernexus.com/ which gets around this problem.
i use it all the time and its great - you can define your own atr multiples and it plots the stop on the chart really well
jer
Post Points: 0
Report abuse
Copyright © 2009 Equis International, a Thomson Reuters company. All rights reserved.
Community Dedication
|
Membership Policy
|
Community Rules
|
Privacy
|
About