Why does my short, which closes below the entry price based on the TakeProfit parameter, show as a loss?
I was writing an actual strategy based on 1 minute bars and wins were showing up as losses, so I made this dummy strategy for troubleshooting purposes.
I confirmed it is definitely closing the trade based on the TakeProfit parameter but not sure why it is a loss when I enter with enterShort() .
Another sanity check was switching the entry to enterLong(), in which case it accurately shows a loss 40 ticks below my entry.
Last edited by TalonTrades; 07/16/2118:43.
Re: Strategy shows a loss when it is not
[Re: TalonTrades]
#483720 07/16/2119:3107/16/2119:31
The one I was testing was @ES#, which is the E-Mini S&P Futures contract. I copied the settings from the IB example. The PipCost was set to .025 and should have been 12.5. Makes sense.