Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Help with HFT script using Binance Futures Plugin v1.0.2.9 #484800
12/10/21 18:06
12/10/21 18:06
Joined: Jul 2021
Posts: 52
D
degenerate_762 Offline OP
Junior Member
degenerate_762  Offline OP
Junior Member
D

Joined: Jul 2021
Posts: 52
Hi,
I'm trying to Trade a 1 second BarPeriod on the Binance Futures Exchange. However, I keep getting this error. Could you please assist?

Code
function run() 
{
	set(LOGFILE);
	BarPeriod = 1./60;
	asset("BTCUSDT");
	vars Prices = series(price());
}

Attached Files Screenshot (26).png
Re: Help with HFT script using Binance Futures Plugin v1.0.2.9 [Re: degenerate_762] #484802
12/10/21 18:56
12/10/21 18:56
Joined: Jul 2021
Posts: 52
D
degenerate_762 Offline OP
Junior Member
degenerate_762  Offline OP
Junior Member
D

Joined: Jul 2021
Posts: 52
Code
Warning / Error 047: Not enough bars 
Historical price data was invalid or insufficient for covering the test period or the LookBack period. In the latter case the script won't run. Possible reasons:

The selected asset did not exist. Check your asset list. 
Historical price data required for an asset was missing or had insufficient size or resolution, like EOD data for 1-hour bars. Get more or better data. 
The market was closed or the broker server delivered insufficient history (especially with MT4). Download price data from other sources and use PRELOAD. 
A too-short or otherwise wrong test period was set up in the script (see asset). Check dates and periods in the script. 
Errors in a historical data file, such as large gaps or overlapping periods due to broken downloads. Delete it and download it again, 
A too high MinutesPerDay value for one of the used assets. 
A wrong BarMode setting for an asset that is traded at weekends, such as cryptocurrencies. 
A a user-defined bar type that is much larger than the given BarPeriod. Decrease BarPeriod or increase MinutesPerDay for allocating more bars. 
Make sure that used assets are selected in the first run, and that historical data - when needed - is sufficient for the backtest plus lookback period and is of the same type for all assets. Don't use a mix of .t1, .t2, and .t6 data, or a part of the data split into years and another part not. You can download price data from online sources with the Download script. Frequently used data is also available on the Zorro Download page. If price data for a certain year is not available, create a .t6 file of 0 bytes size with the name of the asset and year (f.i. SPX500_2017.t6). Zorro will then skip that period in the simulation and not display the error message.


The manual is my friend!

Attached Files FFHj72cX0AA8jw2.jpg

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1