Re: Reference code? May 23, 2018 11:08PM |
Registered: 8 years ago Posts: 15 |
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 24, 2018 01:22PM |
Registered: 7 years ago Posts: 126 |
Quote
Paras
Where can I get that kind of script and how much that script will cost?
Re: Fun with Thinkscript May 24, 2018 05:17PM |
Registered: 9 years ago Posts: 67 |
// Bill Williams Fractal Template // Coded By: Matthew Spencer // If you like this script or use it's code in one of yours, please donate. // PayPal: ma.spencer@gmx.com Bitcoin: 1foxypuyuoNp5n1LNCCCCmjZ4RAXntQ8X // Define our title and that this script will overlay the candles. study("Williams Fractals",shorttitle="Fractals", overlay=true) // Define "n" as the number of periods and keep a minimum value of 2 for error handling. n = input(title="Periods", defval=2, minval=2, type=integer) // Williams Fractals are a 5 point lagging indicator that will draw 2 candles behind. // The purpose of the indicator is to plot points of trend reversals. // Often these are paired with trailing stop indicators such as Parabolic SAR, Volatility Stop, and SuperTrend. // Down pointing fractals occur over candles when: // High(n-2) < High(n) // High(n-1) < High(n) // High(n + 1) < High(n) // High(n + 2) < High(n) dnFractal = (high[n-2] < high[n]) and (high[n-1] < high[n]) and (high[n+1] < high[n]) and (high[n+2] < high[n]) // Up pointing fractals occur under candles when: // Low(n-2) > Low(n) // Low(n-1) > Low(n) // Low(n + 1) > Low(n) // Low(n + 2) > Low(n) upFractal = (low[n-2] > low[n]) and (low[n-1] > low[n]) and (low[n+1] > low[n]) and (low[n+2] > low[n]) // Plot the fractals as shapes on the chart. plotshape(dnFractal, style=shape.arrowdown, location=location.abovebar, offset=-2, color=olive, transp=0) // Down Arrow above candles plotshape(upFractal, style=shape.arrowup, location=location.belowbar, offset=-2, color=maroon, transp=0) // Up Arrow below candles
Re: AddCloud on Tick Chart. multiple time frame analysis on tick chart May 24, 2018 07:07PM |
Registered: 5 years ago Posts: 7 |
Re: Fun with Thinkscript May 25, 2018 03:49AM |
Registered: 7 years ago Posts: 126 |
# Bill Williams Fractal Template # Coded By: Rigel May 2018 #Define "n" as the number of periods and keep a minimum value of 2 for error handling. input n=2; # Williams Fractals are a 5 point lagging indicator that will draw 2 candles behind. # The purpose of the indicator is to plot points of trend reversals. # Often these are paired with trailing stop indicators such as Parabolic SAR, Volatility Stop, and SuperTrend. # Down pointing fractals occur over candles when: # High(n-2) < High(n) # High(n-1) < High(n) # High(n + 1) < High(n) # High(n + 2) < High(n) #dnFractal = (high[n-2] < high[n]) and (high[n-1] < high[n]) and (high[n+1] < high[n]) and (high[n+2] < high[n]) def isupfractal = if low < low[1] and low < low[2] and low < low[-1] and low < low[-2] then low else double.nan; # Up pointing fractals occur under candles when: # Low(n-2) > Low(n) # Low(n-1) > Low(n) # Low(n + 1) > Low(n) # Low(n + 2) > Low(n) #upFractal = (low[n-2] > low[n]) and (low[n-1] > low[n]) and (low[n+1] > low[n]) and (low[n+2] > low[n]) def isdownfractal = if high > high[1] and high > high[2] and high > high[-1] and high > high[-2] then high else double.nan; # Plot the fractals as shapes on the chart. plot upfractal = if( isupfractal, isupfractal+ (1 * tickSize()) , double.nan); upfractal.SetPaintingStrategy(paintingStrategy.ARROW_UP); plot downfractal = if( isdownfractal, isdownfractal - (1 * tickSize()), double.nan); downfractal.SetPaintingStrategy(paintingStrategy.ARROW_DOWN);
Re: Fun with Thinkscript May 25, 2018 08:03AM |
Registered: 9 years ago Posts: 67 |
Re: Fun with ThinkScript May 26, 2018 10:28PM |
Registered: 5 years ago Posts: 2 |
Replacing Momentum UP and Momentum BOOLEAN ARROWS May 27, 2018 12:08PM |
Registered: 5 years ago Posts: 23 |
Re: Fun with ThinkScript May 30, 2018 03:05AM |
Registered: 5 years ago Posts: 2 |
Re: Fun with ThinkScript June 01, 2018 04:14AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 01, 2018 04:21AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 01, 2018 02:11PM |
Registered: 7 years ago Posts: 3 |
Re: Fun with ThinkScript June 02, 2018 04:09AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 04, 2018 08:41AM |
Registered: 7 years ago Posts: 3 |
Need help on a RS type ThinkScript June 05, 2018 10:07PM |
Registered: 8 years ago Posts: 15 |
% Change from Open (0930) June 06, 2018 12:56PM |
Registered: 5 years ago Posts: 3 |
Re: Fun with ThinkScript June 06, 2018 01:15PM |
Registered: 5 years ago Posts: 4 |
Re: Fun with ThinkScript June 06, 2018 01:17PM |
Registered: 5 years ago Posts: 1 |
Re: % Change from Open (0930) June 07, 2018 06:15AM |
Registered: 7 years ago Posts: 126 |
# % Price change vs Day's Opening # by Rigel 2018 def agg=aggregationPeriod.DAY; def price = close; def opening= Open(period=agg); def PercentChg = 100 * (price / opening-1); AddLabel(yes, Concat("%change = ", Round(percentchg, 2)), if percentchg <0 then Color.RED else if percentchg >0 then color.GREEN else color.white);
Re: Need help on a RS type ThinkScript June 07, 2018 06:41AM |
Registered: 7 years ago Posts: 126 |
Quote
styx
1
I would like to able to smooth the two input periods with a mov. avg. So as the code is wrote. I want to be able to smooth the SPX
63 period and the stocks 63 period with a mov. avg. Just wanting to make the indicator line smoother and not as jagged as they look now?
plot RS = if IsNaN( comparisonRtOfChg ) then Double.NaN else average(( currentStkRtOfChg / comparisonRtOfChg ) * 100,15);
Quote
styx
3.
Also for my info: What in the code is making the SPX line a straight line across the indicator? In other words, how is that done.
Re: On Balance Volume June 07, 2018 12:27PM |
Registered: 5 years ago Posts: 11 |
Re: On Balance Volume June 07, 2018 02:42PM |
Registered: 7 years ago Posts: 126 |
# OBV Oscillator # @author LazyBear #[www.tradingview.com] # # Adapted to TOS by Rigel, 2018 declare lower; input length=20; def OBV = TotalSum(Sign(close - close[1]) * volume); plot obv_osc = (OBV - expAverage(OBV,length)); plot zero=0; obv_osc.assignvalueColor(if obv_osc>0 then color.green else color.red); zero.SetDefaultColor(color.cyan);
Re: Need help on a RS type ThinkScript June 07, 2018 09:42PM |
Registered: 8 years ago Posts: 15 |
Re: Need help on a RS type ThinkScript June 08, 2018 01:46AM |
Registered: 7 years ago Posts: 126 |
Re: Fun with ThinkScript June 09, 2018 01:03PM |
Registered: 7 years ago Posts: 6 |
Re: % Change from Open (0930) June 09, 2018 03:23PM |
Registered: 5 years ago Posts: 3 |
Re: Need help on a RS type ThinkScript June 10, 2018 09:59PM |
Registered: 8 years ago Posts: 15 |
Re: Need help on a RS type ThinkScript June 11, 2018 06:10AM |
Registered: 7 years ago Posts: 126 |
Quote
styx
But I just can't figure out how to use the addcloud in the code to color from the indicator line to baseline, when line is
above and below the baseline.
Re: Need help on a RS type ThinkScript June 11, 2018 09:18PM |
Registered: 8 years ago Posts: 15 |
Re: On Balance Volume June 13, 2018 06:04AM |
Registered: 5 years ago Posts: 11 |