I programmed a strategy with Pine but upon running it and looking at the list of executed trades in the Strategy Tester, the results are puzzling to me.
The first trade was a long position of 5 contracts bought at 103.067$ and hit its target of 103.427. So shouldn't the profit be 1.8$? (103.427 * 5) - (103.067 * 5). The amount I bought at minus the amount it was sold at? But the Strategy Tester lists a profit of 0.02$.
The second trade is I calculate the profit to be 1.73$. (104.024 * 5) - (103.678 * 5). But again the profit listed is completely different, at 0.02$.
I am not sure what I'm missing here, in how TradingView is calculating the profit?
Here is a screenshot of these trades in the strategy tester.