Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PLOTLONG and weekend trading #415126
01/14/13 09:09
01/14/13 09:09
Joined: Nov 2012
Posts: 19
B
Boris Offline OP
Newbie
Boris  Offline OP
Newbie
B

Joined: Nov 2012
Posts: 19
Before I risk going live I wanted some clarification of on Zorro and how it acts over the weekend. I have weekend = 4 and PLOTLONG activated in my script. Now what I want to happen is that if I log off and back on I can automatically start trading by having Zorro use the previous bars as a look back period and start executing trades as soon as they happen.

In demo trading I have noted that Zorro skips the first few trades that it should take before resuming trading. Since I anticipate downtime and powert outages in trading I was wondering how I could have Zorro take the earlier closing data to fill its indicators so I can ensure 100% signal pickup, or as close as possible to it. Any Ideas, I thought PLOTLONG should do this but I may have misunderstood? In addition, I am using closing prices for my algorithms so that the historical data should yield the same signals as if I had it running the whole time.

Re: PLOTLONG and weekend trading [Re: Boris] #415135
01/14/13 11:22
01/14/13 11:22
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Every strategy needs a "Lookback period" for filling its indicators with price data. For instance, a 30 bar MA needs 30 prices. If you would trade during that period, you'll lose your money because the indicators have wrong values. That's why trade programs must skip trades during that period.

When life trading, Zorro fills the indicators with past prices downloaded from the broker's server. That's why Zorro can start trading right away without having to wait the lookback period. Dependent on how recent the data is, Zorro might still skip a trade in the very first bar for safety reasons.

This has nothing to do with PLOTLONG or with weekends. Trading does not take place and price data does not arrive during weekends.

Re: PLOTLONG and weekend trading [Re: jcl] #415210
01/15/13 02:23
01/15/13 02:23
Joined: Nov 2012
Posts: 19
B
Boris Offline OP
Newbie
Boris  Offline OP
Newbie
B

Joined: Nov 2012
Posts: 19
I absolutely understand this, and I know that there are no prices and trading on the weekends. I am trying to understand how Zorro is supposed to function with interruptions in service

As in on Sunday afternoon, will it start trading with a continuation of friday's prices or will it start a brand new look back period? You see if you are trading 4 hr bars and your waiting for a lookback every sunday you effectively waste a large fraction of the week waiting for your lookback period to complete. If you were unlucky to have been disconnected then the lookback starts over. I wanted to know if there was a way I can use the historical close prices of the last 40 bars so that it can resume trading instantaneously upon turning it on.

If Zorro needs to be on continuously to function then I will have to run it of virtual private server, otherwise I will spend most of my trading waiting for lookback periods to finish. That is why i was asking the question so I can decide on how to best proceed. Again, many thanks jcl, I appreciate your input, I am merely trying to understand how Zorro is supposed to function through breaks in service.


Last edited by Boris; 01/15/13 02:25.
Re: PLOTLONG and weekend trading [Re: Boris] #415222
01/15/13 09:23
01/15/13 09:23
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
It will continue with Friday's prices. The lookback period is a number of bars, not a time. For trading, the week has only 5 days, and there are no bars on weekends.

If the Internet connection is interrupted, Zorro will just continue after the connection is established again. You don't have to "wait a lookback period" or something like that.


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