Indicator not showing on whole data

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #72578 quote
    VonasiVonasi
    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]

    Screenshot_3-1.png Screenshot_3-1.png
    #72581 quote
    NicolasNicolas
    Keymaster
    Legend

    Problem the same for each security?

    #72586 quote
    VonasiVonasi
    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
    VonasiVonasi
    Moderator
    Master

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

    [attachment file=72588]

    Screenshot_4.png Screenshot_4.png
    #72590 quote
    JC_BywanJC_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
    VonasiVonasi
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 3 months ago.

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