if time = 0904 then buy this bar on close;
setstoploss(1 * bigpointvalue);
setexitonclose
When the above simple signal is applied to both MC and TS, the performance reports are different.
It seems that MC counts slippage twice.
Please check this out.
Performance Report shows different results from TS2ki
- Andrew Kirillov
- Posts: 1589
- Joined: 28 Jul 2005
- Has thanked: 2 times
- Been thanked: 31 times
- Contact:
What's wrong with SPR?
[signal]MC behaves differently. TS doesn't use commission /slippage in stop loss/profit target and trailing stop.
We do.
If Time = 905 Then
Buy 1 contract this bar on close;
SetStopLoss(1 * BigPointValue); // BigPointValue is 500,000
[Symbol Info]
BigPointValue : 500,000
Price Scale: 1/100
Min Move: 5
[result 1]
Init Cap: 10,000,000
Slippage: 25,000
Entry price : 213.35
Exit price: 212.25 => Why 212.25, not 213.35?
Profit: -600,000 => We have one entry and one exit. Why 4 slippages, not 2?
[result 2]
Init Cap: 10,000,000
Slippage: 2,500
Entry price : 213.35
Exit price: 212.35 => Here, we have exactly one BP unlike the above result 1
Profit: -505,000 => We have one entry and one exit. And we have 2 slippages here. This is correct unlike the above result 1
[result 3]
Init Cap: 10,000,000
Slippage: 10,000
Entry price : 213.35
Exit price: 212.30 => Here, I don't understand how this value is obtained
Profit: -545,000 => No idea how this value is calculated either
[Questions]
Regarding [result 1],
1. Shouln't the exit price be 212.35 which is 1 BP is less than the entry price?
2. Since we have 2 trades, the total slippage will be 2*25,000=50,000.
Therefore, the result profit(actually loss) value should be 1 BP plus 2 slippages. => -500,000 - 50,000 = -550,000.
Please explain what is wrong with my calculation.
Also explain how all these values for result 1-3 are calculated.
What is the complete rules for calculating the profit/loss?
Setting zero in commission/slippage settings hides this wrong profit calculation problem. Therefore, it is meaningless to do that.So simply set zero in commission /slippage settings and it will work the same.
The critical point here is that MC SPR doubles all the slippages and commissions, and that is wrong.
Why 4 slippages, not 2 for result 1?
One slippage on entering and one slippage on exiting should make two slippages.
But the result 1 shows 4 slippages. Why?
Please explain how profit/loss is calculated in very detail so that all these confusion and misunderstanding is eliminated.
But the result 1 shows 4 slippages. Why?
Please explain how profit/loss is calculated in very detail so that all these confusion and misunderstanding is eliminated.
SPR shows the same bug with SetProfitTarget too.
Andrew,
Last night, Marina confirmed the bug with the wrong slippage calculation in SetStopLoss.
And I also checked with SetProfitTarget and found the same bug.
All the signals starting with "Set" may share the same bug.
Please check all the built-in signals for wrong slippage calculation.
Last night, Marina confirmed the bug with the wrong slippage calculation in SetStopLoss.
And I also checked with SetProfitTarget and found the same bug.
All the signals starting with "Set" may share the same bug.
Please check all the built-in signals for wrong slippage calculation.