Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
Hi
1st I would like to wish all the tsd folk a happy and prosperous New Year.
I have been playing with some code and trying a few things out, this indicator is not rocket science by any means however some of you may find it useful. I have implemented a variety of Oscillators into the one indicator and the user has the options to use either :
#1 The base Indicator such as RSI STOCH WPR etc
#2 The base Indicator with 1 or 2 MA applied to the base Indicator lines
#3 The 2 MA lines
#4 The “Show_Histo_Display” to change the MA lines to an OSCILLATOR HISTO Display
There are 7 basic Oscillator type Indicators built into this Indicator RSI CCI MFI STO DEM WPR RVI and the levels for each type of Oscillator are automatically applied to each indicator as it is loaded onto the chart.
The indicator settings are by no means optimized and you will have to play with the base Indicator and 2 MA settings to get what you require. Use and improve it as you see fit and feel free to modify the code in any way you feel is needed but please if you modify and post it change the end of the indicator name v1 to v2 or v3 etc to avoid any confusion.
The screenshot below gives a brief sample of some of the possible setups. The last screenshot showing 2 Indicators is the Line display and the Oscillator Histo display of the same Indicator.
06/01/2009 I have corrected a fault in the MA Array code, I have removed the MA price function as I had it incorrectly placed in the MA Shift position. Thanks to fxbs for spotting that. Sorry for any inconvenience caused.
__________________
My Disadvantage is that I am not a Trained Programmer - My Advantage is that I am not a Trained Programmer. http://cjatradingtools.com/
Last edited by cja; 01-05-2009 at 08:42 PM.
Reason: correcting code
I wrote an indicator a couple years ago that displayed If I remember right 12 differant indicators. How ever not just one at a time but the indicator rotated from one to another on a preset time bases. Very much like your chart in the first post. Using only two buffers and one line level. I even had it so an EA could call it and get the indicator value it wanted out of the list of indicators available. The trick was to have the indicator calculate all indicators and assign there value to a series array. at the time of display the series array was transfered to the buffer array for display. after the alloted time the buffer was filled with another series for display. The only thing you need to do is to be sure to empty the buffer before filling it with new data. if you dont the indicator will keep the same scale as the old data and the display will be distorted. I wrote a couple of functions to create the needed series arrays and to dump the buffers for reuse. If you like I could post them.
I wrote an indicator a couple years ago that displayed If I remember right 12 differant indicators. How ever not just one at a time but the indicator rotated from one to another on a preset time bases. Very much like your chart in the first post. Using only two buffers and one line level. I even had it so an EA could call it and get the indicator value it wanted out of the list of indicators available. The trick was to have the indicator calculate all indicators and assign there value to a series array. at the time of display the series array was transfered to the buffer array for display. after the alloted time the buffer was filled with another series for display. The only thing you need to do is to be sure to empty the buffer before filling it with new data. if you dont the indicator will keep the same scale as the old data and the display will be distorted. I wrote a couple of functions to create the needed series arrays and to dump the buffers for reuse. If you like I could post them.
Keit
Hi
Sure post them if you like it sounds interesting
cja
__________________
My Disadvantage is that I am not a Trained Programmer - My Advantage is that I am not a Trained Programmer. http://cjatradingtools.com/
I wrote an indicator a couple years ago that displayed If I remember right 12 differant indicators. How ever not just one at a time but the indicator rotated from one to another on a preset time bases. Very much like your chart in the first post. Using only two buffers and one line level. I even had it so an EA could call it and get the indicator value it wanted out of the list of indicators available. The trick was to have the indicator calculate all indicators and assign there value to a series array. at the time of display the series array was transfered to the buffer array for display. after the alloted time the buffer was filled with another series for display. The only thing you need to do is to be sure to empty the buffer before filling it with new data. if you dont the indicator will keep the same scale as the old data and the display will be distorted. I wrote a couple of functions to create the needed series arrays and to dump the buffers for reuse. If you like I could post them.