This only takes long trades:
if (my condition)
{
EnterLongStopMarket(Highs[1][1]);
EnterShortStopMarket(Lows[1][1]);
}
Why is that?
How do I write so that it can take a short trade and/or stop and reverse if the other high or low gets hit?
I've tried:
if (my condition)
{
EnterLongStopMarket(Highs[1][1]);
}
if (my condition)
{
EnterShortStopMarket(Lows[1][1]);
}
But same problem. No short trades or reversals are taken. Any help appreciated.
thanks,
David​

Comment