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 was trying to use the ADXVMA & SMI2 indicators (attached below). However, seems like they repaint. I would really appreciate if anyone could fix this problem so that they don't repaint.
Thanks
-Keep
Can you help answer these questions from other members on NexusFi?
hi Keep - as always --- send us pictures of what you mean !
BTW - the repainting sometimes is in the nature of some Ninjaindicators -
in example if ADXVMA is rising the color is black
if its flat - the color is yello.
but to realize that it is flat you must wait for the next bar to close -
and if this next Bar has the same value then the last one - the color of the last one gets a changed to yello because now its a flat on compared to the current one.
thats the method you have to understand.
that behavior you find in many multicolor-indis in Ninja
i know this shure for ADXVMA
i know this also shure for many double-moving-AVs ( DMAs)
i dont know if SMI2 is a multicolor-indi.
if yes - the repainting is "normnal" and can not be fixed.
It actually can be corrected but requires the code be written to allow for a 'fix' to be possible. And by fix I really mean work-around. There is no actual fix. NT limitation.
On all new code I am writing these days, I detect if the Plot is a line. If it's a line, then it has to repaint in order to connect the two lines. NT limitation. But if the plot is not a line, then I purposely do not connect the two plots.
Personally on indicators that have multi-colored plots, I try to avoid using Line plots for this very reason. But even if you use a Dot plot, the code must be smart enough to detect that and not repaint. Simply using a dot plot on 99% of the code out there today will still result in repainting of the last dot back.
Appreciate your response Mike. So it is not a quick fix I assume. I wanted to use it as a strategy but I believe if it is going to reprint, then it probably can not be used...Am I assuming correctly?
well - for strategys , you have to use versions of the indicators without multicolor-function ! They have only 1 plot and thats easy + clear to handle.
that works perfect then.
they are also available.
Would you please direct me to where I could find them...The ADXVMA & the SMI2. Also how would the non multicolor version work if there are no colors to change? How would one know when line changes from red to yellow or blue, if there is no color. Sorry for the question but when it comes to strategies and programming I have NO clue.
For strategies, I usually build in something on my indicators specifically for strategy use. I usually use the Signal dataseries, but depends for each strat.
Most multi-color plot indicators are not strategy friendly. But you can make them strategy friendly.
The work is not hard (both making it strategy friendly and making it not redraw). However, I can't do it right now sorry, I have a lot of (paid) work that I have to finish first.