Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, howardR, 1 invisible), 777 guests, and 6 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
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