Close in upper third of candle screener not working

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #97479 quote
    Marcel van Vliet
    Participant
    Veteran

    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

    #97481 quote
    robertogozzi
    Moderator
    Master

    Line 2 should read:

    Condition = Close > (low + (Trigger*2))
    #97482 quote
    Vonasi
    Moderator
    Master

    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. 🙂

    #97594 quote
    Marcel van Vliet
    Participant
    Veteran

    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

    #97595 quote
    robertogozzi
    Moderator
    Master

    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
    Marcel van Vliet thanked this post
    #97604 quote
    Vonasi
    Moderator
    Master

    You could also try using true range which would then avoid any gaps in price. This might return some interesting results.

    Trigger = TR / 3
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Close in upper third of candle screener not working


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Vonasi
6 years, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/01/2019
Status: Active
Attachments: No files
Logo Logo
Loading...