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. |
![]() |
|
|||
|
Quote:
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 |
|
|||
|
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 |
|
|||
|
__________________
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 |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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
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









Linear Mode

