You are on page 1of 13

异界番茄说美股 🍅

快乐投资!终身成长!

(欢迎大家随意分享,让更多的人一起成长)

社交媒体 Social Media


● Ark 神器链接:​ark.alien-tomato.com
● 异界番茄网站: alien-tomato.com
● Youtube官方账号:​ ​异界番茄说美股
● Bilibili 官方账号:​异界番茄
● 微博官方账号:异界番茄说美股
● Facebook官方账号:​www.facebook.com/alientomatoinvestment
● 官方Email:​alientomatoinvestment@gmail.com​ (由于消息太多,回复需要一些时间)

须知
这是投资礼包第三期!希望能对新手投资朋友有些帮助!学习的过程不能一蹴而就,需要循序渐
进,慢慢消化。以后的投资礼包会更加丰富,有更多的资料,知识,指标的用法以及代码等。
这里帮助大家总结整理了频道中已经出现过并分享过的
TradingView代码

🍅
免费使用TradingView,最全教学: ​https://www.youtube.com/watch?v=mZVK6-zLRLQ
Tradingview refer link:​https://www.tradingview.com/gopro/?share_your_love=AlienTomato

均线系统代码
(强烈建议大家打开这个链接,复制代码,更加快速 ​https://pastiebin.com/5ff192f053709​)

// This source code is subject to the terms of the Mozilla Public License 2.0 at
https://mozilla.org/MPL/2.0/
// © AlienTomato

//@version=4
study(title="AT Script", shorttitle="异界番茄", overlay=true)
at_show_bollingerband = input(false, title="是否显示 - 布林线")
at_show_gmma = input(false, title="是否显示 - GMMA - 顾比均线")
at_show_ma_system = input(true, title="是否显示 - 均线系统")
at_ma_type = input("SMA", title="移动平均线种类", options=["SMA", "WMA", "HMA", "EMA"])
at_ma_number = input("全显示", title="均线数量", options=["全显示", "双均线"])

// Alien Tomato moving averages


at_ma_len_1= input(8, minval=1, title="Length")
at_ma_len_2= input(21, minval=1, title="双均线-短")
at_ma_len_3= input(34, minval=1, title="Length")
at_ma_len_4= input(55, minval=1, title="双均线-长")
at_ma_len_5= input(89, minval=1, title="Length")
at_ma_len_6= input(144, minval=1, title="Length")
at_ma_len_7= input(233, minval=1, title="Length")

at_ma_graph_1= sma(close, at_ma_len_1)


at_ma_graph_2= sma(close, at_ma_len_2)
at_ma_graph_3= sma(close, at_ma_len_3)
at_ma_graph_4= sma(close, at_ma_len_4)
at_ma_graph_5= sma(close, at_ma_len_5)
at_ma_graph_6= sma(close, at_ma_len_6)
at_ma_graph_7= sma(close, at_ma_len_7)
if at_ma_type == "WMA"
at_ma_graph_1:= wma(close, at_ma_len_1)
at_ma_graph_2:= wma(close, at_ma_len_2)
at_ma_graph_3:= wma(close, at_ma_len_3)
at_ma_graph_4:= wma(close, at_ma_len_4)
at_ma_graph_5:= wma(close, at_ma_len_5)
at_ma_graph_6:= wma(close, at_ma_len_6)
at_ma_graph_7:= wma(close, at_ma_len_7)
if at_ma_type == "EMA"
at_ma_graph_1:= ema(close, at_ma_len_1)
at_ma_graph_2:= ema(close, at_ma_len_2)
at_ma_graph_3:= ema(close, at_ma_len_3)
at_ma_graph_4:= ema(close, at_ma_len_4)
at_ma_graph_5:= ema(close, at_ma_len_5)
at_ma_graph_6:= ema(close, at_ma_len_6)
at_ma_graph_7:= ema(close, at_ma_len_7)
if at_ma_type == "HMA"
at_ma_graph_1:= hma(close, at_ma_len_1)
at_ma_graph_2:= hma(close, at_ma_len_2)
at_ma_graph_3:= hma(close, at_ma_len_3)
at_ma_graph_4:= hma(close, at_ma_len_4)
at_ma_graph_5:= hma(close, at_ma_len_5)
at_ma_graph_6:= hma(close, at_ma_len_6)
at_ma_graph_7:= hma(close, at_ma_len_7)

plot(at_ma_graph_2, title="Graph_2", color=color.orange, transp= at_show_ma_system ? 0 :


100)
plot(at_ma_graph_4, title="Graph_4", color=color.green, transp= at_show_ma_system ? 0 :
100)

plot(at_ma_graph_1, title="Graph_1", color=color.red, transp= at_show_ma_system ?


(at_ma_number=="双均线" ? 100 : 0) : 100)
plot(at_ma_graph_3, title="Graph_3", color=color.yellow, transp= at_show_ma_system ?
(at_ma_number=="双均线" ? 100 : 0) : 100)
plot(at_ma_graph_5, title="Graph_5", color=color.blue, transp= at_show_ma_system ?
(at_ma_number=="双均线" ? 100 : 0) : 100)
plot(at_ma_graph_6, title="Graph_6", color=color.purple, transp= at_show_ma_system ?
(at_ma_number=="双均线" ? 100 : 0) : 100)
plot(at_ma_graph_7, title="Graph_7", color=color.black, transp= at_show_ma_system ?
(at_ma_number=="双均线" ? 100 : 0) : 100)

// Alien Tomato bolliger band


at_bb_basis = sma(close, 20)
at_bb_dev = 2.0 * stdev(close, 20)
at_bb_upper = at_bb_basis + at_bb_dev
at_bb_lower = at_bb_basis - at_bb_dev
plot(at_bb_basis, "Basis", color=#872323, transp= at_show_bollingerband ? 0: 100)
at_bb_p1 = plot(at_bb_upper, "Upper", color=color.teal, transp= at_show_bollingerband ? 0:
100)
at_bb_p2 = plot(at_bb_lower, "Lower", color=color.teal, transp= at_show_bollingerband ? 0:
100)
fill(at_bb_p1, at_bb_p2, title = "Background", color=#198787, transp= at_show_bollingerband ?
95: 100)

// Alien Tomato GMMA


at_gmma_ema1 = ema(close, 3)
at_gmma_ema2 = ema(close, 5)
at_gmma_ema3 = ema(close, 8)
at_gmma_ema4 = ema(close, 10)
at_gmma_ema5 = ema(close, 12)
at_gmma_ema6 = ema(close, 15)
at_gmma_ema7 = ema(close, 30)
at_gmma_ema8 = ema(close, 35)
at_gmma_ema9 = ema(close, 40)
at_gmma_ema10 = ema(close, 45)
at_gmma_ema11 = ema(close, 50)
at_gmma_ema12 = ema(close, 60)

plot(at_gmma_ema1, color=color.green, title="s1", transp= at_show_gmma ? 0: 100) // s: short


plot(at_gmma_ema2, color=color.green, title="s2", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema3, color=color.green, title="s3", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema4, color=color.green, title="s4", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema5, color=color.green, title="s5", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema6, color=color.green, title="s6", transp= at_show_gmma ? 0: 100)

plot(at_gmma_ema7, color=color.red, title="l1", transp= at_show_gmma ? 0: 100) // l: long


plot(at_gmma_ema8, color=color.red, title="l2", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema9, color=color.red, title="l3", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema10, color=color.red, title="l4", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema11, color=color.red, title="l5", transp= at_show_gmma ? 0: 100)
plot(at_gmma_ema12, color=color.red, title="l6", transp= at_show_gmma ? 0: 100)
Moving Average 均线代码
//@version=4
study(title="Moving Average", shorttitle="MA", overlay=true, resolution="")
len = input(9, minval=1, title="Length")
src = input(close, title="Source")
offset = input(title="Offset", type=input.integer, defval=0, minval=-500, maxval=500)
out = sma(src, len)
plot(out, color=color.blue, title="MA", offset=offset)

Bollinger Bands 布林线代码

//@version=4
study(shorttitle="BB", title="Bollinger Bands", overlay=true, resolution="")
length = input(20, minval=1)
src = input(close, title="Source")
mult = input(2.0, minval=0.001, maxval=50, title="StdDev")
basis = sma(src, length)
dev = mult * stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input(0, "Offset", type = input.integer, minval = -500, maxval = 500)
plot(basis, "Basis", color=#872323, offset = offset)
p1 = plot(upper, "Upper", color=color.teal, offset = offset)
p2 = plot(lower, "Lower", color=color.teal, offset = offset)
fill(p1, p2, title = "Background", color=#198787, transp=95)

ATR 代码

//@version=4
study(title="Average True Range", shorttitle="ATR", overlay=false, resolution="")
plot(ema(tr(true), 21), title = "ATR", color=#991515, transp=0)

RSI 代码
//@version=4
study(title="Relative Strength Index", shorttitle="RSI", format=format.price, precision=2,
resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, "RSI", color=#8E1599)
band1 = hline(70, "Upper Band", color=#C0C0C0)
band0 = hline(30, "Lower Band", color=#C0C0C0)
fill(band1, band0, color=#9915FF, transp=90, title="Background")
Sample Tsla 交易记录代码
// © 异界番茄 🍅 https://ark.alien-tomato.com

🍅
// @version=4
study("TSLA 异界番茄 Script", overlay=true, max_labels_count=500)

label.new(timestamp(2020,12,29,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n24.87K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,12,28,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n33.11K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,12,24,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n16.70K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n71.12K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n66.69K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,21,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n52.46K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,18,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n38.81K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,17,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n27.29K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,16,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n28.33K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,15,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n16.58K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,14,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n35.70K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,11,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n40.53K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,10,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n48.37K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,09,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n43.83K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,08,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n47.01K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,07,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n45.24K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,04,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n35.33K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,03,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n16.00 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,02,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n25.75K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,12,01,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n18.08K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,11,30,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n80.46K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,11,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n9.473K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,25,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n4.666K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,24,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n31.80K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n47.05K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n7.185K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,19,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n169.5K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,11,18,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n31.68K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,17,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n11.57K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,16,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n10.60K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,13,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n31.54K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,12,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n38.37K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,11,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n16.63K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,10,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n1.115K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,11,09,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n59.41K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,06,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n13.77K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,05,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n40.58K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,04,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n16.40K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,11,03,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n194.9K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,11,02,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n3.561K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,30,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n1.344K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,10,29,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n14.24K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,28,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n6.092K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n572.0 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n6.393K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n9.810K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,21,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n4.561K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n23.02K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,19,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n3.645K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,10,15,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n26.39K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,09,24,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n77.50K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,09,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
\n164.4K 股",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,09,18,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n85.20K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,09,08,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,08,31,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,28,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,26,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,25,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,24,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,21,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n19.09K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n22.89K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,18,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n40.72K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,17,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n5.600K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,14,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n1.742K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,12,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n322.0 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,06,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n320.0 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,08,05,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
\n13.65K 股",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,17,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,16,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,15,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,14,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,13,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,10,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,09,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,08,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,07,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,06,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,07,01,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,30,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,25,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,16,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,15,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,11,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,06,05,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,15,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,13,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,12,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,08,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,07,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,05,06,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,04,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,04,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,04,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,04,21,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,04,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,03,18,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,03,17,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,03,16,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,03,13,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,02,28,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,02,27,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2020,02,21,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,02,19,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,02,14,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,02,04,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,02,03,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,31,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,30,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,29,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,13,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,10,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,08,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,07,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,06,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2020,01,02,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,30,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,23,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,20,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,12,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,11,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,12,04,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)
label.new(timestamp(2019,11,22,09,30),close,xloc=xloc.bar_time,yloc=yloc.belowbar,text="买
",style=label.style_labelup,color=color.green)
label.new(timestamp(2019,11,14,09,30),close,xloc=xloc.bar_time,yloc=yloc.abovebar,text="卖
",style=label.style_labeldown,color=color.red)

You might also like