Forum

My indicator won't show on my charts I tried everything. I also don't know if "return false; is correct at the end

#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime // Swing High color #property indicator_color2 Red // Swing Low color extern int lookbackBars = 10 ; // Number of bars to look back for swing high/low identification double swingHighBuffer[]; double

"If", "else" and "}" not allowed on global scope error codes I am getting but not sure how to fix

#property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime // Swing High color #property indicator_color2 Red // Swing Low color extern int lookbackBars = 10 ; // Number of bars to look back for swing high/low identification double swingHighBuffer[]; double