Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4






Register in Forex TSD!
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

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2009, 12:17 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 673
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2009, 02:09 PM
fxnewbie's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 495
fxnewbie is on a distinguished road
Great idea, cja !
I will start to play with it right now. Tks. a lot and happy and profitable new year !!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2009, 02:36 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
thank you, CJA!
good idea - doublesmoozer in one package
also people often ask 4 MAs in sw - would be great to add it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 01-07-2009, 08:45 PM
Ethan Hunt's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Israel
Posts: 222
Ethan Hunt is on a distinguished road
Thumbs up

Thank you cja, have a great 2009 year to you and to all Forex-Tsd members...

Cheers

Ethan Hunt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 01-10-2009, 07:03 PM
Senior Member
 
Join Date: May 2007
Posts: 293
ServerUang is on a distinguished road
Thank you cja
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 01-11-2009, 12:31 AM
Junior Member
 
Join Date: Jan 2009
Location: DollarFinder.NET
Posts: 13
dollarfinder is on a distinguished road
Thank you, looks good actually, I'll make a start on it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 01-13-2009, 12:48 AM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 474
cockeyedcowboy is on a distinguished road
cja

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 01-13-2009, 02:37 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 673
cja is on a distinguished road
Interesting?

Quote:
Originally Posted by cockeyedcowboy View Post
cja

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 01-13-2009, 07:57 AM
matfx's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 508
Blog Entries: 3
matfx is on a distinguished road
Thank you CJA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 01-13-2009, 08:35 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
cja

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
i believe i saw info scroller script recently
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT. The time now is 11:28 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.