Can anyone advise how to get the righ High & Low of the most recent 3 buttons?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Feature Request: Adding “Snap to Extreme” to Fibonacci Retracements Drawing Tool
Collapse
X
-
Feature Request: Adding “Snap to Extreme” to Fibonacci Retracements Drawing Tool
Hi, I'm transfering my working NT7 indicator to NT8. The indicator will create 2x buttons next to the chart. When click "Fib Up", it will use the most recent 2 completed bar to draw Fibonacci Retrancement up. vici-versal. But I have issue with High[0] and Low[0] that does not reflect the High and Low of the most recent completed bar. When check these two value in OnBarUpdate(), it will reflect correctly. But if check the same High[0] and Low[0] when software enter routine Button_Click(), the High[0] and Low[0] does not reflect the right value. When check the Bars.GetTime, it showed it was looking at bar at Sep instead of today's bar.
Can anyone advise how to get the righ High & Low of the most recent 3 buttons?
1 PhotoTags: None
-
-
-
Now I met a new problem on the same script (migrating from working NT7 to NT8). I use a customized button to start the entry-seeking process in a zone (evaluate inside 'OnBarUpdate'). When it found an entry, it will use ATM to park entry requests. Once parked (before market reach to take out the entry), it will clear the button color and text to show that the request already turned to actual entry request.
The problem now is that when it tries to change button color (inside routine ClearZoneFlags), the script crash with the error "Error on calling 'OnBarUpdate' method on bar 59561: The calling thread cannot access this object because a different thread owns it." Please see pic below. Any suggestion on how do I able to solve this? Thanks.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
63 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
90 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
48 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
105 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment