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
Can not compile strategy
Collapse
X
-
Can not compile strategy
I am trying to write a strategy with a custom indicator (trade devils buy/sell momentum) and I am getting an error saying that it can not compile the ninjascript. I have a friend getting the same error message when he trys as well. I have contacted the vendor but their website says they do not provide support for the strategy builder. Is there a way to see what's causing the issue with compiling?1 PhotoTags: None
-
Hello Tyler803,
Some indicators are not designed to work in the Strategy Builder. It is sometimes necessary to unlock the script and code by hand, or contact the developer to make changes to the indicator so that it is compatible with the Strategy Builder.
Below is a link to a forum post with instructions on how to find compile errors in the NinjaScript Editor.
Please provide a screenshot of the errors and I will be happy to assist.Chelsea B.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_ChelseaB View PostHello Tyler803,
Some indicators are not designed to work in the Strategy Builder. It is sometimes necessary to unlock the script and code by hand, or contact the developer to make changes to the indicator so that it is compatible with the Strategy Builder.
Below is a link to a forum post with instructions on how to find compile errors in the NinjaScript Editor.
https://forum.ninjatrader.com/forum/...64#post1211564
Please provide a screenshot of the errors and I will be happy to assist.
1 Photo
Comment
-
Hello Tyler803,
I'm not familiar with TDUBuySellMomentum, but the parameters you are supplying to the overload is incorrect.
Put the cursor just inside the parenthesis. Then hit Ctrl + Spacebar on the keyboard. Then take a screenshot of the overload signature (or hit print screen and paste into MS Paint).
What is the overload signature for this custom indicator?Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello Tyler803,
I'm not familiar with TDUBuySellMomentum, but the parameters you are supplying to the overload is incorrect.
Put the cursor just inside the parenthesis. Then hit Ctrl + Spacebar on the keyboard. Then take a screenshot of the overload signature (or hit print screen and paste into MS Paint).
What is the overload signature for this custom indicator?1 Photo
Comment
-
Hello Tyler803,
From the looks of it, this custom indicator has no parameters in the overloads. The Input series is added by default.
You might have to set properties after instantiating.
private MyIndicatorName myIndy;
myIndy = MyIndicatorName();
myIndy.CustomPropertyName = 10;
I would recommend you reach out to the vendor or author that created this indicator for instructions on how to call it from NinjaScript.Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello Tyler803,
From the looks of it, this custom indicator has no parameters in the overloads. The Input series is added by default.
You might have to set properties after instantiating.
private MyIndicatorName myIndy;
myIndy = MyIndicatorName();
myIndy.CustomPropertyName = 10;
I would recommend you reach out to the vendor or author that created this indicator for instructions on how to call it from NinjaScript.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment