DazedandCondused
New member
Hello,
This forum has some very talented and imaginative members! I am new here and have a very simple request. I'm trying to paint arrows on my charts at Pivot Highs and Lows. The time span should be adjustable. The code below produces sub-par results for instance in up or down trend consecutive arrows can appear. Any advice or assistance would be greatly appreciated.
Thanks Dazed and Confused
This forum has some very talented and imaginative members! I am new here and have a very simple request. I'm trying to paint arrows on my charts at Pivot Highs and Lows. The time span should be adjustable. The code below produces sub-par results for instance in up or down trend consecutive arrows can appear. Any advice or assistance would be greatly appreciated.
Thanks Dazed and Confused
Code:
def PVHighv = high("period" = AggregationPeriod.MONTH, "priceType" = PriceType.last);
def PVLowv = low("period"= AggregationPeriod.MONTH,"priceType" = PriceType.Last);
plot PVhigh = if high == pvhighv then 1 else 0;
plot pvlow = if low == pvlowv then 1 else 0;
pvhigh.setpaintingStrategy(paintingStrategy.BOOLEAN_ARROW_DOWN);
pvlow.setpaintingstrategy(paintingstrategy.BOOLEAN_ARROW_UP);