Reply

Custom indicator import missing inputs

7 replies

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275253

I’m trying to important an indicator with partial success, but the inputs for period and deviation are missing in SQ.

input double deviation = 2.0;                      //StDeviations
input int deviation_period = 14;                   //StDevPeriod

These are the 2 parameter inputs for the indicator. The only parameter options in SQ are ‘Shift’ and ‘Value’.

What needs to be changed?
Indicator attached

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

2 years ago #275308

Hello,

when you import custom indicator values you cannot modify periods and parameters. Check this for more information https://strategyquant.com/doc/strategyquant/external-indicators/

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275334

That hurt to read, Tomas.
Ok

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275335

I’m trying to compute StdDev from High-Low.
Maybe this custom block will be a sufficient comparison, but not exactly the same.

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275338

Forgot to attach images:
1st image is what I am trying to get.
2nd image is a custom block I made as a half ‘fix’.

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

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275340

Did a little research using tradingview pinescript and I dont think using custom blocks will be sufficient. Pic below has the different variations.

Notice that StdDev(High-Low, 20) always has positive values, because its just showing BarRange.

Just sharing for anyone interested.

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

0

Threshold

Customer, bbp_participant, community, 723 replies.

Visit profile

2 years ago #275341

So the best way to do this will be to convert the indicator to java.
Watching this: https://www.youtube.com/watch?v=veiqIh0BS10&t=26s

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

2 years ago #275350

Hi,

right, adding the Java snippet is the most effective way compared to the custom block. Once you manage to add a new indicator the next time it will be a lot easier

0

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