Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Converting code from Tradestation/ Plots Swing Point Highs/Lows
would anyone be able to help with converting code from Tradestation into Ninja Trader?
inputs:
MALength( 20 ),
Price( Close ),
UseGradientColor( true ),
NegGradColor( Red ),
PosGradientColor( Green ) ;
You could look at various zigzag indicators, which are already available for NinjaTrader. Also, If you define swing highs and lows, there are two different concepts:
(a) define a high or low as a bar with a higher high or lower low than the n surrounding bars (strenght n)
(b) define highs and lows based on a zigzag with a minimum deviation
I prefer the method which uses the minimum deviation, as it will not plot a large number of useless highs and lows in a choppy market which is going nowhere.
But the best method obviously depends on what you want to do with those highs and lows, and then you did not tell us.
sorry i didnt tell the whole story. i am wanting to use these as confirmation entries. this is what the idea of it is and this is posted above in the code.
"This plots swing highs/lows with a strength of 2 bars on each side, on the condition that there is a
close above/below the high/low the bar after the said swing bar."
i simply want it to plot a dot whenever this occurs. it can plot the dot when you get the close within 2 bars of said swing high/low bar with a strength of 2 bars on each side. hope this helps.
it is simply meant to trigger an entry and it also plots the price of the swing high/low when it plots so you know where to place your stop. you can see the pic attached to get the idea. thanks!!!
Try this pivot points, I'm sure probably is not exactly as in Tradestation, which I have too, bute it gives prettty much the same result for buy/sell decision