文学城论坛
+A-

明天特斯拉会发布fsd v14,这会导致TA完全没有用啊,哈哈,这是对应的tradeview 的代码

BrightLine 2025-10-05 18:42:55 ( reads)
//@version=5 indicator(" TradingView (AA/BB/CC/DD)", overlay=true)   // EMA lengths (same as your code) len1 = 5 len2 = 10 len3 = 20   // EMAs ema5 = ta.ema(close, len1) ema10 = ta.ema(close, len2) ema20 = ta.ema(close, len3)   // Conditions (mapping CROSS(a,b) -> ta.crossover(a,b) meaning a crosses above b) // AA: price crosses above EMA5, EMA10 and EMA20 (all three cross-ups same bar) AA = ta.crossover(close, ema5) and ta.crossover(close, ema10) and ta.crossover(close, ema20)   // BB: EMA5 and EMA10 cross above price (both EMAs cross up through price) BB = ta.crossover(ema5, close) and ta.crossover(ema10, close)   // CC: price crosses above EMA5 and EMA10 CC = ta.crossover(close, ema5) and ta.crossover(close, ema10)   // DD: EMA5, EMA10 and EMA20 cross above price (all three EMAs cross up through price) DD = ta.crossover(ema5, close) and ta.crossover(ema10, close) and ta.crossover(ema20, close)   // Plot EMAs (optional, you can hide them) plot(ema5, title="EMA 5", linewidth=1) plot(ema10, title="EMA 10", linewidth=1) plot(ema20, title="EMA 20", linewidth=1)   // Visual signals: use shapes for sticklines and labels for the '3' drawtext plotshape(AA, title="AA (green up)", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green) plotshape(BB, title="BB (red down)", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red) plotshape(CC, title="CC (green small)",location=location.belowbar, style=shape.circle, size=size.tiny, color=color.green) plotshape(DD, title="DD (red small)", location=location.abovebar, style=shape.xcross, size=size.tiny, color=color.red)   // DRAWTEXT equivalents: put a '3' label (AA green above bar; DD red above bar like original) if AA     label.new(bar_index, high * 1.02, text="3", style=label.style_label_up, color=color.new(color.green, 0), textcolor=color.white) if DD     label.new(bar_index, high * 1.02, text="3", style=label.style_label_down, color=color.new(color.red, 0), textcolor=color.white)

跟帖(11)

西糖胡同

2025-10-05 19:09:06

晕了!哈哈 我们编程群有TV等好几个小群,互不通气。都玩转了花时间做类似的事情。

MarkM76

2025-10-05 19:09:47

有时候运气真是很重要。

BrightLine

2025-10-05 19:13:25

对,还是不要bet against 老马,逢低就买,流动仓可以逢高就卖,哈哈

西糖胡同

2025-10-05 19:45:14

你干嘛辞了班主?当班主多神气啊,拿把锤子想砸什么都行!

BrightLine

2025-10-05 19:47:13

无官一身轻,不用以权谋私,哈哈

dancingpig

2025-10-05 19:49:51

我认为这其中有误会

BrightLine

2025-10-05 19:51:58

无所谓了,本就不是事,哈哈,move on,有时间就来

西糖胡同

2025-10-05 19:50:27

对股市的疯狂皇帝老儿都得拉裤兜子,鬼知道明天怎么走?三心厉害,也经常出错。

BrightLine

2025-10-05 19:53:34

没人能够预料明天,哈哈,所以我就是觉得低了就买,觉得高了就卖一点

任静锅-

2025-10-05 20:46:32

不知你哪儿来的印象 - 我没见三心”经常“预测短期走势啊! 何来“经常出错”之说 ?!

西糖胡同

2025-10-06 05:21:19

我是经常看他画的趋势走向预测,是根据波浪理论画的,结果经常大相径庭。谁都不是神,是人就会错。