Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader Indicators

MetaTrader Indicators Post and discuss the MetaTrader indicators here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 1st January 2010, 09:50
Default Avatar
Member
 
Join Date: Dec 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Double CCI with line and histogram for MT5

Hi to all and a happy New Year.


Here is the code of an indicator,which should display a line of a CCI value, just like the standard CCI indicator and additionally the histogram of a second CCI value.
For this histogram four colors should be used for values between 0 and 100, above hundred, between 0 and -100 and below -100.

Unfortunatly the histogram does not show up. So there must be a bug in the code. Is anybody with better codning skills (like me newbee) able to find it?

best regards
Attached Files
File Type: mq5 CCI_double.mq5 (5.4 KB, 22 views)
Reply With Quote
  #2 (permalink)  
Old 2nd January 2010, 16:16
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

You have the part for the histogram commented in the code, so it can't work at all. Apart from that you have several important errors in the code: division by zero on line 100, incorrect value for the PlotIndexSetInteger() function for histogram, wrong color setting for histogram, etc.
Reply With Quote
  #3 (permalink)  
Old 2nd January 2010, 17:13
Default Avatar
Member
 
Join Date: Dec 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
You have the part for the histogram commented in the code, so it can't work at all. Apart from that you have several important errors in the code: division by zero on line 100, incorrect value for the PlotIndexSetInteger() function for histogram, wrong color setting for histogram, etc.
Thanks for your reply.

How can I get info where the line 100 is?
Reply With Quote
  #4 (permalink)  
Old 2nd January 2010, 18:01
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

You can see the line number in the status bar of the MQL Editor.
Reply With Quote
  #5 (permalink)  
Old 2nd January 2010, 18:38
Default Avatar
Member
 
Join Date: Dec 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
You can see the line number in the status bar of the MQL Editor.
OK Thanks I found it.

Here is a new version for CCI Histogram which shows bars already, but the display is chaotic. Can you give me a hint, where mistakes are in this code?
Attached Files
File Type: mq5 CCI_Histogram_simple.mq5 (2.9 KB, 11 views)
Reply With Quote
  #6 (permalink)  
Old 2nd January 2010, 19:58
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Hmmm... When you attach the indicator to a chart it really displays wrong colors, but if you recompile it, while it's attached, it's redrawn properly. Maybe that's a bug. Try asking the MQL5 support about it.
Reply With Quote
  #7 (permalink)  
Old 2nd January 2010, 20:12
Default Avatar
Member
 
Join Date: Dec 2009
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Enivid View Post
Hmmm... When you attach the indicator to a chart it really displays wrong colors, but if you recompile it, while it's attached, it's redrawn properly. Maybe that's a bug. Try asking the MQL5 support about it.
What's the proper email address for the MQL support?
Reply With Quote
  #8 (permalink)  
Old 2nd January 2010, 21:49
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by fxwalb View Post
What's the proper email address for the MQL support?
Not e-mail. They have a full-scale forum for support:
http://www.mql5.com/en/forum
Reply With Quote
  #9 (permalink)  
Old 6th January 2010, 19:28
Default Avatar
Junior Member
 
Join Date: Jan 2010
Location: italy
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it is this CCI which search ?
http://clip2net.com/clip/m19204/1262...-clip-68kb.png
Reply With Quote
  #10 (permalink)  
Old 6th January 2010, 19:49
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,446
Thanks: 6
Thanked 8 Times in 7 Posts
Default

Quote:
Originally Posted by intraforex View Post
Not exactly, but it looks similar. Do you have the code?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Murrey Math Line X Enivid MetaTrader Indicators 10 29th May 2011 10:34
Automatic Trend Line Alerts for MetaTrader 4 AutoTrader MetaTrader Expert Advisors 0 19th September 2009 15:34
Trend Line Indicator for MetaTrader 4 TrendLineTrader MetaTrader Indicators 0 11th September 2009 10:02
Gold Double Top SwingTrdr Technical Analysis 0 7th September 2009 06:21
Weekly Unemployment Claims In Line mercaforex Fundamental Analysis 0 23rd July 2009 11:00


All times are GMT. The time now is 02:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2