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
2 registered members (Imhotep, opm), 785 guests, and 4 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
Page 2 of 2 1 2
Re: get rid of empty bars when market is closed (between days) [Re: jcl] #465938
05/18/17 08:51
05/18/17 08:51
Joined: Jul 2016
Posts: 27
K
konorti Offline OP
Newbie
konorti  Offline OP
Newbie
K

Joined: Jul 2016
Posts: 27
Thanks! It looks different than my code, hopefully helps, i will report back on result.

Re: get rid of empty bars when market is closed (between days) [Re: konorti] #466030
05/22/17 07:38
05/22/17 07:38
Joined: Jul 2016
Posts: 27
K
konorti Offline OP
Newbie
konorti  Offline OP
Newbie
K

Joined: Jul 2016
Posts: 27
I made a test program just having codes given by you and adding BarPeriod 15, but the bars still come back. Is there anything missing in my code?
I will try on Real FXCM server tonight, maybe it is different.

Code used:
Quote:

function run()
{

BarPeriod = 15;
static int SkippedBars = 0;

if(between(hour(),21,6)) {
TimeFrame = 0;
SkippedBars--;
}

else if(TimeFrame == 0) {
TimeFrame = SkippedBars;
SkippedBars = 0;
}

else {
TimeFrame = 1;
}}



Last edited by konorti; 05/22/17 09:00.
Re: get rid of empty bars when market is closed (between days) [Re: konorti] #466055
05/23/17 07:45
05/23/17 07:45
Joined: Jul 2016
Posts: 27
K
konorti Offline OP
Newbie
konorti  Offline OP
Newbie
K

Joined: Jul 2016
Posts: 27
It is the same on Live server (with version 1.56). Do you have any other method for removing these bars? Thanks!


Re: get rid of empty bars when market is closed (between days) [Re: konorti] #466108
05/25/17 08:23
05/25/17 08:23
Joined: Jul 2016
Posts: 27
K
konorti Offline OP
Newbie
konorti  Offline OP
Newbie
K

Joined: Jul 2016
Posts: 27
Comparison of indicator before and after empty bars ( this didnt happen when was trying to trade it on MT4 bridge):


Last edited by konorti; 05/25/17 08:24.
Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1