NexusFi: Find Your Edge


Home Menu

 





JMA Paintbar modification


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Big Mike with 4 posts (7 thanks)
    2. looks_two keepdchange with 4 posts (0 thanks)
    3. looks_3 AynRandFan with 3 posts (0 thanks)
    4. looks_4 chartman with 1 posts (0 thanks)
    1. trending_up 9,628 views
    2. thumb_up 8 thanks given
    3. group 3 followers
    1. forum 12 posts
    2. attach_file 3 attachments




 
Search this Thread

JMA Paintbar modification

  #11 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,661


AynRandFan View Post
Mike, is there any way to simply access the color change from within a strategy? Probably there's some simple answer, I'm just not seeing it.

Easiest way would be to add back a public DataSeries for Values[0] (the "JMA" plot, line 45).

At line 276 after #region, insert:
 
Code
                            
[Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        
public DataSeries JMAv
        
{
            
get { return Values[0]; }
        } 
Then call the .JMAv DataSeries from your strategy, ie:

 
Code
                            
double _jmavalue JMA(LengthPhase).JMAv[0]; 

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Quant vue
Trading Reviews and Vendors
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #12 (permalink)
 
AynRandFan's Avatar
 AynRandFan 
St. Paul, MN.
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Zen-Fire
Trading: ES, equity options.
Posts: 22 since Sep 2009
Thanks Given: 10
Thanks Received: 52


Big Mike View Post
Easiest way would be to add back a public DataSeries for Values[0] (the "JMA" plot, line 45).

At line 276 after #region, insert:
 
Code
                            
[Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
[XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        
public DataSeries JMAv
        
{
            
get { return Values[0]; }
        } 
Then call the .JMAv DataSeries from your strategy, ie:

 
Code
                            
double _jmavalue JMA(LengthPhase).JMAv[0]; 

Mike

Aaah... that worked just fine.

Now, making money with it is another question.

Wanted to say thanks, anyhow.

Reply With Quote
  #13 (permalink)
 brevco 
Denham Springs, LA
 
Experience: Advanced
Platform: Amibroker / Ninja Trader
Broker: Mirus Zenfire
Trading: TF 6E NQ
Posts: 194 since May 2010
Thanks Given: 259
Thanks Received: 187


Hello,

I've attached the JMA up/down indicator. Would it be possible for someone to convert this one to work with Ninja 7.0?

When I plot it on the chart, it sometimes "shifts" and I can see where the line breaks. If I press "F5" then it refreshes and everything looks fine but without constantly refreshing the screen, it can get confusing in a fast or choppy market.

I am also having the same issue with the Cory's Slingshot but I will post a request in the appropriate thread.

Thank you. I appreciate any assistance.

Attached Files
Elite Membership required to download: JMA_updown.zip
Reply With Quote
Thanked by:




Last Updated on October 27, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts