FXCM Forex Trading

CCI divergence indicator

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

Re: CCI divergence indicator

Postby briansummy » Sat Oct 06, 2012 11:21 am

Very nice work here. I was also looking for a MACD Divergence,RSI, and Full Stochastic Divergence indicators which provides alerts and arrows. That would make a great addition the the trading platform.

It seems to me that divergences are the only best way as a leading indication for price moves.
briansummy
 
Posts: 53
Joined: Wed Feb 08, 2012 8:11 pm

Re: CCI divergence indicator

Postby Apprentice » Mon Oct 08, 2012 4:16 am

User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17153
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI divergence indicator

Postby 7510109079 » Fri Nov 25, 2016 8:54 am

I have noticed that this indicator gets out of sync/step with regular CCI indicators, and was wondering why this was and if it can be fixed.

When compared to the regular CCI and the CCI_highlight indicators (which both plot exactly over each other), the CCI_Divergence line starts to plot ahead of the others from the time when it is placed on the chart. To see this, load up the standard CCI, then this CCI_Divergence both in the same chart area.
Wait for 5mins on a m1 chart and you will start to notice this happening like this:
Image

Can this be fixed please?

If so many thx in advance
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

Re: CCI divergence indicator

Postby Apprentice » Sat Nov 26, 2016 6:11 am

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17153
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI divergence indicator

Postby 7510109079 » Mon Nov 28, 2016 5:24 am

Whatever you did, it WORKED!

thank you very much :D
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

Re: CCI divergence indicator

Postby 7510109079 » Mon Nov 28, 2016 5:37 am

I note that there is the same sync issue with the generic Divergence Indicator here :
viewtopic.php?f=17&t=3846&hilit=indicator+divergence

Could i please request the same fix for this as well (including the alert version)

many thx in advance
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

Re: CCI divergence indicator

Postby 7510109079 » Mon Nov 28, 2016 10:12 am

Actually its ok. I compared your revised code and made the same changes in the Indicator_Divergence.lua

You may want to update the download file at viewtopic.php?f=17&t=3846&hilit=indicator+divergence
Attachments
Indicator_Divergence with Alert.lua
(18.9 KiB) Downloaded 174 times
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

Re: CCI divergence indicator

Postby 7510109079 » Mon May 15, 2017 5:11 pm

can a very quick edit be made to the main chart indicator, cci_indicator1.lua so that the user can specify line thickness
thanks in advance :D
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

Re: CCI divergence indicator

Postby Apprentice » Wed May 17, 2017 12:55 pm

Try it now.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17153
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: CCI divergence indicator

Postby 7510109079 » Fri May 19, 2017 11:50 am

thats great many thx
7510109079
FXCodeBase: Graduate
 
Posts: 342
Joined: Wed May 18, 2011 7:23 am

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Google [Bot] and 4 guests