Script parameter_test_2 now need twice as long as we train 2 different components...
But as I write this I wonder, why was parameter_test_3 so slow, I have to look at it again... I do not really know, what the problem was.
Quote:
parameter_test_1 - runtime about 3 minutes from first _1.par to .fac file parameter_test_2 - runtime about 7 minutes from first _1.par to .fac file parameter_test_3 - i stopped it, it's getting slower and slower, why? parameter_test_4 - runtime about 5 minutes from first _1.par to .fac file
Internal Timer from FIRSTINITRUN to EXITRUN
parameter_test_1
Quote:
EXITRUN @ bar 10035 time = 501.353 ms EXITRUN @ bar 10035 time = 493.324 ms EXITRUN @ bar 10035 time = 487.299 ms EXITRUN @ bar 10035 time = 487.029 ms
parameter_test_2
Quote:
EXITRUN @ bar 10035 time = 493.028 ms EXITRUN @ bar 10035 time = 495.644 ms EXITRUN @ bar 10035 time = 503.310 ms EXITRUN @ bar 10035 time = 493.658 ms
parameter_test_3
Quote:
EXITRUN @ bar 10035 time = 12252.315 ms EXITRUN @ bar 10035 time = 10282.861 ms EXITRUN @ bar 10035 time = 10487.490 ms EXITRUN @ bar 10035 time = 9688.894 ms
parameter_test_4
Quote:
EXITRUN @ bar 10035 time = 350.156 ms EXITRUN @ bar 10035 time = 351.938 ms EXITRUN @ bar 10035 time = 346.190 ms EXITRUN @ bar 10035 time = 345.802 ms
I don't know why test_4 is faster but it's good .
Last edited by laz; 01/23/1921:48.
Re: Using ":L" & ":S" causes 2 possible bug(s) or is it bad coding?
[Re: laz]
#476060 01/23/1921:2701/23/1921:27
I'm assuming that test #3 is time consuming because it might be I/O intensive.
Can you please explain more, the runtimes look very suspicious.
Training for test_5 is running, i think it will take the same time as test_2 & test_4.
Quote:
parameter_test_1 - runtime about 3 minutes from first _1.par to .fac file parameter_test_2 - runtime about 7 minutes from first _1.par to .fac file parameter_test_3 - i stopped it, it's getting slower and slower, why? parameter_test_4 - runtime about 5 minutes from first _1.par to .fac file parameter_test_5 - runtime about 6 minutes from first _1.par to .fac file
parameter_test_5
Quote:
EXITRUN @ bar 22787 time = 386.639 ms EXITRUN @ bar 22787 time = 386.281 ms EXITRUN @ bar 22787 time = 390.088 ms EXITRUN @ bar 22787 time = 396.646 ms
Last edited by laz; 01/23/1922:08.
Re: Using ":L" & ":S" causes 2 possible bug(s) or is it bad coding?
[Re: laz]
#476063 01/23/1922:1401/23/1922:14
EDIT: I think I found a possible explanation (maybe)?
Quote:
Hedge 0 = no hedging; automatically close opposite positions with the same asset when a new position is opened (default for NFA accounts). 1 = hedging across algos; automatically close opposite positions with the same algo when a new position is opened (default for unspecified accounts). 2 = full hedging; long and short positions can be open at the same time.
From test_1 to test_3 I'm in Hedge = 1 (default for me).
But in test_3 I'm limiting enterLong() + enterShort() to :L or :S
The ":L" and ":S" suffixes to algo names are from an early Zorro version. I have no notice of discontinuation, so theoretically they should still work, but otherwise please use "TRNDL" and "TRNDS" at the moment. We'll look into that.
Re: Using ":L" & ":S" causes 2 possible bug(s) or is it bad coding?
[Re: jcl]
#476090 01/26/1904:3801/26/1904:38
OFFTOPIC Hi jcl, nice to meet you ... Thanks for everything here, I do not know who is behind the project but you (guys) did a really good job. Zorro's framework is great & takes a lot off, I already had the r-bridge in my own dll (freepascal) and the WFO coded in R but i was still missing so much, zorro makes it all superfluous . OFFTOPIC
Quote:
The ":L" and ":S" suffixes to algo names are from an early Zorro version.
Please don't remove it It would be nice if you can fix only 1 thing:
1. wrong parameter charts with :L & :S
Why ?
:L & :S make it possible to combine/use both adviseLong/adviseShort Calls for LONG and both for SHORT as we have different components now . So we can use 2 perceptrons or neural nets for 1 direction.
But TRNDL & TRNDS are ok for the moment
Problem 2, the open trades can be solved by understanding that by using :L & :S you now use 2 different algo's and that your script has to close open trades.
Because enterLong() and enterShort() are not doing it for you with :L & :S.