NexusFi: Find Your Edge


Home Menu

 





Script validation of DoubleMA indicators


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Victor 10 with 2 posts (0 thanks)
    2. looks_two njaisson with 1 posts (0 thanks)
    3. looks_3 Trader.Jon with 1 posts (0 thanks)
    4. looks_4 andaluz with 1 posts (0 thanks)
    1. trending_up 2,613 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Script validation of DoubleMA indicators

  #1 (permalink)
 njaisson 
Madrid
 
Experience: Intermediate
Platform: Ninja
Posts: 15 since Sep 2009
Thanks Given: 0
Thanks Received: 0

Hello,

I need to declare as variables the sharky indicators DoubleMAPaint_SharkyPkg in order to develop a Ninjascript strategy (based on the crossover of the two lines). Any idea how I can do that? Besides Ninja says DMA is not a valid type. Does anyone know how to debug these indicators loaded with "programming errors"?? Thank you!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Request for MACD with option to use different MAs for fa …
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #2 (permalink)
Victor 10
Bentiem
 
Posts: 4 since Jun 2010
Thanks Given: 3
Thanks Received: 1

njaisson,
I am not a 'programmer' only a cut and past. I have been looking for a similar answer as to how to have DoubleMA in a strategy. After 2 weeks looking and trying still have no solution. If you or someone reading this will explain how to keep NT6.5 happy I sure would appreciate it.

NT6.5 compile complains:

'NinjaTrader.Indicator.DoubleMA_internal' is a 'type', which is not valid in the given context
The name 'DMAType' does not exist in the current context

Thanks, Vic10

Reply With Quote
  #3 (permalink)
 
Trader.Jon's Avatar
 Trader.Jon 
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
Posts: 473 since Jul 2009
Thanks Given: 401
Thanks Received: 184



njaisson View Post
Hello,

I need to declare as variables the sharky indicators DoubleMAPaint_SharkyPkg in order to develop a Ninjascript strategy (based on the crossover of the two lines). Any idea how I can do that? Besides Ninja says DMA is not a valid type. Does anyone know how to debug these indicators loaded with "programming errors"?? Thank you!

Can you please link to the file you are having problems with? If it is in the elite section please just give the full proper name and who it was uploaded by. I will have a fast look after I finish rebuild my NT 'puter.

TJ

Reply With Quote
  #4 (permalink)
Victor 10
Bentiem
 
Posts: 4 since Jun 2010
Thanks Given: 3
Thanks Received: 1

I found the solution below. I now have an SMA cross below DoubleMA
[COLOR=#0000ff]https://nexusfi.com/[AUTOLINK]ninjatrader[/AUTOLINK]-programming/423-simple-strategy-post54769.html#post54769[/COLOR]
Posted by: Victor 10
On: August 5th, 2010 05:30 PM

Thanks BigMike
after 2 weeks HERE is the answer .... "Keep in mind if you use the wizard it places + sign instead of . in a couple of places, you need to manually change it, but your string above seems fine.

Mike "
i replaced the'+' with a '.' and now it will compile!!
Vic10
************

Reply With Quote
  #5 (permalink)
 andaluz 
cadiz
 
Experience: Beginner
Platform: NinjaTrader
Broker: interactive brokers
Trading: stocks
Posts: 4 since Nov 2009
Thanks Given: 2
Thanks Received: 1

Hi all!:
I have a similar problem. I would like to make an indicator for market analyzer where:
If DMA is below "below band of PRC", create alert=1
If DMA is upper "upper band of PRC", create alert=-1

I have an error:
'NinjaTrader.Indicator.DoubleMA_internal' is a 'type', which is not valid in the given context
The name 'DMAType' does not exist in the current context

Sorry, my poor english.

Reply With Quote





Last Updated on August 6, 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