I'm looking to reference a specify bar and have looked into iTime and iBarshift but with no luck so far.
For example,
in a 5 min chart....
get-price-only-if = The last bar is (ie. 01:55:00, 02:55:00, 03:55:00, etc.....) before the hour closes
or
in a 30 min chart....
get-price-only-if = The last bar is (ie. 01:30, 02:30, 03:30, etc ....) before the hour closes
------------------------
The basic logic of part of code i'm trying to write is:
Only proceed if
(the current 30 min (for example 01:30:00) bar closes either (up/down))
then
check the last 15min bar (at 01:15:00-01:30:00) for (up/down)
then
check the last 5min bar (at 01:25:00-01:30:00) for (up/down)
Any help would be appreciated, Thanks!
For example,
in a 5 min chart....
get-price-only-if = The last bar is (ie. 01:55:00, 02:55:00, 03:55:00, etc.....) before the hour closes
or
in a 30 min chart....
get-price-only-if = The last bar is (ie. 01:30, 02:30, 03:30, etc ....) before the hour closes
------------------------
The basic logic of part of code i'm trying to write is:
Only proceed if
(the current 30 min (for example 01:30:00) bar closes either (up/down))
then
check the last 15min bar (at 01:15:00-01:30:00) for (up/down)
then
check the last 5min bar (at 01:25:00-01:30:00) for (up/down)
Any help would be appreciated, Thanks!