Gamestudio Links
Zorro Links
Newest Posts
Trades during a running bar
by Martin_HH. 09/18/26 10:41
Capital slider is not saving in Z12
by frutza. 09/17/26 13:36
Avoiding pop-up training parameter results
by Martin_HH. 09/16/26 21:31
What are you working on?
by rayp. 09/16/26 20:20
Future of ZorroHFT
by TipmyPip. 09/16/26 09:28
Fun Arcade Car Physics (nfs style)
by rayp. 09/16/26 05:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (Martin_HH, 3run, AndersM, VoroneTZ), 2,088 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lokkalyansamiti, rahulbuilds, speedx, liop, Bauer097
19235 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Trades during a running bar #489646
1 hour ago
1 hour ago
Joined: May 2023
Posts: 67
Hamburg, Germany
M
Martin_HH Online OP
Junior Member
Martin_HH  Online OP
Junior Member
M

Joined: May 2023
Posts: 67
Hamburg, Germany
I am injecting commands to a running Zorro script from a Python gui.
That means, I can scale in or scale out triggered from outside. At the moment, I have the issue that Zorro rejects this.
I found in the manual:
"Trades are automatically skipped during weekends or outside market hours, during the LookBack period, in the inactive period of SKIP or DataSplit, or when the current bar is not the end of a TimeFrame.
For trading inside a time frame, set TimeFrame = 1, enter the trade, then set TimeFrame back to its previous value."

"Commands to enter or exit trades in the run function are only executed when the TimeFrame has ended at the current bar. But trade entry, stop, or profit targets are observed at any bar period.
The run function itself is executed at any bar period, but the frame function can be used for restricting code execution to the end of the current time frame."

In my running example the barperiod=1440.

I have not set TimeFrame explicitely and I got the rejection. A TimeFrame=1,which I have also tested (which should also set to 1440 min) did not help?

Is there a way to increase/descrease the amount of the order during a bar period (that means at any time)?

Last edited by Martin_HH; 49 minutes ago.
Re: Trades during a running bar [Re: Martin_HH] #489647
1 hour ago
1 hour ago
Joined: May 2023
Posts: 67
Hamburg, Germany
M
Martin_HH Online OP
Junior Member
Martin_HH  Online OP
Junior Member
M

Joined: May 2023
Posts: 67
Hamburg, Germany
Do I have to choose BarPeriod=1 and increase by TimeFrame (e.g. TimeFrame=1440) for all my strategies? And switch to TimeFrame=1 as recommended in the manual temporarely?

Do I am searching for a ghost? During a barperiod it is always possible to enter and close trades (what is working also with my external trigger), only the scale in/out it is not working.Any other issue?

Last edited by Martin_HH; 42 minutes ago.

Moderated by  Petra 

Gamestudio download | 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