LazyBear

Colored Volume Bars [LazyBear]

Edgar Kraut proposed this simple colored volume bars strategy for swing trading.

This is how the colors are determined:
- If today’s closing price and volume are greater than 'n' days ago, color today’s volume bar green.
- If today’s closing price is greater than 'n' days ago but volume is not, color today’s volume bar blue.
- Similarly, if today’s closing price and volume is less than 'n' days ago, color today’s volume bar orange.
- If today’s closing price is less than 'n' days ago but volume is not, color today’s volume bar red.

Buy the green or blue volume bars, use a 1% trailing stop, and stand aside on red or orange bars.

As you see, this is more for entry confirmation. I have not tested this on any instrument.

You may have to tune the lookback period for your instrument. Default is 10.

More info:
"A color-based system for short-term trading" - http://www.traders.com/Documentation/FEE...

List of all my indicators:

從喜愛的腳本中移除 添加到喜愛的腳本
//
// @author LazyBear 
// List of all my indicators: https://www.tradingview.com/v/4IneGo8h/
//
study("Colored Volume Bars [LazyBear]", shorttitle="CVOLB_LB")
lookback=input(10)
showMA=input(false)
lengthMA=input(20)
p2=close
v2=volume
p1=p2[lookback] 
v1=v2[lookback] 
c=	iff(p2>p1 and v2>v1, green, 
	iff(p2>p1 and v2<v1, blue,
	iff(p2<p1 and v2<v1, orange,
	iff(p2<p1 and v2>v1, red, gray))))
plot(v2, style=columns, color=c)
plot(showMA?sma(v2, lengthMA):na, color=maroon)
thank you for this script!
could it be modded to send individual alerts for any of the colors?
I have never written anything in pine. If anyone could post here or message me how this can be added that would be great.
回覆
Interesting script and made a small adjustments in your script. 1) option to input a different lookback period for price and volume. 2) added an option to turn the lookback period for volume into a moving average period for volume.
回覆
MarxBabu Dutchinvestor
@Dutchinvestor, @Dutchinvestor, can you share the screen shot and if any improvements here.
+1 回覆
@MarxBabu, I can show a screenshot but I am not changing LazyBear's scripts because I respect his work very much. I will show you my input screen for the modifications I have made for myself. All credits goes to LazyBear for creating many great scripts that taught me a lot about the pine script language. https://imgur.com/a/r72nc5Y
回覆
MarxBabu Dutchinvestor
@Dutchinvestor, thank you i checked it
+2 回覆
Rh895 Dutchinvestor
@Dutchinvestor, what time frame do you use this tweek for? Day trade or swing trade? And how has it been working?
回覆
@Rh895, daily and weekly timeframes for swing trading. I have used this indicator briefly for confirmation on entries and exits. Worked better with an ATR stop than a fixed percentage stop on low volatility stock or indices.
回覆
what do you mean by loopback? sorry I am new to this
+11 回覆
Loved it sir : )
+1 回覆
I need this indicator on mt4 forma i really like it please help me !!
+10 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 節目 如何運作 圖表功能 價格 網站規則 版主 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 幫助中心 推薦朋友 功能請求 部落格 & 新聞 常見問題 維基 推特
概述 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出