Add(Bollinger(1.8,50));
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
adding indcators to a strategy pane
Collapse
X
-
Thanks it was me
One more thing though.
When I optimize for the period, myInput2, then add the RSI.
The chart in the optimizer shows the default time from, 30 mins, not 20mins as in the myInput2 optimization parameter.
Is this correct to do it this way?
Add(PeriodType.Minute,myInput2);
Add(RSI(Closes[1],myInput3,myInput4));
Thanks
Tinkerz
Comment
-
tinkerz,
The primary series of the optimizer will be whatever is selected in the data series section. The code you posted is used for the secondary or added series.
You can optimize on the primary series though. Set optimize on data series > true and then you can set the min, max, and increment values for it.Ryan M.NinjaTrader Customer Service
Comment
-
When I use multiperiod charts in a strategy, my assumption is after you add the period type you then use closes to pick the data array.
The add is drawing the RSI the same as the default chart period, 60 mins, and not 10.
RSI(ES##-##,(60 min),4,4), where I am expecting 10mins
Where is my error?
myInput2=10; Min and Max are 10, the increment is 1
myInput3 & myInput4 are optimized
So that means my crossover code is on 60min as well
Add(PeriodType.Minute,myInput2);
Add(RSI(Closes[1],myInput3,myInput4));
CalculateOnBarClose = true;
if (BarsInProgress==0)
{
if(CrossBelow(RSI(Closes[1],myInput3,myInput4).Avg,70,1))
{
'some instruction
}
}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
647 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment