Gamestudio Links
Zorro Links
Newest Posts
Optimize issues
by jbhunter. 03/28/20 05:36
Z12 and Oanda: !trade not open
by jj02520024. 03/28/20 00:38
Market closed on friday at 17 UTC?
by AndrewAMD. 03/27/20 23:30
I AM SO LOST
by sdh309795gaas. 03/27/20 14:44
M1 tick data format
by jbhunter. 03/27/20 12:47
Random Functions?
by txesmi. 03/27/20 12:28
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (3run, txesmi, kvm, 7th_zorro), 603 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
heitorfr, Art__, bmmtrader, buttcorgi, MassimoPicco
18405 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
When using multiple assets, how are missing candles presented? #468627
10/11/17 19:59
10/11/17 19:59
Joined: Aug 2017
Posts: 40
J
johnnyp Offline OP
Newbie
johnnyp  Offline OP
Newbie
J

Joined: Aug 2017
Posts: 40
I am considering trying to use currency strength analysis to boost my trading strategy, however I am going to have to re-implement it in MQL4 to be run in MetaTrader in a context that doesn't allow DLLs. So...

Here is my question...

sometimes an asset has no candle for a given minute because there were no ticks during that minute. How does Zorro handle this?

* Is that asset skipped in loop(Assets)?
* Does Zorro present the previous candle again?
* Does Zorro generate a synthetic candle with OHLC all equal to the previous close price?

Re: When using multiple assets, how are missing candles presented? [Re: johnnyp] #468641
10/12/17 07:35
10/12/17 07:35
Joined: Jul 2000
Posts: 27,148
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,148
Frankfurt
If it was the first asset, bars are extended so that they have at least one tick. Subsequent assets get synthetic candles that are in some way interpolated.

Re: When using multiple assets, how are missing candles presented? [Re: jcl] #468647
10/12/17 08:21
10/12/17 08:21
Joined: Aug 2017
Posts: 40
J
johnnyp Offline OP
Newbie
johnnyp  Offline OP
Newbie
J

Joined: Aug 2017
Posts: 40
Interpolated how?
I hope the interpolation doesn't rely on future candles!

Re: When using multiple assets, how are missing candles presented? [Re: johnnyp] #468650
10/12/17 09:09
10/12/17 09:09
Joined: Jul 2000
Posts: 27,148
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,148
Frankfurt
Nope. Past candles only. I believe the 2 previous candles.

Re: When using multiple assets, how are missing candles presented? [Re: jcl] #468677
10/12/17 18:02
10/12/17 18:02
Joined: Aug 2017
Posts: 40
J
johnnyp Offline OP
Newbie
johnnyp  Offline OP
Newbie
J

Joined: Aug 2017
Posts: 40
Can you be more specific?
I need to be able to recode this in MQL4.

Is there a good reason to treat the subsequent assets differently to the first one?

I find the idea of replacing missing bars by interpolation to be strange. If there is simply a hole in the data, then fine interpolation may reduce the jump that occurs when the next data point arrives. But if the prices are simply not moving, then interpolation will lead you astray. Does interpolation happen when trading live too?

Is it possible to tell Zorro how I want it to deal with missing bars? If not could this be added? For example...

MissingBars = MB_SKIP; // could mean to skip assets with a missing bar. I can see how this option could be tricky to implement.
MissingBars = MB_INTERPOLATE; // could mean to create synthetic bars by interpolation.
MissingBars = MB_ADDTICK; // could mean to create synthetic bars by adding a single tick equal to the previous close price.


Powered by UBB.threads™ PHP Forum Software 7.7.1