Any one know of an indicator or code that will identify the Swing Hi/Lo points of an indicator's output value? NT's Swing indicator uses the High & Low functions, which can't be applied to an ind. value. Thanks.
Several times I worked to develop such a code without success. So I dug deeper into the code that creates Swing Hi/Lo points and then compared it to other platforms.
I was quite surprised to find NT calculates these points much differently than TradeStation, for example. Seems to me the key is to rewrite the original NT code such that it calculates pivots in a more simplified fashion. Then use that new code as a basis from which an indicator can be constructed that will "remember" these points for use as output values.
it is possible to check Swing Hi/Lo points of indicators say like stochastic, but only with costume coding - not as simple indicator on indicator-function.
maybe we will see this in NT 7 now.
i played with this a while ago ago - dont remember exactly how ....
if i find it i will post an example how i did this / tried this.
i took stochastics and used it as the input for the NT-Swing-H / L -indicator (.SwingHigh-dataseries here)
of course this is no example for visualisation / plotting now but for a first idea how to use it and for condítionbuilding.
first line calculates the last small Swing-High from stochastic.K
second line = stochastic.K
logic- line : checks if stochastic.K itself breaks its last swing-high AND all is happening above 50 (means in the upper half)
it describes a check for a HigherHigh in stochastic.K so to say.
Which shows how little I know about this stuff. Just started looking at Ninjatrader a couple of days ago, and trying to learn stuff. Bye the way, I am impressed with Ninjatrader forum support...I posted an intellisense question with the wizard code and got an answer in 5minutes!
Thanks for the suggestions guys. I'll check some of your ideas, but first I have to fix a broken irrigation line before the grass dies. I'll post my results as soon as I get back to testing these ideas.
Any thoughts on how to use (code) previous swing levels as profit targets ? I am thinking on as momentum stays above a certain level, then the profit target keeps moving from previous swing level to the next profitable swing level, and then as ROC falls the profit target drops to the price as market order.