Respectfully,
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Time Period wrong
Collapse
X
-
Strategy Time Period wrong
When I load a strategy through a chart, lets say a 150tick chart for example. My strategy is not referencing the chart it is loaded on (150tick), it is instead referencing a 60 min chart. Is there something I am doing wrong? I just want to be able to load a strategy into the chart, and have it reference that chart period, not a 60min. Is the 60 min period maybe programmed in the script? Any help would be great!
Respectfully, -
Hello Corbett,
Thank you for your response.
Go to Tools > Edit NinjaScript > Strategy > select your strategy > OK > look in the Initialize() method for calls to Add() for other period types.
Information on multiple series scripts can be found at the following link: http://www.ninjatrader.com/support/h...nstruments.htm
Comment
-
#region Initialize
protected override void Initialize()
{
//TraceOrders = true;
CalculateOnBarClose = false;
logbufer = new List<string>();
SetProfitTarget(CalculationMode.Ticks, take);
SetStopLoss(CalculationMode.Ticks, stop);
timerFlatten = new Timer();
timerFlatten.Elapsed += new ElapsedEventHandler(OnTimerElapsedFl);
timerFlatten.Interval = timerIntervalFl;
}
#endregion
Comment
-
Hello Corbett,
Thank you for your response.
Please send me your log and trace files for today so that I may look into what occurred.
You can do this by going to the Control Center-> Help-> Mail to Platform Support.
Please reference this thread in the body of the e-mail: "http://www.ninjatrader.com/support/forum/showthread.php?t=73135"
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
68 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
62 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment