Indicator not showing on whole data

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #72578 quote
    Vonasi
    Moderator
    Master

    I wrote this simple indicator to analyse average inner bar strength but when applied it does not show on all of the data. I am applying it to the FTSE100 UKX in the image shown.

    Can anyone explain why it only starts in about August 2014?

    Period = 2
    
    a = Average[Period]((close-low)/(high-low))*100
    
    return a,50,70,30
    

    [attachment file=72579]

    #72581 quote
    Nicolas
    Keymaster
    Master

    Problem the same for each security?

    #72586 quote
    Vonasi
    Moderator
    Master

    I will check. I have shut PRT down at the moment as I have been at anchor all day and so used quite a lot of my monthly data allowance!

    Could you test it on your PRT UKX daily and see what you get?

    #72587 quote
    Vonasi
    Moderator
    Master

    Checked it on DAX SP500, DJI and all have the same issue or worse. Here is the DJI:

    [attachment file=72588]

    #72590 quote
    JC_Bywan
    Moderator
    Master

    How about like this? It made a difference when I tested it on daily french index, haven’t tested others, but if it made the difference once, should do it on other instruments too…

    Period = 2
    
    x=(close-low)/(high-low)
     
    a = Average[Period](x)*100
     
    return a,50,70,30
    Vonasi thanked this post
    #72591 quote
    Vonasi
    Moderator
    Master

    Thanks Noobywan. Funnily enough I was just thinking to try the same solution while I was washing-up the dishes – as the same idea of making it a variable solved a similar problem when someone was trying to average StrategyProfit in another thread yesterday.

    There does seem to be some minor bugs when averaging certain things.

    #72617 quote
    Nicolas
    Keymaster
    Master

    Another zero divide problem. Solved it with:

    Period = 2
    
    a = Average[Period]((close-low)/(Max(pointsize,high-low)))*100
    
    return a,50,70,30
    Vonasi thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Indicator not showing on whole data


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by Nicolas
7 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/07/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...