Hello,
Instead of relying on others do code for me... I am taking up coding myself... and got my EA placing orders... but I am trying to fine tune for when it should take trades.
I want to place a trade on a 5 min trade if it has EVER closed below a price level, say previous hour low.
How would I go about this?
I just cannot get the logic correct... it needs to check all 5 min bars for current hour that has not finished, but I cannot figure out how to get the current time open for the 5 min bar and do a check for all 5 min bars up to current hour.
Thanks,
Vip
Instead of relying on others do code for me... I am taking up coding myself... and got my EA placing orders... but I am trying to fine tune for when it should take trades.
I want to place a trade on a 5 min trade if it has EVER closed below a price level, say previous hour low.
How would I go about this?
I just cannot get the logic correct... it needs to check all 5 min bars for current hour that has not finished, but I cannot figure out how to get the current time open for the 5 min bar and do a check for all 5 min bars up to current hour.
Thanks,
Vip