Can someone help point this out to me and let me know how I can fix it??
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Please can someone help
Collapse
X
-
Please can someone help
I am trying to learn how to write strategies in ninjascript, I am just trying to adjust indicators to enter positions on signal. I am hitting a brick wall with the attached as I keep getting compile errors I dont understand how to fix or what I have done wrong.
Can someone help point this out to me and let me know how I can fix it??Tags: None
-
For starters, your bracketing on this line looks incorrect, and you have a terminal forward slash that cannot mean anything.Originally posted by mccallum28 View PostI am trying to learn how to write strategies in ninjascript, I am just trying to adjust indicators to enter positions on signal. I am hitting a brick wall with the attached as I keep getting compile errors I dont understand how to fix or what I have done wrong.
Can someone help point this out to me and let me know how I can fix it??
Code:zltema34slope = (int)(radToDegrees*(Math.Atan((ZeroLagTEMA))(Period))[0]-(ZeroLagTEMA(Period)[1]+ZeroLagTEMA(Period)[2])/2)/1.5/);
-
mccallum28, there are a few issues seen with your code - I would suggest working through our tutorials and the wizard first to get a good understanding of the possibilities and syntax needed, for example you had one variable misspelled (NinjaScript / C# is case sensitive) and strategies could not use the indicator plot statements / code, this would lead to compile error as well, this then in turn removes the need for the serialization aspects in the properties section as well. A good basic script to learn from would be for example our SampleMACrossOver strategy, you can copy it to a new file via renaming and then modify it working for example your ZLEMA's in as first step.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
65 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
149 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
99 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment