error 55 when trying to run included Filter.c script

Posted By: jagodziad

error 55 when trying to run included Filter.c script - 02/03/19 13:09

Hi,

Filter compiling...........
Error 055: No bars generated
Chart...
Error 047: No bars to plot!

I dont know why it happens, the script is unmodified version included with new installation of zorro.
Any ideas?
Posted By: AndrewAMD

Re: error 55 when trying to run included Filter.c script - 02/03/19 13:45

The errors are explained in the manual.
Posted By: jrath

Re: error 55 when trying to run included Filter.c script - 02/03/19 14:00

If you fill in an asset in the script.

Like :

asset("USD/CAD"); // dummy asset

Then works.
Posted By: jagodziad

Re: error 55 when trying to run included Filter.c script - 02/03/19 17:03

I know, but why it doesnt work with the dummy asset?
You create artificial time series in the script, you dont use any real asset.
Posted By: jagodziad

Re: error 55 when trying to run included Filter.c script - 02/03/19 17:09

I know what the error means, I checked the manual.
I also checked the script and still dont understand why this particular error occurs.
Posted By: AndrewAMD

Re: error 55 when trying to run included Filter.c script - 02/03/19 20:05

Look at error 055 in the manual again. It says your price history is missing.

You need historical data for that respective asset. Some of it is available in the download section. You can otherwise download the data directly from your broker using the Download.c script.

Do also make sure your asset list is correctly configured to your broker. This is also explained in the manual.
Posted By: jcl

Re: error 55 when trying to run included Filter.c script - 02/04/19 08:27

Although the filter script uses an artificial price curve, it's otherwise just a normal script and will throw the usual error when you selected an asset with missing history - just as any other script.
© 2024 lite-C Forums