0 registered members (),
744
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: New Zorro version 2.30
[Re: jcl]
#480957
07/27/20 13:30
07/27/20 13:30
|
Joined: Jul 2017
Posts: 784
Zheka
User
|
User
Joined: Jul 2017
Posts: 784
|
If it is too difficult to read 2 messages above, here is the piece of code again: if ( (NumWinTotal+NumLossTotal)==30 )
{
var NumWins = results(1+24,30); // Number of winning and won trades
var NumLosses = results(1+4+24,30); // Number of losing and lost trades
var pipWins = results(2+24,30)/PIP; // Total win in pips
var pipLosses = results(2+4+24,30)/PIP; // /PIPTotal loss in pips
print(TO_LOG,"\n NumWins=%i, NumLosses=%i, resNumWins=%.0f, resNumLosses=%.0f, pipWins=%.2f, pipLosses=%.2f", NumWinTotal,NumLossTotal,NumWins,NumLosses,pipWins,pipLosses);
} which gives: [2826: Thu 19-06-20 01:00] 2.56 0 15/15 (1.12575) NumWins=15, NumLosses=15, resNumWins=6, resNumLosses=24, pipWins=52.45, pipLosses=213003.51
|
|
|
Re: New Zorro version 2.30
[Re: jcl]
#480959
07/27/20 14:18
07/27/20 14:18
|
Joined: Jul 2017
Posts: 784
Zheka
User
|
User
Joined: Jul 2017
Posts: 784
|
I want to sum up BOTH open and closed trades.
BUT in this specific moment, there are no open trades (have a look at my original message: the log showed that the open trade has just been closed at 19-06-20 00:00.) So, using +16 or +24 (or not using any) should return a number equal to NumWinTotal over 30 trades.
Addition: just tried this example with +8 (only open trades ) -> It returns exactly the same numbers for # of trades and pips as with +24, - at the moment when there are NO OPEN TRADES (and it should return zeros).
Pls confirm you can replicate this.
Last edited by Zheka; 07/27/20 17:33.
|
|
|
|