The CAM Indicator For Trends And Countertrends

Category: Indicators By: Nicolas Created: March 19, 2018, 3:56 PM
March 19, 2018, 3:56 PM
Indicators
2 Comments

In the article “The CAM Indicator For Trends And Countertrends” in the January 2018 Traders’ Tips issue, author Barbara Star introduces using chart patterns based on a coordinated ADX and MACD or, as she abbreviates it, CAM. In the article, she describes using the CAM indicator to identify upward and downward trends as well as pullbacks in existing trends and countertrend rallies.

The author also suggests using other indicators such as an exponential moving average (EMA) and the commodity channel index (CCI) to help confirm signals generated by CAM.

  • green candlesticks = uptrend
  • gold candlesticks = pullback
  • red candlesticks = downtrend
  • blue candlesticks = counter trend
//PRC_CAM trend and countertrend | indicator
//19.03.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge

mMACD = macd[12,26,9]
aADX = adx[10]

if aADX>=aADX[1] and mMACD>mMACD[1] then
//CAM up
 r = 0
 g = 255
 b = 0
elsif aADX<=aADX[1] and mMACD<mMACD[1] then
//CAM PB
 r = 255
 g = 215
 b = 0
elsif aADX>=aADX[1] and mMACD<mMACD[1] then
//CAM DN
 r = 255
 g = 0
 b = 0
elsif aADX<=aADX[1] and mMACD>mMACD[1] then
//CAM CT
 r = 0
 g = 0
 b = 255
endif

DRAWCANDLE(open,high,low,close) coloured(r,g,b)

RETURN

 

Download
Filename: PRC_CAM-trend-and-countertrend.itf
Downloads: 301
Nicolas Master
I created ProRealCode because I believe in the power of shared knowledge. I spend my time coding new tools and helping members solve complex problems. If you are stuck on a code or need a fresh perspective on a strategy, I am always willing to help. Welcome to the community!
Author’s Profile

Comments

Logo Logo
Loading...