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
Error
Collapse
X
-
It is strange that you only get an error for MAX, but not for MIN in your PSAR. What is the difference here? In Line 70 calling MAX does not seem to produce an error.
The asterix on top shows us that you did not compile the indicator as shown in the screenshot. I think the indicator works as it is shown. But it cannot work without compilation.
Also I would never ever use MAX(High, CurrentBar)[0]. This means that you look for the maximum over the entire chart. It will slow down NinjaTrader (and definitely freeze it, if you set the indicator to CalculateOnBarClose = false), and it would not make sense in any context.Last edited by Harry; 11-15-2015, 05:58 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by terofs, Yesterday, 04:18 PM
|
1 response
21 views
0 likes
|
Last Post
by terofs
Today, 10:14 AM
|
||
Started by CommonWhale, Today, 09:55 AM
|
1 response
3 views
0 likes
|
Last Post Today, 10:11 AM | ||
Started by Gerik, Today, 09:40 AM
|
2 responses
7 views
0 likes
|
Last Post
by Gerik
Today, 10:04 AM
|
||
Started by RookieTrader, Today, 09:37 AM
|
2 responses
13 views
0 likes
|
Last Post
by RookieTrader
Today, 10:02 AM
|
||
Started by alifarahani, Today, 09:40 AM
|
1 response
7 views
0 likes
|
Last Post Today, 10:01 AM |
Comment