You do not need to redownload. All you need to do is change the license key in Help->License key within NinjaTrader.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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
-
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 ZenCortexCLICK, Today, 04:58 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 04:58 AM | ||
Started by sidlercom80, 10-28-2023, 08:49 AM
|
172 responses
2,279 views
0 likes
|
Last Post
by sidlercom80
Today, 04:40 AM
|
||
Started by Irukandji, Yesterday, 02:53 AM
|
2 responses
17 views
0 likes
|
Last Post
by Irukandji
Today, 03:55 AM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
0 responses
4 views
0 likes
|
Last Post
by adeelshahzad
Today, 03:54 AM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
3 responses
13 views
0 likes
|
Last Post Yesterday, 11:58 PM |
Comment