![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2006
Location: Toronto
Posts: 1,321
Thanks: 1
Thanked 7 times in 7 posts
|
gapSeconds = DateTime.Now.Subtract(startTime).TotalSeconds;
plotvar = Math.Round( total/gapSeconds ,1); Print(""); Print("total " +total); Print("Time elapsed is " +gapSeconds + " seconds."); Print("plotvar "+plotvar ); StrategyPlot(0).Value.Set( plotvar ); the above code will not plot it would appear that gapSeconds can not be used to divide StrategyPlot will plot gapSeconds...or total...but not plotvar...even though all variables print to the output window properly... is there something about the DateTime method that allows the number to be used to print but not divide? thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Please take note that you cannot plot in the Strategy Analyzer. Other than that you need to debug. If you can print it you should be able to set it.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|