I've a strategy that has two ways it can enter into a trade,
1. When a condition satisfies.
2. Reversal when an opposing condition satisfies.
In the case like in the image below, when we have a Reversal Entry and Stop Loss right below, it overfills and exits the strategy.
Here is the code I use for Entry
if (EnableSecondEntry) {
// Generate Secondary Signal Name.
secondarySignalName=Guid.NewGuid().ToString();
EnterLong(secondaryContractSize, secondarySignalName);
}
Is this a case that can happen?
Is the solution to move to Unmanaged approach?
Comment