Script validation of DoubleMA indicators - futures io
futures io futures trading



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,005 views
    2. thumb_up 0 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 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
 

Script validation of DoubleMA indicators

(login for full post details)
  #1 (permalink)
Madrid
 
Experience: Intermediate
Platform: Ninja
 
Posts: 15 since Sep 2009
Thanks: 0 given, 0 received

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

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(170 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #2 (permalink)
Bentiem
 
 
Posts: 4 since Jun 2010
Thanks: 3 given, 1 received

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
 
(login for full post details)
  #3 (permalink)
Near the BEuTiFULL Horse Shoe
 
Experience: Beginner
Platform: NinjaTrader
Broker: MBTrading Dukascopy ZenFire
Trading: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 183 received



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
 
(login for full post details)
  #4 (permalink)
Bentiem
 
 
Posts: 4 since Jun 2010
Thanks: 3 given, 1 received

I found the solution below. I now have an SMA cross below DoubleMA
https://futures.io/ninjatrader-programming/423-simple-strategy-post54769.html#post54769
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
 
(login for full post details)
  #5 (permalink)
cadiz
 
Experience: Beginner
Platform: NinjaTrader
Broker: interactive brokers
Trading: stocks
 
Posts: 4 since Nov 2009
Thanks: 2 given, 1 received

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


futures io Trading Community Platforms and Indicators NinjaTrader > Script validation of DoubleMA indicators


Last Updated on August 6, 2010


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
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



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