Reply

definition of “is true for x bars”

6 replies

Nikolai Haug

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

8 months ago #283294

I’m sorry if this is a stupid question.
Does bars mean timeframe of the main chart or the timeframe of the indicator-related chart.
I’m using more than one timeframe of the same symbol so I’m a little confused.

For example: If my main chart is 1m and my indicator is related to the 1h chart what does “is true for 5 bars” mean?

Thanks for your help

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 months ago #283301

Hi,

the condition is always related to the chart the indicator is applied onto

If you use a multi-timeframe setup then it will check for last 5 bars / hours

0

Nikolai Haug

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

8 months ago #283312

I’m sorry I have to ask again.
So if my main chart is 1 Minute and my Subchart is 1 Hour it will check for the last bars/hours?

What can I do when I want to know, if any (not only the lowest) 1-minute close has been below the lower Bollinger Band within the last 60 minutes?

Than you so much for your help!

0

Nikolai Haug

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

8 months ago #283331

Also, if a rule is triggered on bar open and I’m using a multi-timeframe setup within this rule, what bar is the rule triggered?

For Example, my main chart is M1 and there are several rules including indicators relating to the M5, H1 and D1 timeframes of the same symbol.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 months ago #283334

Hi,

it depends on the Shift used. If you use the Shifit = 1 you always refer to bars closed (completed) while with the Shift set to 0 also developing bars come into play.

The check whether some condition happened in last X bars you can use the comparison as shown on the screenshot attached

 

Attachments:
You must be logged in to view attached files.

0

Nikolai Haug

Subscriber, bbp_participant, customer, community, 9 replies.

Visit profile

8 months ago #283350

Thanks Tomas.

So when shift is set to 1 it waits for the latest multi-timeframe candle to close to see if the condition is true or false. If the shift is set to 0 it triggers every smallest-timeframe candle and looks at the current state of all multi-timeframe candles. Is this right?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 months ago #283365

Yes, correct

0

Viewing 6 replies - 1 through 6 (of 6 total)