both Profit and Stoploss, then Profit as filled and whole trade is reported as profitable trade.
This simulates naive optimistic scenario, which I would like to avoid
and prefer filling stoploss in this ambiguous case.
How can be achieved that (using Unmanaged mode)?
My current idea is to write my custom FillType, where I will check if next bar goes across both Profit and Stoploss, so I will block filling Profit in this special case to make Stoploss be filled instead...
Comment