I'm trying to code a filling-type script which fills the stoplosses (entered with "SetStopLoss" and profttarget (SetProfitTarget) at the last accepted price without any slippage as soon the current price touches this last accepted price, no matter if this occurs with a gap or not.
I simply want the fill at the last accepted Stop-price every time. Of course this won't work in live-trading but for backtesting purposes I would like my strategy to behave like that.
1. Is this possible?
2. Can someone give me a little help on this issue, maybe with a code snippet?
thx
Comment