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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
478 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
321 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
258 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
342 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
310 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment