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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
361 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
281 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment