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 NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
86 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
60 views
0 likes
|
Last Post
|

Comment