The index is counting bullish and bearish candles over a specified period on a given symbol and timeframe. For each bullish candle, it counts +1 and computes the index by the sum of updays diveded by the total period multiplied by 100 (for normalization). So the index is in the range of 0 to 100.
Here is the code of the indicator:
#Param "LookBack",12 ' Number of lookback periods
If C > C[1] Then
UpDay=1
Else
UpDay=0
End If
PsychIndex = Sum(UpDay,LookBack) / LookBack * 100
SetScales(0,100)
Plot("Psychology Index",PsychIndex,blue)
Return PsychIndex
Status changed from In progress to Fixed
Attachment PsychologyIndex.zip added
There are two options:
Then it should appear amongst indicators in Building blocks after restarting SQ
will there be any database of these new building blocks, or you will be adding everything to the new builds?