Gamestudio Links
Zorro Links
Newest Posts
V2.20 no FXCM Listed
by peterhw. 02/18/20 17:18
Increasing Number Animation
by Ayumi. 02/18/20 15:31
Is Text Box data check possible?
by Emre. 02/18/20 07:20
Behaviour of user-defined bars
by Petra. 02/15/20 13:34
Optimization parameters results
by Petra. 02/15/20 13:22
Bollinger Band - Multi Timeframe
by migo. 02/15/20 06:50
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
14 registered members (Dalla, 3run, AndrewAMD, peterhw, painkiller, Ayumi, alibaba, LabRatNo9, gamers, 2 invisible), 797 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
DebraSteed, Ricard, Apollo1, ziphnor, thomasprv
18377 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
candle pattern on weekly bars #477995
08/23/19 10:10
08/23/19 10:10
Joined: May 2019
Posts: 10
sarmasboy Offline OP
sarmasboy  Offline OP

Joined: May 2019
Posts: 10
Hello all. I was wondering if it's possible to have candle patterns recognized using the in-built functions on weekly candles? I am using BarPeriod and TimeFrame, but it still seems to draw candles as if they were based on a daily candle, rather than weekly. Here's my code:
function run()
  StartDate = 2010;
  EndDate = 2019;
  LookBack = 10;
  BarPeriod = 1440;
  TimeFrame = frameSync(7);
  if(CDLEngulfing()!=0) {
	  printf("\nEngulfing at %s", strdate("%Y-%m-%d %H:%M", wdate(0)));


Re: candle pattern on weekly bars [Re: sarmasboy] #477997
08/23/19 13:20
08/23/19 13:20
Joined: Feb 2017
Posts: 856
AndrewAMD Online
AndrewAMD  Online

Joined: Feb 2017
Posts: 856
Bars and frames are two different things. Use frame() to check for a new frame. Your series() call will only add a new element when there is a new frame.

So yes, you want a weekly frame.

Powered by UBB.threads™ PHP Forum Software 7.7.1