TradingView
KivancOzbilgic
21 Ağu 2020 22:21

Scalping Line Indicator 

Açıklama

"A derivated indicator of the stair step moving average exploration. This time, the stairstep MA (the main trend) represent the center of the oscillator.

The signal line (maroon line) is the difference between this center and a simple moving average of 7 periods by default.

Trade signals seems pretty effective on tick charts representation. Take long when signal line cross above zero and short below it. Of course, as always objectives and stoploss protection are your responsabilities

You can play with different parameters to sweet any other instruments."

Coded referring the"Scalping Line Indicator" from prorealcode for Tradingview users after one of my followers asked me to do so.
Yorumlar
UnknownUnicorn6893821
Doesnt work with Sensex and Nifty... Infact shows inverted data... but appreciated your effort.
View4U
@vs6681
There's the word I was looking for ?
UnknownUnicorn6893821
@View4U, didn't get that boss
shyamnarayan
@vs6681, edit the ">" and "<" in "ssMA". Put the opposites there ( change ">" to "<" and vice-versa) and try it on 1 min time frame in Nifty/BankNifty.
UnknownUnicorn6893821
@shyamnarayan, Thanks Sir...
shyamnarayan
aseesnathhh
@UnknownUnicorn6893821, Hi I will say that you have to make a change in line 13, "ScalpLine = ssMA-signalline"
junaidsarwar
@shyamnarayan, Please tell that on what forex pair & TF it yields optimum results
shyamnarayan
@junaidsarwar, I'm not sure about its efficiency in forex as I trade with supply and demand in Forex.
However, you can try the following modification with your trading pattern in any forex pair in 15 minutes and 1 hour timeframe. Kindly understand that I don't endorse any indicator/trading style or pattern which I'm personally not sure about.

study("Scalping Line", overlay=false)
src = input(close, title="Source")
percent = input(1.0,"Percent", type=input.float, step=0.1, minval=0)
mainperiod = input(14,"Main Period")
signalperiod = input(3,"Signal Period")
MA = sma(sma(src, ceil(mainperiod / 2)), floor(mainperiod / 2) + 1)
ssMA = MA<close+MA*percent/100 ? MA : MA>close-MA*percent/100 ? MA : close
signalline = sma(close,signalperiod)
ScalpLine = signalline-ssMA

k1=plot(ScalpLine,"SLI",color.blue,1)
k2=plot(0,"", color.blue)
plot(0.00100)
plot(-0.00100)
plot(0.01000)
plot(-0.01000)
plot(0.10000)
plot(-0.10000)
color1= ScalpLine>=0 ? color.lime : color.red
fill(k1,k2,color=color1,transp=50)
alertcondition(crossover(ScalpLine,0), title="BUY ALARM!", message="SLI BUY Signal!")
alertcondition(crossunder(ScalpLine,0), title="SELL ALARM!", message="SLI SELL Signal!")
esariyilmaz
@shyamnarayan, Hello, how can I make an indicator by uploading this list of commands to metatrade4. Thank you.
Daha Fazla