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!
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
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.
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
************
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