This variable is not used in the code error
Forums › ProRealTime English forum › ProScreener support › This variable is not used in the code error
- This topic has 12 replies, 4 voices, and was last updated 3 years ago by Nicolas.
-
-
03/23/2021 at 4:17 PM #165064
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?
03/23/2021 at 4:41 PM #165067You should post the code to help us check it.
03/23/2021 at 5:21 PM #165070screener123456789indicator1, 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.")screener103/23/2021 at 5:33 PM #165071Without the indicator I cannot replicate the error, I can only suggest you to use:
1= CALL MyIndicator[1]with brackets instead of parentheses.
03/23/2021 at 5:48 PM #165075That 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?
03/23/2021 at 5:52 PM #165076Try removing both [1] and (1), since that indicator uses no external variables.
03/23/2021 at 6:32 PM #165081This is working fine:
123456indicator1, 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.")03/23/2021 at 7:21 PM #16508903/23/2021 at 7:30 PM #16509003/23/2021 at 7:39 PM #16509303/23/2021 at 8:06 PM #165094It 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?
03/23/2021 at 9:10 PM #16509703/24/2021 at 10:05 AM #165136Sorry 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.
-
AuthorPosts
Find exclusive trading pro-tools on