I need now further help
This is the part of the script I need help with:
// Condition set 3 Uptrend with Bracket
if (GetCurrentAsk() < (Open[0] - S1*TickSize)
&& Open[1] < Close[1]
&& Position.Quantity == 0
&& Bracket == true)
{
EnterLongStop(Q, Open[0], "TSTZ Long");
EnterShortStop(Q, Open[0] - S2 * TickSize, "TSTZ Reversal Short");
// TSTZ Reversal Short not working
// TSTZ Reversal Shortneeds to last till the next candle is already opened and ticking
}
My Questions:
1) I would like the EnterShortStop to be an OCO order linked to the EnterLongStop. How can I change the instruction.
2) Since I am using renko charts I know the EnterShortStop is going to triger on the next candle down. Therefore I would like this side of the order to be good till cancel. Can you suggest a change?
3) The EnterShortStop order is not working. Please note that I am trtying to place 2 orders at the same time, and the strategy includes a Stop loss routine. Is my syntax incorrect?
4) Sometimes "if (GetCurrentAsk() < (Open[0] - S1*TickSize)" doesn't really place the order. Will a Crossbellow() statement work better? I tried writing one, but got issues combining series and int variables. Can you suggest an expression?
Thanks in advance,
Horacio
Comment