Thanks in advance
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help with strategy based on line indicator
Collapse
X
-
Help with strategy based on line indicator
Hi, I am trying to develop strategy based on AuZeroLagHATEMA or AuDWMA, which are line indictors on candlestick chart. So basically I have setup in the way with green and red line (Average Raising, Average Falling). I want to enter long 1 ES contract when line changing to green, and exit long plus enter same short position when becoming red. Without any stop loss or profit target, so I want to be in trade all the time. How can I do it?
Thanks in advance2 PhotosLast edited by pandemonium; 06-11-2022, 07:24 AM.Tags: None
-
Hello pandemonium,
As long as this is a Plot, you can check IsFalling(MyIndicatorName().MyPlotName) to be true if it is falling or IsRising(MyIndicatorName().MyPlotName) to be true if it is rising.
I am also including a link to a forum post with helpful resources on getting started with NinjaScript and C#. Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
89 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment