first is based on OBV as it primary source
next we convert the OBV to MA style format , in this case we can add all form of MA in order to calculate it . as you will see in settimgs it has many type of MA as each beahave differently
I make the signal to be in linear form jst to make it more sharp/ and in the end in order to make the signal i use Alex grover method (this guy is a genius:) )
in final step we can make point on our new for
end resolt is a faster more accurate and much more options fro modification then the regular
this is indicator based so in some graph where does not exist this will not work
- instead of the study line: strategy(shorttitle="Strat test", title=" Strategy test", overlay=false)
- at the end of the script:
strategy.entry("Long 1", strategy.long)
The issues is that the entry / close points of the strategy are not in line with the signals of the inital charts (the blue / red crosses), there is always a lag of two periods with the strategy... Would you know why ?
one may change the signal from step to cross type (longer vs shorter length line) like in real macd then we can remove this lag..
Can you tell me whats the problem? Or even better copy your strategy code and publish? Thank you!!
paste this to script end
/////// Alerts /////
alertcondition(piv ? na : shrt ? na : pivoth ? max_upper + 2 : na,title="resistance pivot")
alertcondition(piv ? na : shrt ? na : pivotl ? min_lower - 2 : na,title="support pivots")