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

本帖于 2025-10-05 18:52:07 时间, 由普通用户 BrightLine 编辑
回答: TA基础知识:一阳穿三线西糖胡同2025-10-05 15:54:21
//@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)

所有跟帖: 

晕了!哈哈 我们编程群有TV等好几个小群,互不通气。都玩转了花时间做类似的事情。 -西糖胡同- 给 西糖胡同 发送悄悄话 西糖胡同 的博客首页 (225 bytes) () 10/05/2025 postreply 19:09:06

有时候运气真是很重要。 -MarkM76- 给 MarkM76 发送悄悄话 (0 bytes) () 10/05/2025 postreply 19:09:47

对,还是不要bet against 老马,逢低就买,流动仓可以逢高就卖,哈哈 -BrightLine- 给 BrightLine 发送悄悄话 BrightLine 的博客首页 (0 bytes) () 10/05/2025 postreply 19:13:25

你干嘛辞了班主?当班主多神气啊,拿把锤子想砸什么都行! -西糖胡同- 给 西糖胡同 发送悄悄话 西糖胡同 的博客首页 (167 bytes) () 10/05/2025 postreply 19:45:14

无官一身轻,不用以权谋私,哈哈 -BrightLine- 给 BrightLine 发送悄悄话 BrightLine 的博客首页 (167 bytes) () 10/05/2025 postreply 19:47:13

我认为这其中有误会 -dancingpig- 给 dancingpig 发送悄悄话 (0 bytes) () 10/05/2025 postreply 19:49:51

无所谓了,本就不是事,哈哈,move on,有时间就来 -BrightLine- 给 BrightLine 发送悄悄话 BrightLine 的博客首页 (0 bytes) () 10/05/2025 postreply 19:51:58

对股市的疯狂皇帝老儿都得拉裤兜子,鬼知道明天怎么走?三心厉害,也经常出错。 -西糖胡同- 给 西糖胡同 发送悄悄话 西糖胡同 的博客首页 (221 bytes) () 10/05/2025 postreply 19:50:27

没人能够预料明天,哈哈,所以我就是觉得低了就买,觉得高了就卖一点 -BrightLine- 给 BrightLine 发送悄悄话 BrightLine 的博客首页 (0 bytes) () 10/05/2025 postreply 19:53:34

不知你哪儿来的印象 - 我没见三心”经常“预测短期走势啊! 何来“经常出错”之说 ?! -任静锅-- 给 任静锅- 发送悄悄话 任静锅- 的博客首页 (0 bytes) () 10/05/2025 postreply 20:46:32

我是经常看他画的趋势走向预测,是根据波浪理论画的,结果经常大相径庭。谁都不是神,是人就会错。 -西糖胡同- 给 西糖胡同 发送悄悄话 西糖胡同 的博客首页 (0 bytes) () 10/06/2025 postreply 05:21:19

请您先登陆,再发跟帖!