Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Non Historical Swing Indicator
Collapse
X
-
Non Historical Swing Indicator
What language would it take to modify the normal ninjatrader swing indicator to show only the last high and low swings?Tags: None
-
Hi Rallii, thanks for posting.
I made this "Single dot" Swing indicator that only shows the original swing point:
Alternatively, you can make a new indicator that adds a Swing() object and uses a Draw command to draw just one data point for each bar e.g. Draw.ArrowUp.
Kind regards,
-ChrisL
-
-
Comment
-
Thanks, Chris!
A more complicated question, How would I get a strategy to at the entry draw a Gann Fan and then use the rays as an exit.. Like the price action has to stay between the 1x8 and the 1x2, and exit when the close crosses below the 1x2? is that possible?
Comment
-
Thank Chris, A bit out of my league at the moment.. Do you have an example of a script that uses drawn objects as exits?
Comment
-
Hi, thanks for your reply. I do not know of an exact example of using draw objects You will need to test out the available data by first drawing the tools you want to use (manually on the chart or through NinjaScript) and accessing the data from the objects. Start by using the HorizontalLine tool as this only has one data point. If you draw the line from your script, using Draw.HorizontalLine, you can access the data directly, e.g. HorizontalLine HZ = Draw.HorizontalLine(this, "tag1", 1000, Brushes.Black); //data can be accessed from HZ.
If you draw the line manually, you will need to iterate the DrawObjects array and find the line first, then you can access the data once found. There are small examples here as well:
Best regards,
-ChrisL
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
606 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment