Custom Blocks

Dear Support Team

currently you can build custom blocks (type condition) which is amazing, but there is no way to shift it's result.
for example:
I would like to build a strategy that uses custom block A and custom block B
if custom block A is true 2 bars ago
and custom block B is true 1 bar ago
then buy next bar at market

Attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Normal

History

AC
#1

A Casey

08.06.2020 02:05

Task created

KL
#2

kainc301

08.06.2020 04:47
You should be able to do this in a template as well
AC
#3

A Casey

08.06.2020 08:21

Attachment normal block.jpg added

Attachment custom block.jpg added

normal block.jpg
(40.67 KiB)
custom block.jpg
(33.96 KiB)
I know you can specifically build my above request in a custom block, but what am asking is to have the condition shift 1,2,5 or 14 bars ago possible like in all other conditions in SQX.

please check pictures attached for more clarification

MF
#4

Mark Fric

10.03.2021 13:25

Status changed from New to Fixed

this should be already possible, there is a parameter type of shift in custom blocks

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please