Bos.Participant
Veteran
Hi folks,
I’ve found the indicator on this forum called ‘Volume Stops’ quite a useful tool and am hoping someone might be able to assist in turning it into a screener if possible.
Although the indicator is from this forum, i’ve attached it here.
>> Please update your country flag in your profile. Thank you 🙂 <<
What are the conditions to be found by the screener please? Add screenshots if you found it necessary for a better explanation.
Bos.Participant
Veteran
Hi there Nicolas,
Thanks for the reply.
The Volume Stops indi is based on the increase or decrease of volume in relation to the opening and closing of the last 3 bars or candles.
Green candles are bullish signs and red candles are bearish signs. (screenshot attached for reference)
I’m hoping to turn this into a bull screener and an additional bear screener whereby instruments/sectors are screened as to whether the indicator’s conditions are met at the close of the current candle.
I hope this helps clarify.
Thanks,
Aus.
Here is the code of the stock screener. It will sort the results with a 1 or -1 score. 1 = long conditions detected, -1 = short conditions detected. All in one screener only.
redbar=open>=close
greenbar=open<=close
long1=volume[2]<volume[1] and volume[1]<volume[0] and redbar[2] and redbar[1] and greenbar[0]
short1=volume[2]<volume[1] and volume[1]<volume[0] and greenbar[2] and greenbar[1] and redbar[0]
long2=volume[2]>volume[1] and volume[1]>volume[0] and redbar[2] and redbar[1] and greenbar[0]
short2=volume[2]>volume[2] and volume[1]>volume[0] and greenbar[2] and greenbar[1] and redbar[0]
long = long1 or long2
short = short1 or short2
if long then
direction=1
else
direction=-1
endif
screener[long or short] (direction)
Bos.Participant
Veteran
Fantastic, thanks Nicolas 🙂