Thanks for all the help. I finally got it to compile. Beth, thanks a million for your patience and generosity.
I imported your EMA_Colors.cs file from the zip you provided. I did as Askinfo suggested. I removed every "UmaUtility." from the code and was able to compile it then.
I know the strategy has to run on a range chart. Does it have to be a 4 range as your chart shows or can it be user defined? Also, can I start the strategy at any time...are the time parameters within the strategy user definable? If they are, I see where you have them set to...Timefinish: 113000....Timestart: 94000. What time is that EST...(9:40am start and 11:30am finish?) What would be the settings for 6:00pm start to 5:00pm finish EST? Thanks again for all the assistance.
Yes, the strategy only works for Range charts because its entry is based on counting bars. When you have your chart up (your preferred Range timeframe and based on Perry's template), right-click on the chart and choose Strategies to pull up the enclosed. Adjust the Parameters to meet your preference, eg PT/SL, trading time and cum daily loss/profit targets (they're in $), then OK. It's also important to set the following:
1. Control Center - Tools - Options - Strategies - NinjaScript (Check Wait until flat before executing live)
2. Control Center - Tools - Options - Misc
- Time to flatten (change it to your preferred closing time)
- Flatten all (be sure to check this)
You will understand their importance after going through the suggested NJ Help topics. Good luck!
I am not sure what my problem is now but your last version of the strategy didn't compile for me either. I was ready to give up and didn't check the forum again till tonight. Seeing emini getting it compiled and running gave me a spark of hope but I'm back in the dumps again! All the errors had to do with that Jeffs indicator - it is your original one. I have the latest version of NT 6.5.1000.16. I posted the compiled code with the errors.
I'm very sorry for the frustration and time spent on compiling the strategy. I'm going to private message Emini and request his posting the strategy in this thread or sharing it with me so that I can do more troubleshooting from my end.
FYI: I'm using NT 6.5.1000.15 and I don't think the slightly different version matters.
Thanks omaha786 for your suggestion. Just checked. Regular EMA(20) does not have any plots. Guess one may consider a code like Rising(EMA(20)) or Falling(EMA(20)) + locating a chop filter replacing the existing one IF he/she wants a chop filter in the strategy.