- Clean out the log.
- Open a new workspace with 1 chart
- Apply the indicator to it
- Examine the log for errors. (Or post the log, so we can see what is in it).
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Converting indicators from 6.5 to Ninja 7 problems
Collapse
X
-
Originally posted by koganam View PostI would suggest that you:- Clean out the log.
- Open a new workspace with 1 chart
- Apply the indicator to it
- Examine the log for errors. (Or post the log, so we can see what is in it).
Amongst many lines the log contains this line for the indicator:
"CalculateValueAreaHistv2: 'Ticksize' property can't be accessed from within 'Initialize' method"
Btw, how would I do number 1) Clean out the log ?
Many thx
Comment
-
Originally posted by dj22522 View PostThx.
Amongst many lines the log contains this line for the indicator:
"CalculateValueAreaHistv2: 'Ticksize' property can't be accessed from within 'Initialize' method"
Btw, how would I do number 1) Clean out the log ?
Many thx
You clean the log by refreshing it.- Close NinjaTrader.
- Go to the log folder under the user directory.
- Rename the log file that has a name that includes today's date.
- Restart NinjaTrader, and a new log will be created.
Comment
-
Via Edit I see there is no section for OnStartUP()
There are a few lines referring to TickSize in 'Initialize'.
protected override void Initialize()
{
ChartOnly = true;
Overlay = true;
CalculateOnBarClose = true;
PriceDigits = Math.Max(0,TickSize.ToString().Length-2);
RecalculateColors();
if(TickSize.ToString().Length<=2) FS="0";
if(TickSize.ToString().Length==3) FS="0.0";
if(TickSize.ToString().Length==4) FS="0.00";
if(TickSize.ToString().Length==5) FS="0.000";
if(TickSize.ToString().Length>=6) FS="0.0000";
}Last edited by dj22522; 07-06-2011, 10:49 AM.
Comment
-
Originally posted by koganam View PostThat error means that there is something being done in the Initialize() method that may have worked in NT6.5, but does not work in NT7, one of the reasons why NT Support warns us about using undocumented features. I may be able to take a quick look after the market closes, but cannot examine code at this time.
You clean the log by refreshing it.- Close NinjaTrader.
- Go to the log folder under the user directory.
- Rename the log file that has a name that includes today's date.
- Restart NinjaTrader, and a new log will be created.
And thx for the Clean Log instructions.
Many thx
PS: Apologies Davis72 for intruding, I just realized it's your thread rather than a overall thread for NT6.5 to Nt7 issues.
Apologies
.Last edited by dj22522; 07-06-2011, 11:22 AM.
Comment
-
This is a section that you'll have to add. If you need assistance with converting indicators, you can contact one of our 3rd party NinjaScript consultants - http://www.ninjatrader.com/partners#...pt-Consultants
Code:Initialize() { // stuff goes here } OnStartUp() { // more stuff here } OnBarUpdate() { // main stuff here }
AustinNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Austin View PostDJ, please take a look at how I created the OnStartUp() section and moved some code from Initialize() to OnStartUp(). I'm not sure exactly how this script is supposed to work, but it is plotting some bars now.
I will read and learn.
Yes it's a rolling histogram for user selectable period.
ie set to 15 minute the histogram will always be the data for the last 15 minutes rolling forward in real time.
Many thx.
PS: I asked initially in this dedicated thread.
Apologies to davis72, so please remove all post relating to this indi if it's better to do so and I'' upload the indi there?
thx again
Last edited by dj22522; 07-06-2011, 11:39 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
19 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
179 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by ghoul, Today, 06:02 PM
|
0 responses
9 views
0 likes
|
Last Post
by ghoul
Today, 06:02 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM | ||
Started by DJ888, 04-16-2024, 06:09 PM
|
4 responses
13 views
0 likes
|
Last Post
by DJ888
Today, 04:28 PM
|
Comment