Posted By: TalonTrades
Strategy shows a loss when it is not - 07/16/21 18:26
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.
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.