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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment