Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 843 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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