|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
The RSquared, S/C,MFI test is based on linearregression. RSquared is a linear regression function that measures how stronga data array of given length is trending. It's really based on correlation.A return of one correlates to a very strong trend in either direction thatrises or falls one point per day. A return of zero correlates to no trend. I'm using RSquared to tell me when there is no trend over the last 21 days, or that RSquared(C,21) is less than 0.15. Now that we have no trend, wewould expect one to start in the next 5 to 13 days. If one does start wewant to determine the direction and get in early. Therefore I use RSquaredas mytrigger, combining it with the ALERT function. With the ALERT givenby RSquaredbeing less then 0.15, then we will get a buy signal if all myother conditionsare met within a 13-day period that I also set with theALERT function. Forthe other conditions, I'm using S/C, MFI, and the 55-dayVariable Moving Average (vma) to determine trend start and direction. S/C is nothing more than the normalized 34 day LinRegSlope of the close. I normalize it by dividing it by the close so charts are more directly comparable. I also multiply by 10000 just to get numbers between 0 and a few hundred. Finally I apply Tema smoothing to get a smoother plot. Therefore my formula for Tema S/C becomes: Tema S/C I double-check the result by also making sure that both the MFI and the 55-day
vma are also rising. I use a Tema MFI formula which is just the tema smoothed
MFI - 50 so it can be plotted as a histogram. The formula is: Tema MFI MetaStock System Test 01 R2,S/C,MFI (VolRequired) Alert(RSquared(C,21) < 0.15,13) AND
Tema(MFI(55),55) - 50 < 0 AND
Alert(RSquared(C,21) < 0.15,13) AND Close Short : HHV(Mov(C,55,VAR),5) = HHV(Mov(C,55,VAR),13) AND
OPT1: Min=-34 Max=-8 Step=13
Although I have Tema S/C and Tema MFI defined as custom formulas so I can plot them as indicators on my charts, I don't call the custom formulas in the tests. Instead I use the actual formulas. The reason I do this, is that the test will run faster when the formulas are used direct instead of calling for the custom formulas. from Jim Greening http://www.geocities.com/ Code: Tema MFI MetaStock System Test 01 R2,S/C,MFI (VolRequired) Alert(RSquared(C,21) < 0.15,13) AND Tema(MFI(55),55) - 50 < 0 AND Alert(RSquared(C,21) < 0.15,13) AND Close Short : HHV(Mov(C,55,VAR),5) = HHV(Mov(C,55,VAR),13) AND OPT1: Min=-34 Max=-8 Step=13
Code to difficult? Find somebody to help you with coding here.
all systems for MetaStock all systems
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
||
|
||
|