I am generally using non-time based bars. Would the best course of action be to reference ToTime, Timer, Stopwatch, orTriggerCustomEvent(), or something else?
Is there a way to store the time when I enter my trade, Then calculate the elapsed time. Once elapsed time is reached, exit trade if my other conditions are not met.
Entry Condtions.... (Insert)
Start Counting Elapsed Time (Variable or time or whatever is needed)
If time since stored entry time is greater than 240 minutes....
Then,
If (InTrade)
&& (Close[0]<Breakeven)
&&Close[0}>EntryPrice);
{
ExitLong();
Reset(Variable or time or whatever is needed)
}
Comment