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)
I'm trying to code a custom chart bar study using the Sierra provided CustomChartBars_Example. I've compiled and tried the volume example and it looks like that works like it should.
My goal is to create a bar type that prints a new bar after delta has reversed from it's min/max value by x amount. I use a 1-10 point and figure on regular candles and I'd like the same idea applied to delta instead. The problem is I'm not sure on the logic (or anything code related), right now it's just printing new bars instantly for the most part. My DeltaReversalInput is set default to 250, but changing it doesn't do anything, new bars just print instantly.
I'm assuming the problem is on a new bar print the min and max are 0, so any delta move in the right direction is going to just make a new bar. Any help is greatly appreciated!
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
Thanks for the response, the project has been put on the backburner, it's above my skillset at the moment. Instead I've modified the cumulative delta bars study with a new option to reset on alert condition. This has allowed me to reset the cumulative delta to 0 automatically from specific events from other subgraphs. This is kind of on the same page as my original idea but the bar type would be very cool to study.
The delta reversal bar type ideally would take a "max" input for the absolute value of the difference between the ask volume and the bid volume, say 200, and then a second input for the reversal amount, let's say 100.
Min/Max Absolute Value = 200
Reversal amount = 100
Then a bar would print until the delta is either 200 or -200, at which point the min/max threshold would be hit. After that any further delta movement would make a new min/max until ultimately delta reverses and falls away from the min/max.
For an example let's say the bar's delta rises steadily with no major reversing to 378 for a max, and then starts to fall again.
Once delta reverses the reversal amount of 100 from it's max of 378 to 278, then a new bar prints.