Untitled
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © omererkan // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © ajayraipuriya //@version=5 indicator('JLines Cloud ajay raipuriya', overlay=true) sl = input(72, 'Smaller length') hl = input(89, 'Higher length') res = input.timeframe(title='JLines - Time Frame 1', defval='1') res1 = input.timeframe(title='JLines - Time Frame 2', defval='3') enable515 = input(false, '5/15 EMA') res2 = input.timeframe(title='5 /15 EMA', defval='5') tickprice1 = request.security(syminfo.tickerid, res, close) tickprice2 = request.security(syminfo.tickerid, res, close) ema1_72 = request.security(syminfo.tickerid, res, ta.ema(close, sl)) ema1_89 = request.security(syminfo.tickerid, res, ta.ema(close, hl)) ema2_72 = request.security(syminfo.tickerid, res1, ta.ema(close, sl)) ema2_89 = request.security(syminfo.tickerid, res1, ta.ema(close, hl)) ema3_5 = request.security(syminfo.tickerid, res2, ta.ema(close, 5)) ema3_15 = request.security(syminfo.tickerid, res2, ta.ema(close, 15)) p1_1 = plot(ema1_72, 'TimeFrame 1- SL', color=color.new(color.blue, 0), style=plot.style_line, display=display.none) p1_2 = plot(ema1_89, 'TimeFrame 1 - HL', color=color.new(color.blue, 0), style=plot.style_line, display=display.none) p2_1 = plot(ema2_72, 'TimeFrame 2 - SL', color=color.new(color.yellow, 0), style=plot.style_line, display=display.none) p2_2 = plot(ema2_89, 'TimeFrame 2 - HL', color=color.new(color.yellow, 0), style=plot.style_line, display=display.none) p3_1 = plot(enable515 ? ema3_5 : na, 'Lade Day Fade - 5 EMA', color=color.new(color.yellow, 0), style=plot.style_line, display=display.none) p3_2 = plot(enable515 ? ema3_15 : na, 'Lade Day Fade - 15 EMA', color=color.new(color.yellow, 0), style=plot.style_line, display=display.none) fill(p1_1, p1_2, color=ema1_72 > ema1_89 ? color.green : color.red, title='Background 1') fill(p2_1, p2_2, color=ema2_72 > ema2_89 ? color.green : color.red, title='Background 2') fill(p3_1, p3_2, color=enable515 ? ema3_5 > ema3_15 ? color.blue : color.red : na, title='Lade Day Fade ') dl = input(true, title='Show daily Open') dopen = request.security(syminfo.tickerid, 'D', open, lookahead=barmerge.lookahead_on) plot(dl and dopen ? dopen : na, title='Day open', color=color.new(#FF9800, 0), style=plot.style_circles, linewidth=2)
Leave a Comment