Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
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
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Timeframes #450950
04/25/15 13:50
04/25/15 13:50
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
A couple of questions on using different timeframe in the same functions, Lets set in the run function:
Barperiod = 1 //one minute

now, lets create a single function that will set:

Timeframe= 60;
... Block A

Timeframe = 1;
... Block B

how many time will be executed in 1 hour the code in Block A & B?
It will be the same writing the same function as

Timeframe = 1;
... Block B

Timeframe= 60;
... Block A

It is recommended to code in this way or is better to have a single timeframe in a single function i.e. splitting the blcok A and Block B in 2 distint functions?

Thank You

Last edited by MatPed; 04/25/15 13:54.
Re: Timeframes [Re: MatPed] #451006
04/27/15 01:55
04/27/15 01:55
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Your run function will execute every bar. In this case, every minute. My understanding is that Block A will only execute every 60th bar, while Block B will run every bar. I don't think you need to split different time frames into different functions, but I don't see why you couldn't. If you really wanted to, you could do something like:

function run()
{
BarPeriod = 1;
TimeFrame = 60;
myfunction1();
TimeFrame = 1;
myfunction2();
}

Re: Timeframes [Re: boatman] #451021
04/27/15 09:23
04/27/15 09:23
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
function boh()
{
TimeFrame = 60;
myfunction1();
TimeFrame = 1;
myfunction2();
}

function run()
{
BarPeriod = 1;
boh();
}

Ok thank you. you say that myfunction1 will be executed once a hour, myfunction2 every minute. I will give it a try, it seems too nice to be true laugh

I have tried to access to your Sico system, but is private. I was curious... Ciao

Re: Timeframes [Re: MatPed] #451053
04/27/15 23:06
04/27/15 23:06
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Hmmm...don't remember setting it to private. I just logged in and it is definitely set to public. The system had an absolutely stellar few months, but has been in drawdown since the end of January. I am still running the algorithm, but it is very different to its original form and I continue to try new things with it.

Re: Timeframes [Re: boatman] #451060
04/28/15 08:53
04/28/15 08:53
Joined: Jul 2013
Posts: 75
R
royal Offline
Junior Member
royal  Offline
Junior Member
R

Joined: Jul 2013
Posts: 75
The portfolio is private but the system is public. Try this link instead:

Sico System


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