CCI MACD Overlay

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

CCI MACD Overlay

Postby Apprentice » Wed Nov 23, 2011 1:31 pm

CCI_MACD_Overlay.png


GREEN COLOR:

1. cci [period 14] > 0 and macd line > signal line

RED COLOR:
1. cci [ period 14] < 0 and macd line < signal line

YELLOW COLOR
1. cci > 0 and macd line< signal line {or}
2. cci < 0 and macd line> signal line

CCI_MACD_Overlay.lua
(3.98 KiB) Downloaded 1332 times


You can select other Time Frames by changing the indicator Source time frame.

The indicator was revised and updated
MT4/MQ4 version
viewtopic.php?f=38&t=66151
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI MACD Overlay

Postby transformer » Wed Nov 23, 2011 4:29 pm

sir,

thank you for this work.

cci macd overlay on the chart is difficult to compare the time frames. because H1 bar , H4 bar , D1 Bar all have same size in horizontally [breath ] .can you creat like a bar below the chart.

thank you
Attachments
cci macd over lay.png
User avatar
transformer
 
Posts: 84
Joined: Thu Nov 10, 2011 9:18 am

Re: CCI MACD Overlay

Postby Apprentice » Wed Nov 23, 2011 6:09 pm

In the initial request.
As I recall MTF was not specified.
You have to be exact.
Then i have more freedom.
When I find time I'll try to write something.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI MACD Overlay

Postby transformer » Thu Nov 24, 2011 2:35 am

sir,

i am extremely sorry for my mistake.
User avatar
transformer
 
Posts: 84
Joined: Thu Nov 10, 2011 9:18 am


Re: CCI MACD Overlay

Postby transformer » Thu Nov 24, 2011 4:21 am

Thank you sir.
User avatar
transformer
 
Posts: 84
Joined: Thu Nov 10, 2011 9:18 am

Re: CCI MACD Overlay

Postby Jigit Jigit » Tue Jan 24, 2012 2:04 am

Thank you for this excellent indicator.
Would you be so kind as to move the label a bit to the right (see picture).
Also, as I'm trying to learn lua, could you please let us know which part of the script actually determines the position of this label.

Cheers
Attachments
MTF MACD CCI.png
Jigit Jigit
 
Posts: 54
Joined: Tue Aug 31, 2010 1:04 pm

Re: CCI MACD Overlay

Postby Apprentice » Tue Jan 24, 2012 3:27 am

Your request is added to the developmental cue.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI MACD Overlay

Postby Timon55 » Thu Jan 26, 2012 5:35 am

Jigit Jigit wrote:Thank you for this excellent indicator.
Would you be so kind as to move the label a bit to the right (see picture).
Also, as I'm trying to learn lua, could you please let us know which part of the script actually determines the position of this label.

Cheers


In attached version label is locked to the right border of the oscillator area.

There are two function to draw labels:
Simple( http://www.fxcodebase.com/documents/Ind ... Label.html ). In this function label's position determines by date for x axis and price for y axis.
Advanced ( http://www.fxcodebase.com/documents/Ind ... abel1.html ). This is more customizable function for drawing labels. You can specify x and y coordinates relatively to chart values(date/price) or chart area border(left, right, center, top, bottom).
You can find more details and samples by specified links.
Timon55
FXCodeBase: Confirmed User
 
Posts: 43
Joined: Thu Jul 15, 2010 5:35 am
Location: Omsk

Re: CCI MACD Overlay

Postby Jigit Jigit » Sat Jan 28, 2012 6:33 am

Cheers mate.
Jigit Jigit
 
Posts: 54
Joined: Tue Aug 31, 2010 1:04 pm

Next

Return to Custom Indicators

Who is online

Users browsing this forum: Majestic-12 [Bot] and 46 guests