NexusFi: Find Your Edge


Home Menu

 





Help with Channel This in Ninja 6.5


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one redratsal with 10 posts (3 thanks)
    2. looks_two CaptainAmericaXX with 9 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 zxxaxz with 1 posts (0 thanks)
    1. trending_up 9,061 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 20 posts
    2. attach_file 2 attachments




 
Search this Thread

Help with Channel This in Ninja 6.5

  #1 (permalink)
CaptainAmericaXX
Montrose, CO
 
Posts: 11 since Mar 2011
Thanks Given: 4
Thanks Received: 0

Hello,
I'm still new to programming. I'm trying to use the Channel This indicator in a strategy with Ninja 6.5. I'm getting an error that, "'Ninja Trader.Indicator.MAV' is a 'type', which is not valid in the given context". Anyone have a suggestion as how to fix this indicator to make it workable in a 6.5 strategy?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090



CaptainAmericaXX View Post
Hello,
I'm still new to programming. I'm trying to use the Channel This indicator in a strategy with Ninja 6.5. I'm getting an error that, "'Ninja Trader.Indicator.MAV' is a 'type', which is not valid in the given context". Anyone have a suggestion as how to fix this indicator to make it workable in a 6.5 strategy?

try here version NT 7 post #3 and think about Fat Tail's suggestions

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
CaptainAmericaXX
Montrose, CO
 
Posts: 11 since Mar 2011
Thanks Given: 4
Thanks Received: 0

Thank you for the reply.
I read that post. I'm still clinging to 6.5 because there are indicators I like in it that will not work in 7.

Reply With Quote
  #5 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


CaptainAmericaXX View Post
Thank you for the reply.
I read that post. I'm still clinging to 6.5 because there are indicators I like in it that will not work in 7.


did you try also here ChannelThis and updated DoubleMA - Page 2 - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

also check in your indy list MAV.cs edit+compile(F5) and verify if script is OK. If not ok repeat it with all the indies in the zipped file.

Visit my NexusFi Trade Journal Reply With Quote
  #7 (permalink)
CaptainAmericaXX
Montrose, CO
 
Posts: 11 since Mar 2011
Thanks Given: 4
Thanks Received: 0

Thanks for your suggestions redratsal. I downloaded the Channel This and Double MA, also the MAV compiles, but Channel This will still not work in an indicator. Also the DoubleMA will not work in a strategy. They are both giving the same error I listed above.( "'Ninja Trader.Indicator.MAV' is a 'type', which is not valid in the given context") Both indicators list code lines like this in Variables:
private NinjaTrader.Indicator.MAV.MAType mA1Type = NinjaTrader.Indicator.MAV.MAType.HMA;
Somewhere MAV is not specified as I 'type' correctely I'm guessing, but I don't know how to fix it. Any suggestions?

Reply With Quote
  #8 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


CaptainAmericaXX View Post
Thanks for your suggestions redratsal. I downloaded the Channel This and Double MA, also the MAV compiles, but Channel This will still not work in an indicator. Also the DoubleMA will not work in a strategy. They are both giving the same error I listed above.( "'Ninja Trader.Indicator.MAV' is a 'type', which is not valid in the given context") Both indicators list code lines like this in Variables:
private NinjaTrader.Indicator.MAV.MAType mA1Type = NinjaTrader.Indicator.MAV.MAType.HMA;
Somewhere MAV is not specified as I 'type' correctely I'm guessing, but I don't know how to fix it. Any suggestions?


I checked the script via notepad++, I don't have NT6.5 to compile it but try to replace line 26 with

private mAType = 1;

Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
CaptainAmericaXX
Montrose, CO
 
Posts: 11 since Mar 2011
Thanks Given: 4
Thanks Received: 0

Are you directing me to place that in the MAV indicator or the Channel This? I tried it in the MAV and got an error stating that I needed to specify the class variable. In Channel This line 26 didn't match with the suggestion.

Reply With Quote
  #10 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090



CaptainAmericaXX View Post
Are you directing me to place that in the MAV indicator or the Channel This? I tried it in the MAV and got an error stating that I needed to specify the class variable. In Channel This line 26 didn't match with the suggestion.


Ok, try this one I modified the Mav, as the NT7 version was reporting the same error just import attached mav.zip with NT utilities. This indy was modified several times by other users, check that it plots correctly.

Modifications:

in Mav.cs lines 136 and 137 modified in comments

Attached Files
Elite Membership required to download: Mav.zip
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on March 16, 2011


© 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