Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 8/6/2012(UTC) Posts: 1
|
Working on a respresentative indicator for price that is based on price changing by a specific amount before a new value is reported, sorta like point-and -figure. Metastock will only chart price values for specific time intervals. I recently found some code posted here by bdfranca (3-11-2010) that was inspired from code by Jose. I've boiled the simple part down to the following:
*rsize:= .25;
indpt:=If(Cum(If(C>0,1,0))=1, (H+L)/2 ,If( Abs(C-PREV)>=rsize, If(C>PREV, PREV+rsize, PREV-rsize), PREV));
indpt*
It generally gives me what I want but have noticed the values can change if I refresh the chart. I know the heavy use of the PREV function may be causing these issues but don't know how to seed the starting point or if there is a more efficient way of expressing this code.
Any help would be appreciated.
|
|
|
|
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.