![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
The rounding seems to be off for YM as it has a higher decimals number...you would need to check into the code generating the rounding factor to be applied or contact the original author for input.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
Rollins, the creator, does not receive private messages. Any help?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Unfortunately you would then need to review the code and debug it for the YM instrument then. You could of course also a consultant to take a look and tweak it for you -
http://www.ninjatrader.com/webnew/pa...injaScript.htm
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
I took a quick look and added a fix which I believe works ok for YM and does not impact others, please try the attached.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Correct, this was an NT 7 file - you can add the needed code snippet yourself to your 65 code as the decimals are set -
Code:
if (Instrument.MasterInstrument.Name == "YM") decimals = 1;
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
Without the ability to import yours, I cannot view the script to see where to put the snipet. Can you give me a screenshot of where to put the snipet in 6.5?
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Please try the attached for 6.5, should be quicker this way - should be the same as NT7 version resultwise.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Then you will need to ensure you're present NinjaScript files are error free and that they compile well, please see here for tips to get to compilable state -
http://www.ninjatrader-support2.com/...ead.php?t=4678
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
I opened an indicator to compile all indicators using F5. It appears to only complile the indicator that I edited? It did not run a compile on all indicators?
Something I am doing wrong? |
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
When you open one script and hit F5 all would be compiled, this is a must as it will be all put into one assembly.
Were you able to import my file then afterwards?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Jan 2009
Posts: 333
Thanks: 0
Thanked 0 times in 0 posts
|
I dont think all were being compiled. I got no error messages. I deleted DoubleMA. Tried to reinstall the original one from the forum. I am still getting the same error message below.
I use DMA for trading and am shutdown. |
|
|
|
|
|
#15 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Ok, please try deleting the DoubleMA and MAV it would use, then open any indicator and press F5 to recompile all again, then restart NT fresh and reimport my file downloaded to your desktop, still the same issue at hand?
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ChannelThis and updated DoubleMA | ctrlbrk | Indicator Development | 16 | 06-17-2010 10:18 PM |
| Error msg when applying DoubleMA indicator | Taddypole | Version 7 Beta General Questions & Bug Reports | 2 | 04-04-2010 12:35 PM |
| Doublema | trader1512 | Miscellaneous Support | 16 | 06-10-2009 05:51 AM |