TRSI Indicator Issue
  #1 (permalink)  
Old 07-17-2008, 05:03 AM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
FXViper is on a distinguished road
Default TRSI Indicator Issue

Hey guys,

The TRSI indicator below is a important part of my system. However it simply quit working. I don't know if indicators expire or not. Could someone please be so kind to make the indicator start working once again or to use the formula below to create a new indicator. I have the code intact below. I can't tell you how much I would appreciate it.
|
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Robert Hill "
#property link "Forex Trading Software: Forex Trading Platform MetaTrader 4"
//---- indicator settings
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Gray
#property indicator_color2 Blue
#property indicator_color3 Red
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 1

extern int RSI_Period = 14;
//---- buffers
double RSI[];
double EmaOfRSI[];
double EmaOfEmaOfRSI[];
double EmaOfEmaOfEmaOfRSI[];
double TRSI[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{

//---- drawing settings
IndicatorBuffers(5);
SetIndexStyle(0,DRAW_LINE);
SetIndexStyle(1,DRAW_LINE);
SetIndexStyle(2,DRAW_LINE);
SetIndexDrawBegin(0,RSI_Period);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)+2 );
//---- 3 indicator buffers mapping
if(!SetIndexBuffer(0,RSI) &&
!SetIndexBuffer(1,EmaOfEmaOfEmaOfRSI) &&
!SetIndexBuffer(2,TRSI)
!SetIndexBuffer(3,EmaOfRSI)
!SetIndexBuffer(4,EmaOfEmaOfRSI))
Print("cannot set indicator buffers!");
//---- name for DataWindow and indicator subwindow label
SetIndexLabel(0,"RSI");
SetIndexLabel(1,"TripleEmaOfRSI");
SetIndexLabel(2,"TRSI");
IndicatorShortName("TRSI("+RSI_Period+")");
//---- initialization done
return(0);
}
int start()
{
int i, limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars - RSI_Period;


// 1) RSI 14 period of close. Plot this as the gray line
for(i = limit; i >= 0; i--)
RSI[i] = iRSI(NULL,0,RSI_Period,PRICE_CLOSE,i);

// 2) 3-period exponential moving average of #1 above.
for(i = limit; i >=0; i--)
EmaOfRSI[i] = iMAOnArray(RSI,Bars,3,0,MODE_EMA,i);

// 3) 3-period exponential moving average of #2 above.
for(i = limit; i >=0; i--)
EmaOfEmaOfRSI[i] = iMAOnArray(EmaOfRSI,Bars,3,0,MODE_EMA,i);

// 4) 3-period exponential moving average of #3 above.
for(i = limit; i >=0; i--)
EmaOfEmaOfEmaOfRSI[i] = iMAOnArray(EmaOfEmaOfRSI,Bars,3,0,MODE_EMA,i);

//========== COLOR CODING ===========================================

// 5) 5-period simple moving average of #4 above
// displaced 3 bars to the right.
for(i = limit; i >=0; i--)
{
TRSI[i] = iMAOnArray(EmaOfEmaOfEmaOfRSI,Bars,5,3,MODE_SMA,i) ;
}

return(0);
}
//+------------------------------------------------------------------+

Last edited by FXViper : 07-17-2008 at 07:55 PM.
Reply With Quote
  #2 (permalink)  
Old 07-17-2008, 07:58 PM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
FXViper is on a distinguished road
Default

Would greatly appreciate a response and or suggestion regarding my issue and or if someone has a TRSI indicator to share that would be great too.

Make it a great day..
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 03:19 AM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
FXViper is on a distinguished road
Default

This indicator has worked for me for several months so what's happening now is it's not updating while on the chart. Any assistance would be so appreciative to my original posting...
Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 04:37 AM
Forex Warrior
 
Join Date: Feb 2007
Posts: 261
Thanks: 9
Thanked 18 Times in 15 Posts
FerruFx is on a distinguished road
Default

Quote:
Originally Posted by FXViper View Post
This indicator has worked for me for several months so what's happening now is it's not updating while on the chart. Any assistance would be so appreciative to my original posting...
There's no time limitation in this indicator. If it worked before, it should work now.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! More info here
Coding services: Experts Advisors, indicators, alerts, etc ...

NEW: TripleXXX Expert Advisor
developed by Spiritfriends and coded by FerruFx ... more info
Reply With Quote
  #5 (permalink)  
Old 07-18-2008, 05:09 AM
Freshman
 
Join Date: Aug 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
FXViper is on a distinguished road
Default

Got it working .... Thanks for your input FerruFx.
Reply With Quote
  #6 (permalink)  
Old 07-18-2008, 09:44 AM
Forex Warrior
 
Join Date: Feb 2007
Posts: 261
Thanks: 9
Thanked 18 Times in 15 Posts
FerruFx is on a distinguished road
Default

You're welcome.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! More info here
Coding services: Experts Advisors, indicators, alerts, etc ...

NEW: TripleXXX Expert Advisor
developed by Spiritfriends and coded by FerruFx ... more info
Reply With Quote
hello..
  #7 (permalink)  
Old 07-20-2008, 12:24 PM
Freshman
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gadek01 is on a distinguished road
Default hello..

hi..all
im newbie in this forum.i hope all bro can help me

thanks
Reply With Quote
  #8 (permalink)  
Old 07-21-2008, 12:10 PM
Forex Warrior
 
Join Date: Feb 2007
Posts: 261
Thanks: 9
Thanked 18 Times in 15 Posts
FerruFx is on a distinguished road
Default

Quote:
Originally Posted by gadek01 View Post
hi..all
im newbie in this forum.i hope all bro can help me

thanks
Welcome gadek01!

Feel free to ask and of course use the search feature.

FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! More info here
Coding services: Experts Advisors, indicators, alerts, etc ...

NEW: TripleXXX Expert Advisor
developed by Spiritfriends and coded by FerruFx ... more info
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My EA is giving me 90% wins but I have an issue g_r_a_robinson Trading Systems 1 11-04-2008 08:16 AM
Entry Issue with Donchian Channel albrightsteve MetaTrader and ZeroCode 5 05-31-2008 02:14 AM
timeframe calculating issue Libros MetaTrader and ZeroCode 1 08-03-2007 08:25 AM
Historical data issue Damir1105 General Trading Talk 1 10-26-2006 01:33 AM


All times are GMT. The time now is 09:03 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast