ASC Trend PrpScreener help
Forums › ProRealTime English forum › ProScreener support › ASC Trend PrpScreener help
- This topic has 4 replies, 2 voices, and was last updated 3 years ago by robertogozzi.
-
-
06/19/2021 at 12:04 PM #172029
Greetings all
Firstly… Thanks to the community for joint education/support/assistance. This is a collection of snippets from all over but mainly working with Nicholas’ ASC Trend indicator.
I’ve been looking into creating a screener for the ASC Trend (Arrows) as I seem to miss a few when working on the lower timeframes. I’ve an issue on line 62 character 71 (according to the error message) and may have been staring at it too long to work out why I can’t get it working.
The Trend bar is to determine a bias. This is used within my strategy (with discretion/analysis). So the market is either long or short. Then wait for an arrow to show up and you’re away.
I’ve created the screener to deliver the activations in minutes, to show the timeframe they’re appearing within and they can be modified depending on the TFs you trade. (included all for this)
Any assistance appreciated
Code I'm working with123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475//TREND BAREMA20 = ExponentialAverage[20](close)EMA50 = ExponentialAverage[50](close)EMA100 = ExponentialAverage[100](close)// ================LONG = EMA20 > EMA50 AND EMA20 > EMA100SHORT = EMA20 < EMA50 AND EMA20 < EMA100// ================//ARROWSRISK = 1 //RISK setting of the ASCtrend indicator// ================buysig, sellsig = CALL "ASCtrend indi comp strategy"[RISK]//graph buysig coloured(0,200,0)//graph sellsig coloured(200,0,0)Timeframe (Daily)c1 = LONG AND buysigc2 = SHORT AND sellsigTimeframe (4 Hour)c3 = LONG AND buysigc4 = SHORT AND sellsigTimeframe (1 Hour)c5 = LONG AND buysigc6 = SHORT AND sellsigTimeframe (15 Minute)c7 = LONG AND buysigc8 = SHORT AND sellsigTimeframe (5 Minute)c9 = LONG AND buysigc10 = SHORT AND sellsigTimeframe (1 Minute)c11 = LONG AND buysigc12 = SHORT AND sellsig// CONCLUSIONx=0if c11 thenx=1elsif c12 thenx=-1elsif c9 thenx=5elsif c10 thenx=-5elsif c7 thenx=15elsif c8 thenx=-15elsif c5 thenx=60elsif c6 thenx=-60elsif c3 thenx=240elsif c4 thenx=-240elsif c1 thenx=24elsif c2 thenx=-24endifSCREENER[x] (x as "TIMEFRAME")06/19/2021 at 12:54 PM #172030Line 62 looks correct. It may be due to something else.
Your screener uses 7 TF’s (6 + default).
I don’t know about limits for ProScreener, but ProOrder only allows 6 TF’s at most (5 + default).
Actually if the default TF is the same as one of those coded, it shouldn’t count.
Try removing one.
1 user thanked author for this post.
06/23/2021 at 2:25 PM #172220Thanks Roberto
I had a play with doing that, however, I think the problem may live in the “Called Code” that I’m effectively using blind in my code modification? I tried removing a timeframe, that didn’t work, and even when shortened (so that the line didn’t exist), it still showed that error in the same place. Making me think it refers to the Strategy code, when trying to use it within the screener.
I’ll keep working on it anyway… Never give up; never surrender!!!
06/23/2021 at 2:58 PM #172222Try embedding the indicator in your code to avoid CALLing it.
That could work it out.
06/23/2021 at 4:24 PM #172234DO NOT double post, as clearly highlighted in yellow below. I deleted it.
Now that I have seen the link to the indicator (https://www.prorealcode.com/prorealtime-indicators/asctrend/) I can tell you it can’t be used with screeners as it uses ARRAYS which are currently not supported by ProScreener.
As far as I know a new version of ProScreener is in the pipe and should be available in some months, maybe before the end of the year.
-
AuthorPosts
Find exclusive trading pro-tools on