Trend analysis screener help for code

Forums ProRealTime English forum ProScreener support Trend analysis screener help for code

Viewing 10 posts - 1 through 10 (of 10 total)
  • #17942

    Hi Nicolas,
    I have a different problem which may not be a big thing, but somehow a screener that I created (based on an indicator that I also created which was based partly on your feedback) doesn’t always provide correct results. I just can’t find the reason because the code is actually very simple. Maybe you can take a look at it.

    First, I can give you the code for the indicator. It’s called “TA” which stands for Trend Analysis and the indicator shows the different types of trends (bull, bear, megaphone, pennant).

    Second, I provide the code for the screener. The results should only show those stocks that change from a megaphone to a bull market.
    The screener code actually consist of more elements, but I’ll only send one element which already creates false search results. So it should be easier for you to find the mistake. Maybe there is a systematic error the way I created the scanner.

    When I ran the scan for example on the predefined list “US NASDAQ stocks” today, I get the stock CVLY which should not show up as a result because it’s been in an uptrend for some time.

    Code for the TA indicator:

     

    Code for the Screener:

     

    I attach a screenshot just to show you how I colour the TA indicator.
    Thanks very much for your help.

    Kind regards,
    Sascha

    #17990

    I think condition1 (bull) and condition4 (megaphone) may overlap each other, that’s why these 2 conditions are tested true at the same time.

    Also, in your screener code, the c1 condition only test if we are in a bull market accordingly to your indicator, not if it were not the case the candlestick before.

    This is a quick conclusion while reading the code, not tested I must admit 🙂

    #18081

    This looks interesting, but I met with a few ‘challenges’! 🙂

    First off I couldnt copy and paste it directly, even copied 10 rows only bit still wouldn’t paste??

    I dumped the Indicator into Outlook (just happened to be open) then copied into PRT and all pasted okay … weird??

    Anyway attached is what I get … a horizontal black line only with ‘Indicator on Price’ and vertical lines when ‘Indicator separate from Price’.

    Its probably me doing something wrong or not doing something right??

     

    #18085

    Hi Nicolas,

    I made a quick 4 minute video to explain my view but when wanted to upload the file it said that it’s not allowed.

    Do you have an email address I can sent it to?

    If not, please let me know, then I would describe it in another message.

    Thanks.

    Sascha

    #18093

    What is the extension of your video file please? You can always ZIP-it and upload here, it must be no more than 4Mo.

    #18098

    It has the extension wmv (Windows Media Audio / Video file)

    When I zip it, it also gives me the same error message that I can’t upload the file

    #18133

    Well, you can also upload your video somewhere else and put the link here. Google Drive, Dropbox or even YouTube! 🙂

    #18153

    Hi Nicolas,

    I don’t know why I didn’t think of that myself. Here is a link to a Google Drive folder where I uploaded the short video.

    https://drive.google.com/open?id=0B9k7VdzutxCCdnR1NmJNYTQzOW8

     

    Thanks.

    Sascha

    #18369

    Hi Nicolas,

    Have you had a chance to look at the short video I made?

    Thanks.

    Sascha

    #19959

    Hi Nicolas,

    Happy New Year 2017!

    Did you have the time to watch the short 5-min video that I made?

    Thanks.

    Sascha

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

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