Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
DrawDiamond("My swing" , true, 1, Swing(10).SwingHighBar(10, 1, 50), Color.Blue
Collapse
X
-
Hi, you can use Swing High Bar / Swing Low bar to reference previous swing points, this link includes sample code how to achieve this - http://www.ninjatrader-support.com/H...eV6/Swing.html
Consider those give you the barsAgo value the swing was identified, you need to put those then into the 'value' method to get a price level.
If you want to see previous 'dots' you would need to use a unique tag id for your DrawDot (you can do this by adding CurrentBar to your existing one).
-
Hello,
The Swing indicator is challenging to work with. To get a better understanding of the values and how/when they change, use Print() and print out the values. Sometimes the values are available and sometimes they are redrawn after the fact. You will have to play around with it to see what I mean.DenNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
61 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
148 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
286 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment