I've been trying to figure out how to reverse a position directly out of a TMF, in order to have immediate execution at the Tick instead of having to wait for the next bar(s).
Here is my TMF:
int TMFLong() { var Thresh = Trail*3; bool Cond_LongStop = price(0)<=priceClose(1); if(TradeResult>Trail) TrailLock = 80;
if(Cond_LongStop and TradeResult>Thresh){ exitLong(); return enterShort(0); } return 0; }