I have been searching for the answer of the following problem for quite a while, but I couldn't find one.
It is a simple breakout strategy: I want to buy the breakout over prior days high. I am testing on a 1 Minute chart.
As of now, I enter the position on the next bar open. But I want to enter as soon as the prior day high is hit. Here is my entry condition:
// Condition set 1 Long Entry
if (ToTime(Time[0])>=91500 && ToTime(Time[0])<=220000 && High[0] >= PriorDayOHLC().PriorHigh[1]&& hasEnteredLong1 == false)
{
hasEnteredLong1 = true;
EnterLongLimit(DefaultQuantity,PriorDayOHLC().Prio rHigh[1], "Long V1H1");
}
Is there something like a buystop function?
Thanks in advance
PokerPaul
Comment