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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
60 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