Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
HiLow
Collapse
X
-
Welcome to our forums, this would require custom coding unfortunately - I suggest you take a look at this shared script from your sharing section - http://www.ninjatrader-support2.com/...id=131&catid=1
Comment
-
is that someone has a code or it is necessary to keep the 5 most recent up and down like this: value1 = ((HighD (1) Lowder (1)) + (HighD (2)-Lowder (2)) + (HighD (3)-Lowder (3)) + (HighD (4)-Lowder (4)) + (HighD (5)-Lowder (5))) / 5;
I want to determine the high-low range of the last 5 days
Comment
-
etienne51,
I suggest you start off by checking out the tutorials here for how to use the Strategy Wizard: http://www.ninjatrader-support.com/H...tml?Overview34
You can also check out the tutorials for indicators here: http://www.ninjatrader-support.com/H...tml?Overview23Josh P.NinjaTrader Customer Service
Comment
-
pourriez vous m expliquer cette partie du code svp
if ( CurrentBar == 0 )
{
dsHigh = new double[dias];
dsLow = new double[dias];
for ( int i = 0; i < dias; i++ )
{
dsHigh[i] = nonValue;
dsLow[i] = nonValue;
}
}
if ( Bars.SessionBreak )//nouvelle session
{
for ( int i = 0; i < dias-1; i++ )
{
dsHigh[i] = dsHigh[i+1];
dsLow[i] = dsLow[i+1];
}
dsHigh[dias-1] = lastHigh;
dsLow[dias-1] = lastLow;
lastHigh = double.MinValue;
lastLow = double.MaxValue;
}
lastHigh = High[0] ;
lastLow = Low[0] ;
Plot0.Set( lastHigh );
Plot4.Set( lastLow );
Comment
-
could you explain this part of the code please
if (CurrentBar == 0)
(
DsHigh = new double [slides];
DsLow = new double [slides];
For (int i = 0; i <dias i + +)
(
DsHigh [i] = nonValue;
DsLow [i] = nonValue;
)
)
If (Bars.SessionBreak) / / new session
(
For (int i = 0; i <dias-1 i + +)
(
DsHigh [i] = dsHigh [i +1];
DsLow [i] = dsLow [i +1];
)
DsHigh [dias-1] = lastHigh;
DsLow [dias-1] = lastLow;
LastHigh = double.MinValue;
LastLow = double.MaxValue;
)
LastHigh = High [0];
LastLow = Low [0];
Plot0.Set (lastHigh);
Plot4.Set (lastLow);
Comment
-
Since this is not our own code it would be best if you contact the original author for clarifications - http://www.ninjatrader-support2.com/...h=daily&desc=1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 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