Screener daycount only returns 1 – don't know why.

Forums ProRealTime English forum ProScreener support Screener daycount only returns 1 – don't know why.

Viewing 5 posts - 1 through 5 (of 5 total)
  • #96198

    Hi all

    I downloaded the Gann Market Model Strategy from the library and edited out the Probacktest code so as to use it as a screener.  I also added daycount code that Nicolas assisted me with a while back but can not get it to count.  I only get 1(one) all the time for the daycount result.  This daycount code works perfectly on other screeners that I have and the code for the “daycount” part is exactly the same.

    The edited code is as follows and a screen shot of the results with a circled result clearly not matching the Strategy results.  Have poured over this and do not know what is wrong.  Any help greatly appreciated.

    Thanks

    Chris

    ———————————————————

     

    —————————————————

    #96218

    You can try this version, I changed a bit the way you are finding the start of the signal “resultL”:

    I did not compared the days count with the indicator, please do.

    #96375

    Thanks Nicolas.  That has got the daycount working (sort of???)  It still does not count correctly though.  I have attached 2 screen shots showing 2 stocks returning the same 156 days result in the screener.

    Problem is their buy dates are about 3 months apart and the strategy shows a continuous hold for these trades.  Also I have removed most of the “gann code” and put a simple moving average crossover to buy and my trailing stop to exit to simplify things for this issue.

    edited – Just tried changing the long entry from moving averages “greater than” to “crosses over” and got completely different results in the screener – not even the 2 stocks I have attached were in the results.  But the strategy with the “crosses over” still shows the same buy dates.  what the..    

     

    Both the strategy and screener code is below.

     

     

     

    Thanks

    #96380

    stuffa – please use the ‘Insert PRT Code’ button when posting code in your replies as it makes it far easier for others to read. I have tidied up your last post for you. 🙂

    1 user thanked author for this post.
    #96388

    ProScreener has a limitation of 254 bars of history. That could be a reason of not finding the same results between the indicator, the strategy and the screener.

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login