RCI3Short MTFFor RCI lover.
We are facing a timeout problem on smart phone apps of TV.
It looks like a staircase, but It frees us from timeout problems.
default MTF: 60 / 120 / 240
MTF line as middle/long lines
Cerca negli script per "股价站上60月线"
ec tEST cODE FOR pERCENT DIFERENCE ////////////////////////////////////////////////////////////
// Copyright by HPotter v1.0 04/04/2015
// Percent difference between price and MA
////////////////////////////////////////////////////////////
study(title="Percent difference between price and MA")
source = close
useCurrentRes = input(true, title="Use Current Chart Resolution?")
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="60")
smd = input(true, title="Show MacD & Signal Line? Also Turn Off Dots Below")
sd = input(true, title="Show Dots When MacD Crosses Signal Line?")
sh = input(true, title="Show Histogram?")
macd_colorChange = input(true,title="Change MacD Line Color-Signal Line Cross?")
hist_colorChange = input(true,title="MacD Histogram 4 Colors?")
res = useCurrentRes ? period : resCustom
fastLength = input(12, minval=1), slowLength=input(26,minval=1)
signalLength=input(9,minval=1)
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
Length = input(9, minval=1)
Length2= input(36,minval=1)
Length3= input(81,minval=1)
AveragePrice= input(9,minval=1)
Length5= input(3,minval=1)
xSMA = (sma(close, Length)+sma(close, Length2)+sma(close, Length3))/3
pSAM=sma(close, AveragePrice)
nRes = (pSAM - xSMA) * 100 / close
signalnRes = sma(nRes, signalLength)
macd = nRes
signal = sma(macd, signalLength)
hist = macd - signal
outMacD = security(tickerid, res, macd)
outSignal = security(tickerid, res, signal)
outHist = security(tickerid, res, hist)
histA_IsUp = outHist > outHist and outHist > 0
histA_IsDown = outHist < outHist and outHist > 0
histB_IsDown = outHist < outHist and outHist <= 0
histB_IsUp = outHist > outHist and outHist <= 0
//MacD Color Definitions
macd_IsAbove = outMacD >= outSignal
macd_IsBelow = outMacD < outSignal
plot_color = hist_colorChange ? histA_IsUp ? aqua : histA_IsDown ? blue : histB_IsDown ? red : histB_IsUp ? maroon :yellow :gray
macd_color = macd_colorChange ? macd_IsAbove ? lime : red : red
signal_color = macd_colorChange ? macd_IsAbove ? yellow : yellow : lime
circleYPosition = outSignal
// MA COLOR DEFINITION
maColor = change(nRes)>0 ? green : change(nRes)<0 ? red : na
mA_IsAbove = nRes> 0
mA_IsBelow = nRes< 0
plot( nRes, color=maColor, style=line, title="MMA", linewidth=2)
//plot(smd and signalnRes ? signalnRes : na, title="Signal Line", color=signal_color, style=line ,linewidth=2)
//plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=4)
//plot(smd and outSignal ? outSignal : na, title="Signal Line", color=signal_color, style=line ,linewidth=2)
//plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=histogram, linewidth=4)
plot(sd and cross(outMacD, outSignal) ? circleYPosition : na, title="Cross", style=circles, linewidth=4, color=macd_color)
hline(0, '0 Line', linestyle=solid, linewidth=2, color=white)
//////ALERT cONDITION////
src = input(close)
ma_1 = sma(src, 20)
ma_2 = sma(src, 10)
c = cross(ma_1, ma_2)
alertcondition(c, title='Red crosses blue', message='Red and blue have crossed!')
d = cross(outMacD, outSignal)
alertcondition(d, title='GOING DOWN', message='SELL!')
//
//e = cross(outSignal, outMacD)
//alertcondition(E, title='GOING UP', message='BUY!')
Momentum Strategy, rev.2This is a revised version of the Momentum strategy listed in the built-ins.
For more information check out this resource:
www.forexstrategiesresources.com
VolumezonesSo how to use this indicator?
This indicator is based on WMA (black color line) and Volume RSI (blue color line)
There are 3 volume zones based on WMA
1. when it lowest seen in yellow color
2.when highest seen in red color
3. gray color when it not highest or lowest
so how to enter trade:
option 1: the volume went to lowest (yellow ) , so the seller power will be going down by time.. now look on Vrsi if it start to go up and the color change to gray.. then it will be good entry as we expect rise in volume and rise in price
option 2. cross over of WMA above 20 or cross over of VRSI above 30 in the gray area are good buy points
option 3 more danger but in bullish market can work is when WMA cross above 60
sell option:
1. when we enter the red zones (WMA at its peak) , so buyer power go down.. now look on vrsi if it fall and it become gray again exit trade
you can go back to it using option 3 if market is bullish and both vrsi and WMA are going up again
2. lets say you enter by option 1 to trade but force of buyers is weak then the WMA will go down (let say 20 ) and vrsi is going down then escape trade.. the buyers not holding and the sellers are stronger
the code is open so you can add alerts of buy and sell by your own. Also you can add to it other indicators making it much better
have f
Donchian Channel with Range AdditionA Donchian Channel with additional zones at places where its range is smaller than a set amount of atr. Thus it kind of combines with Keltner Channel qualities. Purpose is to set a stop loss wide enough to avoid shaking out of a position. The example chart shows a Philips day chart, where I opened position on 16 juli at 37,50 and set the stop loss at low border level 35,60, on 23 juli was an earnings rapport, the wick of the candle shows that quotes went very low, obviously smart traders had to fill a huge order and hunted for stops, triggering my stop closing the position. next days quotes went a lot better, so I missed the fun. The Donchian Channel was too narrow because quotes had ranged in the previous weeks. If I had placed my stop on the additional low, setting it 5 atr below the high border, my stop would have been safe.
tvial/rsiSimple RSI indicator including:
- 40 & 60 support/resistance
- visual marker (orange bgcolor) on RSI length limit to spot actual RSI divergences
- simple layout
MY_DXY (inverted)Plots the DXY in negative value (inverted), in overlay mode, so one can guess when price in dollars will rise following it.
Default resolution is 60 mins, can be selected as input via the * symbol.
Works with every ticker, GC/SI/PL etc
MY_DXY corrected pricePlots the current ticker's price in "DXY corrected dollar". Overlay mode.
Default resolution is 60 mins, can be modified by input (*)
Works with every ticker: GC/SI/XAUUSD etc
PPSignal V4 (Auto Adaptive Times)We have ppsignal system for the next period.
// D: 1min to 15 min
// W: 60-120 - 180 - 240 - D
Quatro Storch Relative Strength IndexDisplays current stoch rsi along with 5 15 30 60 240 time frames
PT - EMA/SMA Spread AND Combination with MultipleTimeFrameYou can now combine multiple timeframe EMA/SMA as in profit trailer and see which areas will be then used for PT if you for example use a 15 minute EMASpread and 60 minute Spread.
- From what i can see the lowes the timeframe the faster it reacts but a lot of times you will get stuck with a bag due to a coin having 2 drops. Thiw might help you find a sweetspot so that you can picky only the high reward low risk trades.
Regression Line (OLS) w/Residual Bands - Beasley SavagePlots linear regression "line of best fit" for a given source and length. Also plots the standard deviation of residuals as upper and lower bands. For some reason it's not plotting the lines exactly where the values are, so I wouldn't recommend using it as a purely visual indicator, but it could be used in strategies. A quick implementation of a strategy buying when the close crossed over the lower band and selling when close crossed under the upper band resulted in ~60-70% trade accuracy, not taking into account commission/slippage.
If anyone knows how to fix the lines not plotting accurately please let me know :)
CM_Ultimate RSI Triple TimeframeCM_Ultimate RSI MTF modified.
enough one extra line? NO, I need more lines!
I added another timeframe's extra RSIline.
default 60/15/5m RSIline
KK_Traders Dynamic Index Higher TimeframeHi Guys,
I was asked to create a script that can access TDI values from higher timeframes - here it is.
You can choose the timeframe in the settings just put the following there:
Weekly - W
Daily - D
4h - 240
1h - 60
...
This only works for higher timeframes than the one you're currently on.
I whish you all good luck trading!
Best regards
KK