ADXVMA & SMI2 Indicators + repaint Q - futures io
futures io futures trading



ADXVMA & SMI2 Indicators + repaint Q


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 7 posts (6 thanks)
    2. looks_two keepdchange with 6 posts (0 thanks)
    3. looks_3 max-td with 3 posts (0 thanks)
    4. looks_4 Zondor with 1 posts (0 thanks)
    1. trending_up 6,147 views
    2. thumb_up 6 thanks given
    3. group 4 followers
    1. forum 16 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ADXVMA & SMI2 Indicators + repaint Q

(login for full post details)
  #1 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

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

Attached Files
Register to download File Type: zip ADXVMA_Alerts_v01_4.zip (5.7 KB, 75 views)
Register to download File Type: zip SMI2.zip (8.1 KB, 92 views)
Started this thread Reply With Quote

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(158 thanks from 30 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(111 thanks from 32 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 16 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received

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.

max-td
Reply With Quote
 
(login for full post details)
  #3 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received


Hi Max....So another words, we have to wait for 2 consecutive bars to close before confirmation...I got you. Thanks for the info.

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received

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.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #5 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

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?

Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received

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.

max-td
Reply With Quote
 
(login for full post details)
  #7 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

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.

Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received


keepdchange View Post
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?

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.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #9 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received


keepdchange View Post
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.

There aren't any non-multi-colored versions AFAIK. Would need to make the edits.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #10 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received


I understand Mike. As always, appreciate your hard work.

Started this thread Reply With Quote
 
(login for full post details)
  #11 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received


keepdchange View Post
I understand Mike. As always, appreciate your hard work.

Keep,

I just realized you are a VIP so will make these changes for you since they are small. Will be in touch.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #12 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received

Hmm I recognize this code, lol, something I wrote for sharky a long time ago. But someone has made a lot of changes...

Here is the new ADXVMA version. It won't redraw if your Plot type is not a Line. I like dots personally.

It already had a Signal dataseries for strategies. 1 means rising, -1 means falling.

Here it is:


Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following 2 users say Thank You to Big Mike for this post:
 
(login for full post details)
  #13 (permalink)
California
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Zen Fire
Trading: ES, Currency Futures (6E)
 
Posts: 159 since Sep 2009
Thanks: 78 given, 10 received

Thank you Mike..Just downloaded it. It works great. So in order to use it in the strategy, I have to adjust the parameters to dot instead of line for plotting. The SMI2 that I have been using was the one from the download section. Does that need to re-programmed or can I just use the same but change the lines to dots? Sorry if it sounds stupid!

Started this thread Reply With Quote
 
(login for full post details)
  #14 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received

Alright, and here is the new SMI2.

Same deal - if your plot is a line, it will connect. But if not a line (ie: dot) it will not redraw the prior bar.

I also made the smis DataSeries public, so you can now access .SMIs from a strategy for the value of the plot.

The code needs some cleaning up but I have no time so I left it. Was functional.

Download here:


Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #15 (permalink)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 49,745 since Jun 2009
Thanks: 32,292 given, 97,490 received


keepdchange View Post
Thank you Mike..Just downloaded it. It works great. So in order to use it in the strategy, I have to adjust the parameters to dot instead of line for plotting. The SMI2 that I have been using was the one from the download section. Does that need to re-programmed or can I just use the same but change the lines to dots? Sorry if it sounds stupid!

No -- in a strategy, for ADXVMA, use the Signal dataseries. If signal=1 it's rising, if -1 it's falling. If you want some other info out of it it's not available in present code form.

Using dots (instead of lines) will prevent it from repainting 1 bar back in time. It doesn't effect the Signal dataseries.

For SMI2 -- it has to be re-coded. I just made the change for you (above post). Changing the plot style to dots will not work unless the code is specifically designed to work that way, and afaik, 99% of code out there isn't designed this way. I'm building it in to all my custom work going forward.

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Big Mike for this post:
 
(login for full post details)
  #16 (permalink)
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 924 received


Big Mike View Post
There aren't any non-multi-colored versions AFAIK. Would need to make the edits.

Mike

Not agree - they are !
SMI2 == StochMomIndex // SMI2 then was the evolution to the colored-version
ADXVMA-Alert == native good old simple ADXVMA // ADXVMA-alert then was the evolution to the diamond-alert-versions after the evolution to the multicoloredversion - lol

these colorful tweaked indies are so present+around here that most of the guys even dont know where they came from i think

max-td
Reply With Quote
 
(login for full post details)
  #17 (permalink)
Portland Oregon, United States
 
Experience: Beginner
Platform: Ninjatrader®
Broker: CQG, Kinetick
Trading: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,347 since Jul 2009
Thanks: 1,245 given, 2,721 received

In Ninjatrader 7, multi color plotting is accomplished by changing the color of one plot, rather than by switching between different plots and connecting them with line segments that repaint.

This is a big improvement over Ninjatrader 6.5!

In the Ninjatrader forums, the "MultiColor Plot Approach" thread deals with this subject. To find it, just do a keyword search for the quoted phrase, as I was unable to post the link.

Post #1 in that thread links to sample code showing how to use this new type of multi-color plotting.

Post #23 in that thread links to sample code showing how to create parameterized, user definable colors to use in multi color plots.

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > ADXVMA & SMI2 Indicators + repaint Q


Last Updated on December 29, 2009


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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.
no new posts