Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Converting a daily script with some intraday calculations #473438
07/06/18 04:24
07/06/18 04:24
Joined: May 2018
Posts: 134
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 134
I have a script that operates on daily bars and runs once per day at 15:00 ET. I want to keep all the indicator series and analysis on a daily basis, but execute the run() function multiple times per day to enter or exit trades based on intraday dynamics.

I thought I could do this, but it didn't work:

Code:
void run()
{
   BarPeriod=60;
   AssetMarket = ET;
   TimeFrame=AssetFrame;
   LookBack = 250;



I found some pointers on these pages:
http://zorro-trader.com/manual/en/assetzone.htm
http://zorro-trader.com/manual/en/barperiod.htm

The test results didn't look right, and I get error messages about not having enough bars. I only have EOD .t6 datafile to work with. Will having M1 .t6 data solve this problem?

This is the original setup:
Code:
void run() 
{

	BarPeriod = 1440;		
	BarZone = ET;
	BarOffset = 15*60; // trade at 15:00 ET
	LookBack = 250;


Last edited by SBGuy; 07/06/18 04:33.
Re: Converting a daily script with some intraday calculations [Re: SBGuy] #473440
07/06/18 14:09
07/06/18 14:09
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Yes, you'll need at least H1 data for H1 bars. Otherwise you'll get error messages.

Re: Converting a daily script with some intraday calculations [Re: jcl] #473444
07/07/18 04:41
07/07/18 04:41
Joined: May 2018
Posts: 134
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 134
thanks jcl. what's a good, reasonably priced, source for H1 data?

Re: Converting a daily script with some intraday calculations [Re: SBGuy] #474051
09/14/18 00:01
09/14/18 00:01
Joined: May 2018
Posts: 134
S
SBGuy Offline OP
Member
SBGuy  Offline OP
Member
S

Joined: May 2018
Posts: 134
jcl, follow up thought on this.

Can I backtest using a BarPeriod=1440, get my optimzed varaibles, then if(is(TRADEMODE)) use a BarPeriod of 60, and a TimeFrame=AssetFrame?

Thanks!

Re: Converting a daily script with some intraday calculations [Re: SBGuy] #474064
09/17/18 15:48
09/17/18 15:48
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Theoretically yes, but make sure that the live time frame opens and closes at the same time as a bar in the backtest.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1