new Indicator: “EasyStock” – please support
Forums › ProRealTime English forum › ProBuilder support › new Indicator: “EasyStock” – please support
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by Nicolas.
-
-
08/20/2020 at 1:24 PM #142125
Dear Nicolas, dear all,
since several weeks I`m testing following indicator from trdv (https://www.tradingview.com/script/CKn6uOk9-Easy-stock/). It is very reliable and generates continous signals.
Please would you take the chance and code it for prorealtime? I would highly appreciate your support.
the orig. code:
123456789101112131415161718192021222324252627282930313233study(title = "Easy stock", overlay = true)tf10 = input("W", title = "Timeframe", type = input.resolution, options = ["1", "5", "15", "30", "60","120", "240","360","720", "D", "W"])length = input(24, title = "Period", type = input.integer)shift = input(1, title = "Shift", type = input.integer)hma(_src, _length)=>wma((2 * wma(_src, _length / 2)) - wma(_src, _length), round(sqrt(_length)))hma3(_src, _length)=>p = length/2wma(wma(close,p/3)*3 - wma(close,p/2) - wma(close,p),p)a = security(syminfo.tickerid, tf10, hma(close, length))b =security(syminfo.tickerid, tf10, hma3(close, length)[shift])plot(a,color=color.gray)plot(b,color=color.yellow)close_price = close[0]len = input(100)linear_reg = linreg(close_price, len, 0)plot(linear_reg, color=color.blue, title="LR", linewidth=3)buy=crossover(linear_reg, b)sell=crossunder(linear_reg, b)plotshape(buy, title="buy", text="Buy", color=color.green, style=shape.labelup, location=location.belowbar, size=size.small, textcolor=color.white, transp=0) //plot for buy iconplotshape(sell, title="sell", text="Sell", color=color.red, style=shape.labeldown, location=location.abovebar, size=size.small, textcolor=color.white, transp=0) //plot for sell icon/////// Alerts /////alertcondition(buy,title="buy")alertcondition(sell,title="sell")The above Link shows several examples on how to enter trades.
Thank you very much in advance.
Best Regards,
Micha
08/20/2020 at 1:54 PM #14212908/20/2020 at 2:09 PM #14213108/20/2020 at 3:10 PM #142139Hello Nicolas,
ok..I checked the original code again; I found that Hull is a standard indicator; ist HULL(100) which is displayed for every requested timeframe.
BUT, the “Linear Regression” indicator is a “weekly, displayed in 1D and 4h timeframe: And more the LR is “shifted” by 1 period!
How can I display weekly LR-line in 4h-chart and shift by 1 the LR in PRT???
Please Nicolas support me.
Thank you..merci,
Micha
08/20/2020 at 4:18 PM #14215108/20/2020 at 5:53 PM #142157Hello Nicolas,
thank you again…MTF is possible with my PRT version! Shifting various MA is possible, as well.
BUT, according to my request above, the “Linear Regression” indicator should be shifted by 1…this is not displayed in the settings of indicator window…..
How could it be hard coded???
Thank you again…
Reagrds Micha
08/21/2020 at 8:35 AM #142189 -
AuthorPosts