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, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment