Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/26/2010(UTC) Posts: 6
|
Hi,
I am writing a code to draw a short line into the next period indicating my EXIT price
My exit price would be base on today ATR
Close - (2 *ATR(2))
But I need to indicator the price on the next period.
Please help and thanks in advanced
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Metastock will not allow an indicator to plot into the future, only line studies. One trick is to use the Ref(function) to give you a value on the last bar Ref(Close - (2 *ATR(2)),-1) for the next bar's value
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.