Code for pivot as an attachment as the code is too big for the post (reached max characters)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Swing based on Time help
Collapse
X
-
Swing based on Time help
I have this code that marks the latest pivots. However, I want the pivot to mark only if it is the highest/lowest in the last hour. Is that doable?
Code for pivot as an attachment as the code is too big for the post (reached max characters)
Tags: None
-
Hello Gaterz,
You may be able to create logic that checks for that by using HighestBar and LowestBar. You can search a period of time for highest/lowest bars which will give you a BarsAgo. You could then use that BarAgo with the Time series to see where that was in time. Depending on that result you could do other logic as needed.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
221 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
136 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
150 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
236 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
193 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment