TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule
TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions
Worden Discussion Forum
Customer Training & Support
PCFs, EasyScan and Custom Indicators
Simple function to Relative Strength ratio
Hi! I try to make a simple function. I have a relative strength ratio chart. Eg. XLF relative to SPY. Add a plot in the ratio of a simple moving average 20 period. Add a custom function to find : ABS(c>avgc20).
The data source is the relative strength ratio. But not working as i expected. I want to plot 1 when the close of the ratio is above the SMA20, and 0 when the ratio is below the SMA20. What is wrong? Can anyone please help me? Thanks in advance!
I do not know of any way to plot 1s and 0s on the chart for this.