Zorro Beta 1.47

Posted By: Sphin

Zorro Beta 1.47 - 07/24/16 20:56

Does one have a chance to get 1.47.2? On the download page there is only 1.47.0 available and the currency strength functions seem to fit my new strategy thoughts. laugh
Posted By: jcl

Re: Zorro Beta 1.47 - 07/25/16 08:06

I think we'll get a new beta by the end of the week.
Posted By: Sphin

Re: Zorro Beta 1.47 - 08/06/16 18:36

1.47.2:

Get often "Error 030: Check lookback, settings, asset order" when changing BarPeriod. After restart of Zorro it proceeds with normal behaviour.
Posted By: jcl

Re: Zorro Beta 1.47 - 08/08/16 08:12

Can you check if this also happens with the current beta, 1.47.3? If so, can you post the script for reproducing the problem?
Posted By: Sphin

Re: Zorro Beta 1.47 - 08/08/16 18:52

It also happens with 1.47.3.
Code:
function run() {

 StartDate = 2009;
 EndDate = 2015;
 BarPeriod = 1440;

 asset("EUR/USD");
 var EURUSD = (priceClose() - price()) / priceClose();

 asset("GBP/USD");

 if(EURUSD > 0)
	reverseShort(1);

 if(EURUSD < 0)
	reverseLong(1);

}



Changing BarPeriod causes a 030 error or it crashes completely. After restart Zorro executes the strategy.
Posted By: Sphin

Re: Zorro Beta 1.47 - 08/08/16 19:03

.bar vs. .t6

I think "loadHistory" is deprecated and "assetHistory" is the new command? Using loadHistory with mode = 1 downloads .t6 now, but all my history files are on .bar and I wanted to use them with the most recent prices - at least until the archives on the download page are available in .t6. Is there a chance to save new downloaded prices in .bar?
Posted By: jcl

Re: Zorro Beta 1.47 - 08/09/16 12:22

Yes, set History = ".bar" and then the prices are saved in .bar format. - I'll check the Barperiod issue.
Posted By: Varanus

Re: Zorro Beta 1.47 - 08/11/16 12:25

I'm sorry for my reply into this Zorro Beta Test forum but I cannot create a new topic under the Bug Hunt forum probably because of insufficient rights and maybe the issue is valid for Zorro Beta 1.47 as well.

Subject: Probably a bug in processing of the last bar in the run() function.

It seems that the last bar is not processed properly by the run() function. Please try to run the following code:

Code:
function run()
{
    StartDate = 20160101;
    BarPeriod = 1440;
    string AssentName = "A";

    set(LOGFILE);
    
    if(is(INITRUN))
        assetHistory(AssentName,FROM_YAHOO);

    asset(AssentName);

    vars Open = series(priceOpen());
    vars High = series(priceHigh());
    vars Low = series(priceLow());
    vars Close = series(priceClose());
    
    print(TO_LOG," => Open: %f, High: %f, Low: %f, Close: %f",Open[0],High[0],Low[0],Close[0]);
}



The version 1.44.1 produces the log file where there are no values for the last trading day.
The version 1.46 produces the log file where there are values for the last trading day however they are the same as values from the previous day (except the date).

I think, the problem is somewhere in calling of the run() function because once I write one more fictional bar with the date last_trading_date+1 into the <asset_name>.bar file as a workaround, the version 1.44 shows the “hidden” bar from the last trading day correctly.
Posted By: jcl

Re: Zorro Beta 1.47 - 08/12/16 12:19

Yes, someone had reported some time ago that the last bar of the test period was not included. According to my list, it is included from version 1.47 on, although I have not tested it yet. Just try it and post again when it still does not work.
Posted By: Varanus

Re: Zorro Beta 1.47 - 08/15/16 09:17

I have tested Beta 1.47 and the issue is fixed there. Thanks!
Posted By: Sphin

Re: Zorro Beta 1.47 - 08/24/16 17:17

I've seen the number of the beta increased, is there already a solution for the BarPeriod-crash-issue?
Posted By: jcl

Re: Zorro Beta 1.47 - 08/24/16 17:50

If you mean error 30: I think it was fixed some weeks ago.
Posted By: Sphin

Re: Zorro Beta 1.47 - 08/25/16 22:34

Yes, it's fixed - thanks.
© 2024 lite-C Forums