Script validation of DoubleMA indicators - NinjaTrader Programming | futures io social day trading
futures io futures trading


Script validation of DoubleMA indicators
Updated: Views / Replies:1,629 / 4
Created: by njaisson Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Script validation of DoubleMA indicators

  #1 (permalink)
Elite Member
Madrid
 
Futures Experience: Intermediate
Platform: Ninja
 
Posts: 15 since Sep 2009
Thanks: 0 given, 0 received

Script validation of DoubleMA indicators

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!

Reply With Quote
 
  #2 (permalink)
Just starting out...
Bentiem
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: ZenFire
Favorite Futures: ES TF
 
Victor 10's Avatar
 
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
 
  #3 (permalink)
Elite Member
Near the BEuTiFULL Horse Shoe
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: MBTrading Dukascopy ZenFire
Favorite Futures: $EURUSD when it is trending
 
Trader.Jon's Avatar
 
Posts: 500 since Jul 2009
Thanks: 401 given, 176 received

" not a valid type" ??!!



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)
Just starting out...
Bentiem
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: ZenFire
Favorite Futures: ES TF
 
Victor 10's Avatar
 
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
 
  #5 (permalink)
Elite Member
cadiz
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: interactive brokers
Favorite Futures: 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

Reply



futures io > > > > > Script validation of DoubleMA indicators

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
DoubleMA for Ninja7 Al2010 NinjaTrader Programming 35 June 18th, 2011 05:06 PM
DoubleMA Alarm Tonywalker NinjaTrader Programming 0 December 9th, 2009 07:44 AM
Need little help with direct DoubleMA Peter NinjaTrader Programming 3 June 30th, 2009 08:35 PM
DoubleMA Maletor Traders Hideout 1 June 14th, 2009 12:21 PM
DoubleMA Maletor NinjaTrader Programming 2 June 12th, 2009 07:58 PM


All times are GMT -4. The time now is 12:39 PM.

Copyright © 2017 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
Page generated 2017-12-16 in 0.09 seconds with 19 queries on phoenix via your IP 54.91.38.173