2117 24
This indicator was designed to remove trend from price and make it easier to identify cycles.
Although this indicator has similarities to MACD . It is better used to identify the cycle of High and Lows based on the Statistical Data (Default is set to 25).


As a word of caution the read this - http://bit.ly/1Arjoqp. This is a rip off, if you choose to pay a penny.
Remove from Favorite Scripts Add to Favorite Scripts
// Created by UCSgears 
// Version 1 - Setting for the Power cycle is not determined yet. This is the concept. 
// Larry Gaines version of Cycle uses Linear Regression

study(title="UCS_Cycle_V1", shorttitle="UCS-Cycle", overlay=false)

// Classic Cycle Indicator uses SMA
UseLinearRegression = input(true)
PlotSignal = input(false)

// The Source can be Based on OHLC4 or HL2
src = (ohlc4)
len = input(25, title="Cycle Length")
smooth = input (8, title = "Signal")
basis = UseLinearRegression ? linreg(src, len, 0) : sma(src,len)

cycle = close - basis
cyclesig = PlotSignal ? ema(cycle,smooth) : 0

plot_color1 = cycle > 0 ? green : red

plot(cycle, color = plot_color1, title = "Linear Regression Curve", style = columns, linewidth = 4)
plot(cyclesig, color = gray, title = "Signal")

// Version 2 will have all the settings for the 3 Power Cycle Bands with Options to Plot them all.
Would be possible to colour the bars green/red depending on if they are above or below the zero line?
ucsgears TheYangGuizi
add the below code after the plot statements

barcolor (plot_color1)
+1 Reply
Thanks :)

Not bad :)
Hi guys...when will Version 2 come out? Great script!
ucsgears Starlord
Yes, Do you have any suggestions?
Starlord ucsgears
For me, I need scripts that are a no-brainer and you follow "these rules" and 80% of the time it'll win. Combined with another one of your scripts looks very interesting for the daily chart for Forex that I included here. When it gets to shorter timeframes there is so much whipsaw that it knocks off inexperienced chaps like myself or we're so confused we crawl up in the fetal position and chant "I'm in my happy place". Coondawg has great stuff and that's still a little over my head but perhaps a way to smooth out the bars and perhaps your thoughts on if it's something that is stand alone or works well in combination with another script/indicator and certain timeframes. I hope this is a worthwhile suggestion.
Starlord Starlord
+1 Reply
ucsgears Starlord
Currently, we do not have a full capability to do such scripting strategies in TV. I am waiting for TV to release it. It will be sooner, based on information i got. To answer you question on Steve Primo S4. It is set up for daily and weekly chart. He has about 8 strategies based on someone who told me. This was the only one I could find. I kinda know what others look like. But do not have the full set of rules.
ucsgears Starlord
BTW, to answer your question on Smoothing these cycle would defeat its purpose. Adding a few more lagging indicators will slow this down. I can add as an option on the next release.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out