♥ 0 |
Hey Pete, hope all is well. I found some code (see below) and tried making it into an MTF lower study that would spike when price is within 5% of a 50 SMA. It seems to only show a fraction of the 50 SMA interactions. I think the “def = status” line is goofed up — like it’s saying that price has to actually be below the SMA?? Maybe there’s a better way of scripting “price within 5%?” Any assistance is greatly appreciated. -Dixon declare lower; input Period = AggregationPeriod.FIFTEEN_MIN; def SMA = Average(close(period = period), length); plot Proximity = if Status then 1 else 0;
Marked as spam
|
Please log in to post questions.