It is probably something very simple, but can anybody tell me why an indicator isn’t showing up on the main screen?
I’m trying to add code to the price window that has all of the candlesticks showing. When I add the code it displays as a new indicator window underneath.
I used the following code from another thread (https://www.prorealcode.com/topic/how-can-i-plot-different-moving-averages-on-monthlydailyweekly/ ) which is marked as working and displaying in the main window
Thank you in advance for any replies.
If (date-date[1])=1 OR (date[1]-date[2])=1 Then
a=1 // 1 signals Daily timeframe
Endif
If (date-date[1])=7 OR (date[1]-date[2])=7 Then
a=7 // 7 signals Weekly timeframe
Endif
If (date-date[1])=99 OR (date[1]-date[2])=99 Then
a=30 // 30 signals Weekly timeframe
Endif
If (date-date[1])=299 OR (date[1]-date[2])=299 Then
a=100 // 100 signals Monthly timeframe
Endif
If (date-date[1])>9500 Then
a=200 // 200 signals Annual timeframe
Endif
If (a=100) Then
ema1= ExponentialAverage[10](close)
Else
If (a=30) Then
ema1= ExponentialAverage[40](close)
Else
If (a=1) Then
ema1= ExponentialAverage[10](close)
ema2= ExponentialAverage[50](close)
ema3= ExponentialAverage[200](close)
EndIf
endIf
endif
return ema1, ema2, ema3
My guess – you probably used the Add Indicator button on the upper right side of the screen. If you want it to show on the price bars/candles you should use the AddIndicator from within the settings menu on the upper left side (shows like a little wrench)
Thank you Pinny.
I did as you suspected. The wrench settings worked as you said it would.
Much obliged.