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

Notification

Icon
Error

Options
Go to last post Go to first unread
jdltulsa  
#1 Posted : Monday, August 6, 2012 10:54:09 AM(UTC)
jdltulsa

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)
Similar Topics
range bars / kase bars (Formula Assistance)
by indexarb 7/26/2012 1:49:30 PM(UTC)
Range Bars (Product Wish List)
by VBtrader 2/24/2010 7:39:20 AM(UTC)
Range Bars, Tick Bars and Volume Bars (Product Wish List)
by yrparent 12/16/2007 9:20:47 PM(UTC)
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.