Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 405 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Only trade without test - need .t1 history #472847
05/26/18 09:13
05/26/18 09:13
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi all,

I see this message when I try to run my function.
Why I need the history if I want to trade without test.

the .t1 data is requested whether is must backtest otherwise waht is it for only trade?

Below the code I'm using

Code:
function run()
{
  set(LOGFILE);
  StartDate = NOW;
  BarPeriod = 0.001/60;
  LookBack = 0;
  Weekend = 0;
  asset("BTCUSD_simple");
  if(!NumOpenLong)
  enterLong();
}



EnterLong1ms
Login 0 MT4/5...
!SimpleFX Ltd. connected at UTC 05-26 09:06
Error 057: need .t1 history
Error 075 ((BTCUSD_simple::L)): Can't open 1@7624.50 at 09:06:51
V 1.748 on Sat 18-05-26 11:06:51 (Zorro S Subscription)

Trade: EnterLong1ms BTCUSD_simple 2018-05-26
Assets AssetsArb
Error 030 - Check lookback, settings, asset order
Logout.. ok

Re: Only trade without test - need .t1 history [Re: tradingest] #472849
05/26/18 11:18
05/26/18 11:18
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
your bar period looks wrong. Try

BarPeriod = 1./60;
History = ".t1";

hft works in test mode only and when the bar period is less than one minute you must anyway switch history to t1.

Re: Only trade without test - need .t1 history [Re: Spirit] #472850
05/26/18 12:57
05/26/18 12:57
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
The minimum bar period is one second (1./60) for normal scripts, and 1 ms (0.001/60) for HFT simulation

right!!!

thanks


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