Forum

Indicator that plots arrows on the highest high and lowest low between every two successive moving average crossovers

This is my first time trying to code an indicator, I can't seem to get my indicator to show on the chart. Seems like I'm getting some of the logic wrong, can anyone help to see through my code and tell me what I'm doing wrong. I know my calculations are most likely off. The indicator is supposed to