READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Custom Block Shift

1 replies

Mitch

Subscriber, bbp_participant, customer, community, sq-ultimate, 26 replies.

Visit profile

2 years ago #286416

How can I add a shift variable to an entire Custom Block Condition.  For example, if I’m comparing the Close with the Prior Close.

Close[Chart, 0] > Close[Chart, 1]

I want to be able to add a Shift variable so that I can test the condition for the prior 5 bars where Shift has a minimum of 1 and a max of 5 and a step of 1 like this:

(Close[Chart, 0] > Close[Chart, 1])[Shift]

Is there a way to do this?

0

Mitch

Subscriber, bbp_participant, customer, community, sq-ultimate, 26 replies.

Visit profile

2 years ago #286417

It would also be good if you could define a Shift + 1 like this:

Close[Chart, Shift] > Close[Chart, Shift + 1]

0

Viewing 1 replies (of 1 total)