intraday RSI trifecta
Author: SimhaD04
Creation Date: 5/29/2012 1:58 PM
profile picture

SimhaD04

#1
Hi - is there a version of the community strategy, RSI Trifecta, for intraday time intervals? Thanks

profile picture

Cone

#2
There is now. Note: this needs a lot of seed data, i.e., a period number of days * 3. In other words, if the Period is 7, it won't start trading until day 21 so that the Daily RSI has stabilized. For more info see WealthScript Programming Guide > Indicators > Stability of Indicators

Note! Requires Community.Components Extension

CODE:
Please log in to see this code.
profile picture

SimhaD04

#3
Thanks!
profile picture

SimhaD04

#4
The code compiles fine. But it does not run properly. Apparently something is wrong with the compression function. Specifically it says:
Runtime error: Cannot convert Daily Bars to 30 Daily Bars.

There are a couple more line, but I could not copy them. If important I'll either take a screenshot or retype them. Thanks.
profile picture

Eugene

#5
Right after...
CODE:
Please log in to see this code.
Insert this...
CODE:
Please log in to see this code.

Is it OK now? If the intraday-only code now does not do anything, then you were trying to run this code on daily bars.
profile picture

SimhaD04

#6
it does not compile now: there is a long list of errors starting with CS1002@(33,36):: expected.

As to running it on daily bars: what does it mean? isn't the code supposed to reset whatever is there? or should I specify the period on the currently displayed chart equal to the in this line of code:

_period = CreateParameter("Period", 15, 3, 21, 1);

That is 15 min? thanks.
profile picture

SimhaD04

#7
I removed the abort code (ie. set it back to original) and manually reset the chart to 15 min to correspond with _period. Now it seem to run fine.
profile picture

Cone

#8
1. Copy and paste the code again. It is "perfect".
2. Make sure you have install the Community.Components Extension.
3. You MUST run the script on Intraday Data, that was the whole point of the exercise, was it not? The interval of the intraday data (the base interval) can be any number of minutes provided that the interval that you select for "Interval 2" is divisible by the base interval.
profile picture

SimhaD04

#9
the original code runs fine now (I do have the community extension). When you say "divisible" I assume divisible w/o a remainder, e.g. base = 15m, Int2 = 30m. But the code has as defaults 7 and 30. So is it w/o remainder or simply int2 > base? thanks,
profile picture

Cone

#10
You're mixing apples and oranges. "7" is the period of the RSI and was chosen as the default based on the orignal script. This number has no bearing on the interval.

Check out this comment at the top of the code:
CODE:
Please log in to see this code.
The base interval is the chart's interval. Pick a 1, 2, 3, 5, 6, 10, or 15 minute interval chart to work with Interval2 = 30, for example.
profile picture

SimhaD04

#11
it's clear now, thanks
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).