You do not need to redownload. All you need to do is change the license key in Help->License key within NinjaTrader.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Popup alert window
Collapse
X
-
Thank you Josh,
I am getting 3 values in output window on every bar
3:45:00 PM currentSwingHigh:48.71 High[0]: 48.32 Low[0]:47.74
It properly marks pivot price, High and Low
However I am not sure what does this mean? It prints on every bar?
It doesn't answer my question of why this code doesn't produce an alert:
&& High[0] > currentSwingHigh
&& Low[0] < currentSwingHigh
Comment
-
xtrender,
Take a look at the values and do the math manually. You will find the conditions are never true hence why you never get any print for "Entered if-statement".
currentSwingHigh:48.71 High[0]: 48.32 Low[0]:47.74
High[0] > currentSwingHigh?
48.32 > 48.71? <- FALSEJosh P.NinjaTrader Customer Service
Comment
-
I have just looked through th chart for the bar that visualy coresponds to true condition
stock NOC 12/16/2008 15min chart time 2:30 pivot 41:39
Output print
currentSwingHigh: 0 High[0]41.54 Low[0] 40.89
Why do you think it currentSwingHigh is 0 on all instances where condition is true?
Comment
-
That is something you would need to continue to debug by going through the Swing code you had earlier. You need to print the currentSwingHigh out at each step. You are likely accessing it too late already.
Remember, that the Swing code is very tricky. It does go back in time and redraws itself.Josh P.NinjaTrader Customer Service
Comment
-
in your conditions replace currentSwingHigh with SwingHighPlot[1];Originally posted by xtrender View PostJosh, Many thanks. I don't know if my programming skills good enough to bring this to sucesfull conclusion, but at least you have put me on th right path! Indeed I was trying to access the pivot values too late.
Thank you again.
and replae currentSwingLow with SwingLowPlot[1].
I believe it will solve your problem
Comment
-
laredo,
If you have purchased a live license key you will have a license key to put in. If you have not then you will not be able to change it.
Please post in a new thread for unrelated concerns to programming or send an email to support [at] ninjatrader [dot] com.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
603 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
349 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
104 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
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
560 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment