Hi,
To complete a screener for one of my strategies I need the code for a (trigger)candle which is closed in the upper third of the candle. This is what I got so far.
Trigger = high- low/3
Condition = Close > Trigger*2
I don’t know if I am on the right track, because the code seems not to work.
Maybe the ‘old friends’ #robertogozzi #GraHal or #Nicolas, who helped me out before, will take a look at this?
Thank you
Line 2 should read:
Condition = Close > (low + (Trigger*2))
Marcel – Please try to use topic titles that describe your topic. I have changed the title from ‘Help to complete a screener’ to something more meaningful. 🙂
Hi Roberto,
Unfotunately the condition seems not to work. Could it be order in the conditions (this is c5) or maybe the use of the CandleVolume chart type?
Thank you.
Best regards,
Marcel van Vliet
It’s line 1, which I did not check, doing the wrong math, becuse it first divides LOW by 3, then subtracts the result from high, which is wrong. replace it with one of these:
Trigger = (high - low) / 3
Trigger = range / 3
You can also add this indicator to easily spot candles that meet your criteria:
Trigger = range / 3
Condition = Close > (low + (Trigger * 2))
RETURN Condition
You could also try using true range which would then avoid any gaps in price. This might return some interesting results.
Trigger = TR / 3