logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Choychho  
#1 Posted : Sunday, July 8, 2012 5:20:27 AM(UTC)
Choychho

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
henry1224  
#2 Posted : Sunday, July 8, 2012 7:31:27 AM(UTC)
henry1224

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.