View Single Post
  #1 (permalink)  
Old 01-05-2009, 12:17 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
cja is on a distinguished road
Multi_Oscillator

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.


Animation1.gif

Multi_Oscillator_v1.mq4
__________________
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
Reply With Quote