NinjaTrader 8 Indicators and More - PriceActionSwingV2 & PriceActionSwingProV2
futures io


Categories Help    

NinjaTrader 8 Indicators and More
Indicators and Files in this section are compatible with NinjaTrader 8


Entries
PriceActionSwingV2 & PriceActionSwingProV2 5 *
I've actually been working on this for years. At first, I just wanted to make it so the code was more readable so I could figure out what makes it tick. Dorschden's work is really an impressive effort IMO. But somewhere along the way, I learned that Draw objects are performed by the CPU and rendered objects are performed by the GPU. PriceActionSwing on a 12-range chart over 5 days could produce 50,000 draw objects which results in serious performance issues.

It makes sense that tens of thousands of draw objects would perform so poorly since every last one of them are drawn as the indicator is loaded. Rendered objects, however are only drawn on the visible part of the screen that you can see.

So I rendered everything. (Well, except the fibs, which are Ninjatrader's objects.) And now it loads really fast... like, super-fast... like, you're not going to believe it.

Rendering all the draw objects gives examples for line segments, text, dots and path geometry. I tried to document tips and tricks but honestly, this took me years to do in-between my real life so every trick I learned my not be noted.

My hope is that this will be used as a comprehensive example so that coders will render objects more. Admittedly, it's pretty daunting trying to learn but once you learn it, it really isn't so bad. And it's so worth it.

There are a couple of things that aren't included, mainly because I couldn't figure out if they were actually working in the first place in the version I had, or flat out didn't understand what it was trying to do, like Statistics and Risk/Reward. I'd still do it but I would need a screen shot of what it's supposed to look like.

Note: Remember, I tried to make this simple so there's no AddOns. It's completely re-factored so that PriceActionSwingProV2 inherits from PriceActionSwingV2. The enums are encapsulated within a namespace so you do not need to remove any previous versions. This comes with both the regular version and the pro version and all of the enums are in a namespace in the regular version. So you need both.

PS. Since I learned what Draw objects really do to performance, I've grown to hate them. I don't have any draw objects in any of my indicators that I use and you won't see any in these indicators either, except of course for the Fib stuff and you can only have three, max anyway.

PSS. There is a discussion for PAS here. I can't promise I will answer every question right away but maybe there is someone else who can. I'll get to it eventually though - I've subscribed to the thread. I'd rather this was a community effort anyway. Feel free to discuss what new additions would be good but I think I'd rather get everything in the old version working first, if anyone can explain how it's supposed to work. (I can't.)


Category NinjaTrader 8 Indicators and More 
 
Suggest other entries I might like
Details: PriceActionSwingV2 & PriceActionSwingProV2
Category: NinjaTrader 8 Indicators and More 


March 13th, 2022
Size: 38.23 KB
Downloaded: 674 times
 


 
Category
 



Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.