Custom indicator import missing inputs
7 replies
Threshold
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
tomas262
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/
Threshold
2 years ago #275334
That hurt to read, Tomas.
Ok
Threshold
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.
Threshold
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’.
Threshold
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.
Threshold
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
tomas262
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
Viewing 7 replies - 1 through 7 (of 7 total)