pressure gauge screener problem

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

     

    Hi, I try to let my pressure gauge screener genererate stocks with a positive (or negative) indicator crossover from +5 (or -5)  but the pressure has to stay inside the deviation bubble (not OB or OS). The screener works fine for all the other parameters exept the c1 and c2 (the OB/OS part.

    Does anyone has a clue how to solve this?

     

    period=20
     
    c=Chandle[period](close)
    avg=average[period](c)
    dev=std[period](c)
    upper=avg+dev*2
    lower=avg-dev*2
     
    osc=c-avg
    up=upper-avg
    dn=lower-avg
    
    c1=osc >=5 and c< up
    c2=osc <=-5 and c> dn
    
    c3=close crosses over average[50] and close > average[50]
    c4=close crosses under average[50] and close < average[50]
    
    c5=average[50] > average[200]
    c6=average[50] < average[200]
    
    screener [(c1 and c3 and c5) or (c2 and c4 and c6)]
    #42818 quote
    Marcel van Vliet
    Participant
    Veteran

    Hi, Need some help here…………

    The pressure gauge screener (as above) seems not to work properly.

    I screened all the stocks by hand to find out that  it does not pick up indicator crossover signals which are higher dan 5 points of the indicator (C1) and lower than -5 points of the indicator (2). Beside that I get no signal either if the Up line or down line are Overbought or Oversold.

    Another strange matter I noticed is that not all of my personal (stock) lists were screened. I converted the AEX25, BEL20, CAC30 and DAX stocks to 4 personal lists, but the last one seems not to get screened by the screener. ()

    Any suggestions are very, very welcome!

    #42846 quote
    AVT
    Participant
    Senior

    Just a quick idea, not tested cause I don’t have PRT open. c3 and c4: to my view it can not be AND because CROSSES OVER is a single event and after that event we have greater than. So either we have just a crossover or crossover has already passed and we are over (same applies for crossunder).

    #42912 quote
    Marcel van Vliet
    Participant
    Veteran

    @AVT, good thought, thank you. I simply improved this to let generate C3 and c4 a signal over two candles. I tested it and it seems to work. (see inserted PRT code) The main problem is still the C1 and C2. Would you be so kind to think with mee to sove this?

    period=20 
    
    c=Chandle[period](close) 
    avg=average[period](c) 
    dev=std[period](c) 
    upper=avg+dev*2 
    lower=avg-dev*2 
    
    osc=c-avg 
    up=upper-avg 
    dn=lower-avg 
    
    c1=osc >=5 and c< up 
    c2=osc <=-5 and c> dn 
    
    c3=close[1] crosses over average[50] and close > average[50] 
    c4=close[1] crosses under average[50] and close < average[50] 
    
    c5=average[50] > average[200] 
    c6=average[50] < average[200] 
    
    screener [(c1 and c3 and c5) or (c2 and c4 and c6)]
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

pressure gauge screener problem


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Marcel van Vliet
8 years, 7 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 08/06/2017
Status: Active
Attachments: No files
Logo Logo
Loading...