-Long entries
-Short entries
- Long exit
- Short exit
I would like to implement that if a short entry is rejected ( due to unavailablility for short sale) that the order will be automatically cancelled and that the strategy will look for new opportunities..
Currently, the order stays in the market waiting to be executed, i will have to cancel manually...
Does anybody know how i will be able to code this ?
My short entry condition is currently:
if (ToTime(Time[0]) >= ToTime(12, 00, 0)
&& Close[0] < Low[1]
&& VOLMA(14)[0] > 40)
{
EnterShort(DefaultQuantity, "short");
}
Thank you !
Comment