Reputation: 6311
How does TradingView's Strategy Tester really calculate the profit?
I read an article in their Help center. It states that they calculate it by (close rate - open rate)
.
In my case, for the first order, it would've been 3.6307 - 3.5487 = 0.082
. $0.082 is definitely not $6.28.
The Profit % however matches, even tho I didn't include the fees. profit % = (close rate - open_rate) / open_rate * 100 = (3.6307 - 3.5487) / 3.5487 * 100 = 2.3107053287119226759094879815144
(matches)
How did they receive $6.28 profit?
Upvotes: 1
Views: 1443
Reputation: 430
First, lets calculate your Gross Profit:
Profit is :(3.6307-3.5487) * 84 = 6.888
//Sell Price - Buy price times the contracts you traded
//Commission is 0.1% of the value traded; that means the commission you pay is
(3.6307 + 3.5487) * 84* 0.1% = 0.6031........
//I combined calculation for buy side and sell side here
Net profit = 6.888 - 0.6031 = 6.2849 (appx)
Upvotes: 2