Everything was working fine on my screeners yesterday but today some are displaying “this variable is not used in the code error” variable being color. I don’t have color written anywhere in the code? Is this a glitch? I dont understand as its not even a variable in the code?
You should post the code to help us check it.
indicator1, ignored, ignored, ignored, ignored, ignored, ignored = CALL "MyIndicator(1)"
indicator2 = macd [12,26,9](close)
c1 = (indicator1 < indicator2)or (indicator1 > indicator2)
indicator3 = rsi[14](close)
c2 = (indicator1 < indicator3) or (indicator1 > indicator3)
SCREENER[c1 AND c2] ((close/DClose(1)-1)*100 AS "%Chg yest.")
Without the indicator I cannot replicate the error, I can only suggest you to use:
= CALL MyIndicator[1]
with brackets instead of parentheses.
That did not work but myindicator1 refers to vwap and this was the code used – https://www.prorealcode.com/prorealtime-indicators/vwap-intraday/
It has been working fine for weeks but the screeners i have which no longer work all seem to involve vwap?
Try removing both [1] and (1), since that indicator uses no external variables.
This is working fine:
indicator1, ignored, ignored, ignored, ignored, ignored, ignored = CALL "PRC_VWAP intraday"
indicator2 = macd [12,26,9](close)
c1 = (indicator1 < indicator2)or (indicator1 > indicator2)
indicator3 = rsi[14](close)
c2 = (indicator1 < indicator3) or (indicator1 > indicator3)
SCREENER[c1 AND c2] ((close/DClose(1)-1)*100 AS "%Chg yest.")
I have the same problem.
CALL function stopped working with my indicators. Only with built-in indicators.
Was it with all your own indicators or just some? For me it seems its mostly indicators where I had VWAP, I check my screeners each day and yesterday was fine. Has it just started today for you also?
It started today with some indicators. Not all of them.
I’m not using VWAP.
I thing prorealtime programmers changed something in the code, and now there is a problem with CALL function.
It started today with some indicators. Not all of them.
I’m not using VWAP.
I thing prorealtime programmers changed something in the code, and now there is a problem with CALL function.
Yeah some of my call functions work and others don’t seem to work anymore and i’m getting syntax errors. Is there other reports of these issues?
It will be great if support team will explain when the meaning of the error “This variable is not used in the code error” and how to solve it.
Sorry for that. In order to replicate the issue and do further investigation, it is necessary to drop here some examples.
In the same time, send a technical report post with the tool of the platform (Help menu) and put a link of this topic in the message.