Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EW_bytes, Martin_HH, 1 invisible), 13,180 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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