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]
Problem the same for each security?
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?
Checked it on DAX SP500, DJI and all have the same issue or worse. Here is the DJI:
[attachment file=72588]
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
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.
Another zero divide problem. Solved it with:
Period = 2
a = Average[Period]((close-low)/(Max(pointsize,high-low)))*100
return a,50,70,30