Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2006, 10:34 PM
Junior Member
 
Join Date: Mar 2006
Posts: 23
PipRippy is on a distinguished road
R-Squared Indicator Request

I have been searching for the R-Squared indicator. I first read about it in Chande/KRoll The New Technical Trader. It is also mentioned repeatedly in Prings Momentum Explained II. Pring uses it as a filter coupled with his indicators. It is basically the measurement of the strength of a trend - not the direction. Example would be to use it with oscillators- when you have a stoichastic cross and high r-squared readings - high probality change in trend: If low r-squared readings and stoichastic cross - ignore cross or trade.
I requested the indicator at VTTRADER and they said it could not be programmed because they do not have Corr function? I am not a programmer so I have no idea what that means. I do have something from Metastock and Amibroker.

Metastock formula:

Pwr(Corr(Com(1),C,14,0),2)

Here is paste of Amibroker info:
Description:
R-2 attempts to measure a percentage of a stocks movement that can be attributed to Linear Regression. When used in combination with Slope you have a tool that can aid in trend detection.

To determine if the trend is statistically significant for a given x-period linear regression line, Plot the r-squared indicator and refer to the following table. This table shows the values of r-squared required for A 95% confidence level at various time periods. If the r-squared value is less than the critical values shown, you should assume that prices show no statistically significant trend.

Number of Periods r-squared Critical Value(95%confidence)
5 0.77
10 0.40
14 0.27
20 0.20
25 0.16
30 0.13
50 0.08
60 0.06
120 0.03

The indicator includes commentary and an interpretation of its use.


Formula:
/*To determine if the trend is statistically significant for a given x-period
linear regression line, Plot the r-squared indicator and refer to the following
table. This table shows the values of r-squared required for A 95% confidence
level at various time periods. If the r-squared value is less than the
critical values shown, you should assume that prices show no statistically
significant trend.

Number ofPeriods r-squaredCritical Value(95%confidence)
5 0.77
10 0.40
14 0.27
20 0.20
25 0.16
30 0.13
50 0.08
60 0.06
120 0.03
*/

R2PDS=20; /*for automatic adjustments to the r2 critical value line use one of
the periods listed above*/

R2=Correlation(Cum( 1 ),C,r2pds)*Correlation(Cum( 1 ),C,r2pds);
slope=LinRegSlope(C,r2pds);

Crit=IIf(R2PDS==5,.77,IIf(R2PDS==10,.40,IIf(R2PDS= =14,.27,IIf(R2PDS==20,.20,IIf(R2PDS==25,.16,IIf(R2 PDS==30,.13,IIf(R2PDS==50,.08,IIf(R2PDS==60,.06,II f(R2PDS==120,.03,0)))))))));

Plot(r2,"R Squared",2,1);
Plot(slope,"Slope",IIf(slope<0,4,5),2|styleOwnScal e);
Plot(Crit,"",7,1);

Title=WriteIf(R2>Crit,"R2 Values indicate a Trend is in place","R2 Values
Indicate a Trendliess Market")+WriteIf(slope>0,"\n Slope is Positive","\n Slope
is Negative");

"\n \n Interpretation \n r-squared values show the percentage of movement that
can be explained by linear regression. For example, if the r-squared value over
20 days is at 70%, this means that 70% of the movement of the security is
explained by linear regression. The other 30% is unexplained Random noise.\n
While R2 values are interesting on their own they are easier to interpret when
used in conjunction with Slope. When R2 exceeds its critical Value this
indicates the market is Trending, when the indicator falls below its threshold
then a trend less condition may be in place. \n This table shows the values of
r-squared required for A 95% confidence level at various time periods. If the
r-squared value is less than the critical values shown, you should assume that
prices show no statistically significant trend. \n \n R-2 Pds Critical
Value(95%confidence)"+

"\n \n 5 0.77\n 10 0.40\n 14
0.27\n 20 0.20\n 25 0.16\n 30
0.13\n 50 0.08 \n 60 0.06 \n 120
0.03"

+"\n \n You may even consider opening a Short-term position opposite the
prevailing trend when you observe r-squared rounding off at extreme levels. For
example, if the slope is positive AND r-squared is above 0.80 then begins to
turn down, you may consider selling or opening A Short position. There are
numerous ways to use the linear regression outputs of r-squared and Slope in
trading systems. For more detailed coverage, refer to the book The New
Technical Trader by Tushar Chande and Stanley Kroll";

I hope this is enough info to program a indicator.

I am also interested in any other indicators that do the same thing. Any way to guage the strength of a indicator signal. A filter to stop some indicator signals with weak strength. Also a heads up that some indicator signal is really strong.

Thanks for any help or comments! - Mrippy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 08-22-2006, 02:52 PM
ValeoFX's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Johannesburg, South Africa
Posts: 1,370
ValeoFX is on a distinguished road
Coders paradise..........

I now understand why nobody took you up on your request! Also, some guys who come up with "their" new idea.

I suggest you have a look at this website as a matter of interest and select from here what you you would like to see on MT4. Best is to get someone with MetaStock to see some of these "beautes" in action.

I came across it while looking for Chande_Kroll_Stop.

If there is anyone of you wizzards out there willing to make this indicator from the data that is available, it would be much appreciated. Thanking you in anticipation.

http://www.xeatrade.com/all/

Best wishes.
__________________
"Risk comes from not knowing what you are doing" The Tao of Warren Buffett.

"Avoiding mistakes, makes people STUPID and having to be RIGHT, makes you OBSOLETE." Robert Kiyosaki.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 08-25-2006, 02:37 AM
deeforex's Avatar
Member
 
Join Date: Oct 2005
Posts: 91
deeforex is on a distinguished road
It would be very nice to see this programmed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 08-26-2006, 04:17 AM
Junior Member
 
Join Date: Nov 2005
Posts: 10
whatchee4 is on a distinguished road
Quote:
Originally Posted by deeforex
It would be very nice to see this programmed

yes, agreed, can anyone help on this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 08-26-2006, 10:09 AM
FX_Sniper's Avatar
Senior Member
 
Join Date: Jan 2006
Location: South Africa
Posts: 201
FX_Sniper is on a distinguished road
................
Attached Images
File Type: gif rslope.gif (16.0 KB, 1828 views)
__________________
"I do not need a compass to tell me which way the wind is shining."

Last edited by FX_Sniper; 09-03-2006 at 02:55 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 09-05-2006, 05:23 PM
Member
 
Join Date: Feb 2006
Location: Czech Republic
Posts: 95
ForexBoss is on a distinguished road
Can you share?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 11-04-2006, 10:00 AM
Junior Member
 
Join Date: Oct 2006
Posts: 1
fibofx is on a distinguished road
Found this in this forum, different thread. Hope it helps.
Attached Files
File Type: mq4 ChandelierStops_v1.mq4 (2.9 KB, 214 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 11-22-2006, 04:11 PM
Senior Member
 
Join Date: Dec 2005
Location: Null
Posts: 585
drgoodvibe is on a distinguished road
anyone have any luck with the R- Squared indicator?

I am also looking for Linear Regression Slope indicator.. I think both of these indicators used in combination would be extremely effective.
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com & Omega Trading Blog!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 11-22-2006, 05:39 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by drgoodvibe
anyone have any luck with the R- Squared indicator?

I am also looking for Linear Regression Slope indicator.. I think both of these indicators used in combination would be extremely effective.
Linear Regression Slope indicator's name is Moving Slope Rate of Change (or LinRegSlope). Author is fxtraderusa.

There is the other indicator: JMASlope. Author is Igorad/Weld.

I am not sure it is possible ot post the indicators ... may be copywrite or commercial?
Not sure.

May be those indicators are not the same that you want.
Attached Images
File Type: gif slope.gif (21.0 KB, 1518 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 11-23-2006, 12:53 AM
Senior Member
 
Join Date: Dec 2005
Location: Null
Posts: 585
drgoodvibe is on a distinguished road
Quote:
Originally Posted by newdigital
Linear Regression Slope indicator's name is Moving Slope Rate of Change (or LinRegSlope). Author is fxtraderusa.

There is the other indicator: JMASlope. Author is Igorad/Weld.

I am not sure it is possible ot post the indicators ... may be copywrite or commercial?
Not sure.

May be those indicators are not the same that you want.

Hi ND thanks, i'd love to try them out but too bad you cannot post them. VTTrader has a built in Linear Regression Indicator I would have compared against that to see if any of the ones you posted would look the same.

It's unfortunate that the indicators can't be released to the public.
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com & Omega Trading Blog!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
Damiani signal/noise, R-Squared forex, r-squared indicator


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple indicator request -25- Indicators - Metatrader 4 1 01-24-2007 10:12 AM
request for indicator increase General Discussion 1 11-24-2006 05:39 PM
request Big price indicator paijolopez Indicators - Metatrader 4 4 11-24-2006 11:21 AM


All times are GMT. The time now is 04:22 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.