Dear sirs,
enclosed you will find afl-code for vortex-indicator (S&C, Tradertips Jan.2010)
I am looking forward to get a histogrammbar instead of lines. Is it also possible to get blue bar if upmove and redbar in downmove an lines above the histogrammbarhigh ?
Thanks for your help !
regards
masiegp
--------------------------------------------------------------
_SECTION_BEGIN("The Vortex Indicator_012010");
// Vortex Indicator
// S&C Traders Tips Jan 2010
period = Param("Period", 14, 2 );
VMP = Sum( abs( H - Ref( L, -1 ) ), period );
VMM = Sum( abs( L - Ref( H, -1 ) ), period );
STR = Sum( ATR( 1 ), period );
VIP = VMP / STR;
VIM = VMM / STR;
Plot( VIP, "VI"+period+"+",colorBlue);
Plot( VIM, "VI"+period+"-", colorRed );
_SECTION_END();
-------------------------------------------------------------
enclosed you will find afl-code for vortex-indicator (S&C, Tradertips Jan.2010)
I am looking forward to get a histogrammbar instead of lines. Is it also possible to get blue bar if upmove and redbar in downmove an lines above the histogrammbarhigh ?
Thanks for your help !
regards
masiegp
--------------------------------------------------------------
_SECTION_BEGIN("The Vortex Indicator_012010");
// Vortex Indicator
// S&C Traders Tips Jan 2010
period = Param("Period", 14, 2 );
VMP = Sum( abs( H - Ref( L, -1 ) ), period );
VMM = Sum( abs( L - Ref( H, -1 ) ), period );
STR = Sum( ATR( 1 ), period );
VIP = VMP / STR;
VIM = VMM / STR;
Plot( VIP, "VI"+period+"+",colorBlue);
Plot( VIM, "VI"+period+"-", colorRed );
_SECTION_END();
-------------------------------------------------------------