if (Close[0] > CurrentDayOHL().CurrentOpen[0])
{
EnterLong(DefaultQuantity, "Long");
}
// Condition set 2
if (Close[0] < CurrentDayOHL().CurrentOpen[0])
{
ExitLong();
}
// Condition 3
if (High[0] >= CurrentDayOHL().CurrentOpen[0] + (CurrentDayOHL().CurrentOpen[0] * 0.05))
{
ExitLong();
}
conditions 1 and 2 work fine, condition 3 does not do anything. how do i calculate the target exit in this manner and have it execute? (closes the position if the current price is a 5% increase over the session open price)
Thanks!
Comment