web3TT_com

Tradingview指标|熊市定投党/囤币党/选币党的最爱/分享源代码

تعليم
BINANCE:BTCUSDT   Bitcoin / TetherUS

Tradingview选币指标
支持以下功能:
1.指定价格范围选币。
比如你想购买和定投,囤百倍币,那么我们就会把注意力集中到价格在0.01-1或或者0.01-0.9的一个区间,因为牛市都是新人,涨了10倍或百倍以后价格都很高,新人基本不会去购买的。

2.根据指定市值范围选币。

这个理论依据和价格选币的理论类似,市值高了,就不好拉,想要购买到10倍币,百倍币,市值肯定不能太高了。

3.根据上市时间选币。
一般我们会发现在牛末到熊市发的币可能在下一轮熊市里有更多的表现机会。通过指定上市市场来过滤一些老币或者新币。

4.根据币种的概念,板块,公链来选币。


一般来讲,每个币都会自带一些关键字标签,比如提到l2,就会和magic/eth/扩容/侧链等关键字挂钩,然后每个币都会有各种不同的关键字,我们可以根据关键字来选出满足条件的币。这点是十分有用的。

5.根据技术指标选币

不管我们是做现货定投波段还是合约杠杆,在决策时肯定会依赖一些技术指标,如均线,MACD,kdj ,3浪5浪,背驰,黄金分割等,都可支持

6.以及其他….



源代码如下(试用期结束后会自动失效)




//@version=5
indicator("币安选币",overlay=1)
import r2081/r2081_500/1 as cs
//付费用户 我会提供密钥以维持数月或一年的访问权 并且功能会不断完善
group=input.int(1,title="✌️✌️✌️开始表格翻页")
tf=input.string("4h",options = ,title="指标跨周期(仅在使用指标监控币种是用到")


//交易所选择
//market_which=input.string("BINANCE币安",options = ,title="交易所",group="一、选择交易所")
color_head=input.color(#f06292,title="表头",group="自定义table标记颜色")
color_true=input.color(#089981,title="满足条件",group="自定义table标记颜色")
color_false=input.color(color.gray,title="不满足条件",group="自定义table标记颜色")

//板块概念
bool_belong=input.bool(false,"开启板块/概念",group="✅币种板块/概念")
belongto_str=input.string("l1",title="输入币种所属概念",group="✅币种板块/概念") //常用options = //选择all

//上市时长
day_down=input.int(0,"下限/天",group = "😺 😺 上所时长")
day_up=input.int(999999999,"上限/天",group = "😺 😺 上所时长")

//价格范围
price_down=input.float(0,title="价格下限/USDT",group=" 😺 😺 😺 价格范围监控")
price_up=input.float(99999999,title="价格上限/USDT",group=" 😺 😺 😺 价格范围监控")

//总市值
cap_down=input.float(0,"总市值下限/亿美金(",group="😺选择市值范围")
cap_up=input.float(999999999,"总市值上限/亿美金",group="😺选择市值范围")

//24h交易额
amt_down=input.int(0,title="交易额下限/万USDT",group="😺 😺 24h交易额")
amt_up=input.int(9999999999,title="交易额上限/万USDT",group="😺 😺 24h交易额")

//跨周期可能用到的指标运算(macd/kdj/跨周期/3浪5浪/超买超卖/周期套/ema/vagas通道/指定时间区间内的的最低最高值/历史最低价/最高/指定时间内的黄金分割)


cs_sym_color(i,group)=>
result_belong=cs.true_or_false_str( bool_belong==true, cs.belongto_bool(i,group,belongto_str))
result_day_exist=cs.true_or_false_float( request.security(cs.sym_name(i,group),"1D",cs.day_of_exist()), day_down, day_up)
result_amt= cs.true_or_false_float( request.security(cs.sym_name(i,group),"30",cs.amt()), amt_down*10000,amt_up*10000)
result_cap=cs.true_or_false_float( cs.sym_supply(i,group)*request.security(cs.sym_name(i,group),"",open),cap_down, cap_up)
result_price_and_indicator=cs.true_or_false_float( request.security(cs.sym_name(i,group),cs.tf_str(tf),open), price_down,price_up)
result=(result_belong==1 and result_day_exist==1 and result_amt==1 and result_cap ==1)
and result_price_and_indicator==1 ?color_true:color_false

var testTable = table.new(position = position.middle_right, columns = 4, rows = 15, border_width = 1)
if barstate.islast
table.cell(table_id = testTable, column = 0, row = 0, text =cs.txt_value(group),bgcolor=color_head)
table.cell(table_id = testTable, column = 0, row = 1, text =cs.sym_name(1,group),bgcolor=cs_sym_color(1,group))
table.cell(table_id = testTable, column = 0, row = 2, text =cs.sym_name(2,group),bgcolor=cs_sym_color(2,group))
table.cell(table_id = testTable, column = 0, row = 3, text =cs.sym_name(3,group),bgcolor=cs_sym_color(3,group))
table.cell(table_id = testTable, column = 0, row = 4, text =cs.sym_name(4,group),bgcolor=cs_sym_color(4,group))
table.cell(table_id = testTable, column = 0, row = 5, text =cs.sym_name(5,group),bgcolor=cs_sym_color(5,group))
table.cell(table_id = testTable, column = 0, row = 6, text =cs.sym_name(6,group),bgcolor=cs_sym_color(6,group))
table.cell(table_id = testTable, column = 0, row = 7, text =cs.sym_name(7,group),bgcolor=cs_sym_color(7,group))
table.cell(table_id = testTable, column = 0, row = 8, text =cs.sym_name(8,group),bgcolor=cs_sym_color(8,group))
table.cell(table_id = testTable, column = 0, row = 9, text =cs.sym_name(9,group),bgcolor=cs_sym_color(9,group))
table.cell(table_id = testTable, column = 0, row = 10, text =cs.sym_name(10,group),bgcolor=cs_sym_color(10,group))
إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.