RSI of Moving Average - page 2

To add comments, please log in or register
project1972
563
project1972  

Excellent work !!!!

Thanks for sharing, I am a strong fan of RSI indicator and MAs, This one rocks!! I will try to use it and I will let you know how it work for live trading.

wolfe
1037
wolfe  

Kalenzo,

Thank you for sharing your indicator. Very nice!

fxbs
3203
fxbs  

hi, Kalenzo!

please, a few words about MA plot and idea behind it

Files:
arsioma2.gif 28 kb
Kale
1411
Kale  
fxbs:
hi, Kalenzo! please, a few words about MA plot and idea behind it

Hi!

Well your second chart (rsi ploted on rsioma) looks nice. Maybe I will prepare some modification in the next week. Well the idea behind this indicator is that average RSI takes price to calculate it values (rsi values) eg. Close price. I changed the close price for exponential moving average. So when you put 14 period or rsioma it takes not close value but value of 14 period exponential moving average. And the rest - the color - green / red depends from main trend levels and the other pink and blue from buy /sell triggers. I hope this description put some light on the logic of rsioma

Linuxser
5921
Linuxser  
Kalenzo:
Hello Traders! I want to introduce my new Friday invention! It is RSI of Moving Average. I thought that this can be a very nice trend identifier. But test it for your self. I hope it will be helpfull.

I like.

When you have a reversal and strong trend the indicator stays with the trend, unless common rsi that starts yo-yo phase or points to reversal.

Remembering a Tom Hartle Article about this problem of continuous OB/OS when strong trends, I just set the levels with a different value to act in a different way, as choppy market or pullback zone.

Can I suggest to add one input that helps to change the levels color without rewrite the code. SetLevelStyle overrides any change.

(SetLevelStyle(int style , int width, int color)

Files:
good.gif 37 kb
jacoba
424
jacoba  

thanks

Thanks a lot Kalenzo, it help me to see the EXIT

xyz1453
225
xyz1453  
fxbs
3203
fxbs  

arsioma bells&wissles

interesting idea, Kalenzo, do it beckwards...hell not standard

i see soon we gonna add all bells and wissels,- hook it to zlgma, lsma, jma, satl, etc; xpma has switching options

4 now, some mods 2 make it more user-friendly, tell me what you think:

------------------------------------------------

Not an ind. , just pieces of code!

#property indicator_separate_window

#property indicator_minimum -10

#property indicator_maximum 103

#property indicator_buffers 5

#property indicator_color1 Blue //RSIBuffer

#property indicator_color2 Red //bdn

#property indicator_color3 Green //bup

#property indicator_color4 Magenta //sdn

#property indicator_color5 DodgerBlue //sup

#property indicator_width1 2

//#property indicator_width2 1

#property indicator_width4 2

#property indicator_width5 2

#property indicator_levelcolor Goldenrod

#property indicator_level1 80

#property indicator_level2 50

#property indicator_level3 20

//---- input parameters

extern int RSIOMA = 14;

extern color RSIBufferColor = Blue;

extern color BdnColor= Red;

extern color BupColor = Green;

extern color SdnColor = Magenta;

extern color SupColor = DodgerBlue;

extern string note1 = "RSIOMA Levels";

extern int BuyTrigger = 80;

extern int SellTrigger = 20;

extern int MainTrendLong = 50;

extern int MainTrendShort = 50;

//extern color LevelColor = Yellow;

//---- buffers

double RSIBuffer[];

double PosBuffer[];

double NegBuffer[];

double bdn[],bup[];

double sdn[],sup[];

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

string short_name;

//---- 2 additional buffers are used for counting.

IndicatorBuffers(7);

SetIndexBuffer(0,RSIBuffer);

SetIndexBuffer(1,bdn);

SetIndexBuffer(2,bup);

SetIndexBuffer(3,sdn);

SetIndexBuffer(4,sup);

SetIndexStyle(0,DRAW_LINE, RSIBufferColor);

SetIndexStyle(1,DRAW_HISTOGRAM,BdnColor);

SetIndexStyle(2,DRAW_HISTOGRAM,BupColor);

SetIndexStyle(3,DRAW_HISTOGRAM,SdnColor);

SetIndexStyle(4,DRAW_HISTOGRAM,SupColor);

SetIndexLabel(0,"RSIOMA");

SetIndexLabel(1,"Bdn");

SetIndexLabel(2,"Bup");

SetIndexLabel(3,"Sdn");

SetIndexLabel(4,"Sup");

SetIndexBuffer(5,PosBuffer);

SetIndexBuffer(6,NegBuffer);

short_name="RSIOMA("+RSIOMA+")";

IndicatorShortName(short_name);

SetIndexDrawBegin(0,RSIOMA);

//----

return(0);

}

//+------------------------------------------------------------------+

//| Relative Strength Index |

//+------------------------------------------------------------------+

int start()

{

SetLevelValue(0, BuyTrigger);

SetLevelValue(1, SellTrigger);

SetLevelValue(2, MainTrendLong);

SetLevelValue(3, MainTrendShort);

// SetLevelStyle(STYLE_DOT, 1,LevelColor );

// SetLevelStyle(STYLE_DOT, 1,Yellow );

int i,counted_bars=IndicatorCounted();

double rel,negative,positive;

--//-- Not an ind. , just pieces of code!

Files:
arsioma3.gif 28 kb
Kale
1411
Kale  
NY168
82
NY168  

Post Indicator?

fxbs:
interesting idea, Kalenzo, do it beckwards...hell not standard

i see soon we gonna add all bells and wissels,- hook it to zlgma, lsma, jma, satl, etc; igorad's nonlag ma has switching options

4 now, some mods 2 make it more user-friendly, tell me what you think:

------------------------------------------------

#property indicator_separate_window

#property indicator_minimum -10

#property indicator_maximum 103

#property indicator_buffers 5

#property indicator_color1 Blue //RSIBuffer

#property indicator_color2 Red //bdn

#property indicator_color3 Green //bup

#property indicator_color4 Magenta //sdn

#property indicator_color5 DodgerBlue //sup

#property indicator_width1 2

//#property indicator_width2 1

#property indicator_width4 2

#property indicator_width5 2

#property indicator_levelcolor Goldenrod

#property indicator_level1 80

#property indicator_level2 50

#property indicator_level3 20

//---- input parameters

extern int RSIOMA = 14;

extern color RSIBufferColor = Blue;

extern color BdnColor= Red;

extern color BupColor = Green;

extern color SdnColor = Magenta;

extern color SupColor = DodgerBlue;

extern string note1 = "RSIOMA Levels";

extern int BuyTrigger = 80;

extern int SellTrigger = 20;

extern int MainTrendLong = 50;

extern int MainTrendShort = 50;

//extern color LevelColor = Yellow;

//---- buffers

double RSIBuffer[];

double PosBuffer[];

double NegBuffer[];

double bdn[],bup[];

double sdn[],sup[];

//+------------------------------------------------------------------+

//| Custom indicator initialization function |

//+------------------------------------------------------------------+

int init()

{

string short_name;

//---- 2 additional buffers are used for counting.

IndicatorBuffers(7);

SetIndexBuffer(0,RSIBuffer);

SetIndexBuffer(1,bdn);

SetIndexBuffer(2,bup);

SetIndexBuffer(3,sdn);

SetIndexBuffer(4,sup);

SetIndexStyle(0,DRAW_LINE, RSIBufferColor);

SetIndexStyle(1,DRAW_HISTOGRAM,BdnColor);

SetIndexStyle(2,DRAW_HISTOGRAM,BupColor);

SetIndexStyle(3,DRAW_HISTOGRAM,SdnColor);

SetIndexStyle(4,DRAW_HISTOGRAM,SupColor);

SetIndexLabel(0,"RSIOMA");

SetIndexLabel(1,"Bdn");

SetIndexLabel(2,"Bup");

SetIndexLabel(3,"Sdn");

SetIndexLabel(4,"Sup");

SetIndexBuffer(5,PosBuffer);

SetIndexBuffer(6,NegBuffer);

short_name="RSIOMA("+RSIOMA+")";

IndicatorShortName(short_name);

SetIndexDrawBegin(0,RSIOMA);

//----

return(0);

}

//+------------------------------------------------------------------+

//| Relative Strength Index |

//+------------------------------------------------------------------+

int start()

{

SetLevelValue(0, BuyTrigger);

SetLevelValue(1, SellTrigger);

SetLevelValue(2, MainTrendLong);

SetLevelValue(3, MainTrendShort);

// SetLevelStyle(STYLE_DOT, 1,LevelColor );

// SetLevelStyle(STYLE_DOT, 1,Yellow );

int i,counted_bars=IndicatorCounted();

double rel,negative,positive;

--//--

fxbs,

Can you post the indicator here? I tried to copy your code and it doesn't seem work, which I had a few errors when I complied them.

Thanks!

NY168

To add comments, please log in or register