Kase CD and Price Oscillator
Author: richard1000
Creation Date: 11/6/2010 3:06 PM
profile picture

richard1000

#1
The original code. Why does he/she use LN as variable since it is a key word for natural log? Is there something I'm missing about this code?

CODE:
Please log in to see this code.


Notice that variable LN is translated as Math.Log. I would have to change this to a reasonable variable. If I did that everything looks ok except for SetSeriesBarColor. How to correct SetSeriesBarColor?

CODE:
Please log in to see this code.


Ok, more specifically, when I set SetSeriesBarColor(Bar, KCD, Color.Red) I get an error. I am confused about why WL_RED is used in the translator.
profile picture

Eugene

#2
QUOTE:
Why does he/she use LN as variable since it is a key word for natural log?

It was overlooked by whomever made this code.
QUOTE:
How to correct SetSeriesBarColor?

It's simple. In this fragment, swap the main loop and the 3 lines that plot series:
CODE:
Please log in to see this code.


In other words, here's how the resulting code snippet should look like:
CODE:
Please log in to see this code.
profile picture

WEALTHPRO25

#3
(KaseCd)KCD = PeakOscillator - average(PeakOscillator), n

thus can you please help me with the code for Peak Oscillator only, i want to be able to see both Kasecd and Peak Oscillator and see if they diverge
profile picture

Eugene

#4
CODE:
Please log in to see this code.
profile picture

WEALTHPRO25

#5
thank you
profile picture

Eugene

#6
To be included in the upcoming release of Community Indicators (2015.07).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).