玥希 发表于 2023-11-1 19:25:21

火焰山顶底副图公式

<br><table cellspacing="0" cellpadding="0" style="table-layout: fixed; width: 1088px;"><tbody><tr><td class="t_f" id="postmessage_63445" style="padding: 0px; line-height: 1.1rem;"><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);">火焰山指标是一种用于衡量市场价格波动性的技术指标。它以火焰山为比喻,表示市场价格上涨和下跌的剧烈程度。</p><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);">火焰山指标的具体用法如下:</p><ol style="box-sizing: border-box; padding-left: 32px; -webkit-font-smoothing: antialiased; list-style-position: outside; list-style-image: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; margin-bottom: 1em; font-size: 15px; line-height: 1.75; background-color: rgb(253, 253, 254);"><li style="color: rgb(5, 7, 59); box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: inherit; font-family: PingFang-SC-Regular; margin-left: 0px; line-height: 1.75; position: relative;">选择一个时间周期,通常是10或20个交易日。</li><li style="color: rgb(5, 7, 59); box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: inherit; font-family: PingFang-SC-Regular; margin-top: 6px; margin-left: 0px; line-height: 1.75; position: relative;">计算每个交易日的价格变动,即当日收盘价减去前一交易日的收盘价。</li><li style="color: rgb(5, 7, 59); box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: inherit; font-family: PingFang-SC-Regular; margin-top: 6px; margin-left: 0px; line-height: 1.75; position: relative;">计算这些价格变动的绝对值之和,并除以时间周期,得到平均价格变动。</li><li style="color: rgb(5, 7, 59); box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: inherit; font-family: PingFang-SC-Regular; margin-top: 6px; margin-left: 0px; line-height: 1.75; position: relative;">将平均价格变动除以当日收盘价,乘以100,即可得到火焰山指标的值。</li><li style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: inherit; font-family: PingFang-SC-Regular; margin-top: 6px; margin-left: 0px; line-height: 1.75; position: relative;"><font color="#ff0000">顶计算值大于100,底计算值小于-100,参考率更好哟</font></li></ol><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);">通过观察火焰山指标的变化,可以了解市场价格的波动情况。当火焰山指标的值较高时,表示市场价格上涨或下跌的剧烈程度较高,此时市场可能存在较大的波动性。因此,投资者可以根据火焰山指标的变化来制定相应的投资策略,以降低市场波动带来的风险。</p><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);">需要注意的是,火焰山指标是一种辅助性工具,不能单独作为投资决策的依据。在应用火焰山指标时,应结合其他技术指标和市场信息进行综合分析。同时,火焰山指标的计算方法和定义可能因不同的投资软件或平台而有所差异,因此投资者在使用时应根据具体的软件或平台进行操作。</p><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);"></p><p class="" style="box-sizing: border-box; -webkit-font-smoothing: antialiased; list-style: none; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Ubuntu, &quot;Helvetica Neue&quot;, Helvetica, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, &quot;Source Han Sans CN&quot;, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; margin-top: 14px; font-size: 15px; line-height: 1.75; color: rgb(5, 7, 59); background-color: rgb(253, 253, 254);"><br></p><br>优化后的代码如下:<br><br>VAR1:=EMA(HHV(HIGH,500),21);&nbsp;&nbsp;<br>VAR2:=EMA(HHV(HIGH,250),21);&nbsp;&nbsp;<br>VAR3:=EMA(HHV(HIGH,90),21);&nbsp;&nbsp;<br>VAR4:=EMA(LLV(LOW,500),21);&nbsp;&nbsp;<br>VAR5:=EMA(LLV(LOW,250),21);&nbsp;&nbsp;<br>VAR6:=EMA(LLV(LOW,90),21);&nbsp;&nbsp;<br>VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);&nbsp;&nbsp;<br>VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);&nbsp;&nbsp;<br>VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);&nbsp;&nbsp;<br>VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);&nbsp;&nbsp;<br>VARB:=REF(LOW,1);&nbsp;&nbsp;<br>VARC:=SMA(ABS(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;&nbsp;&nbsp;<br>VARD:=EMA(IF(CLOSE*1.35&lt;=VARA,VARC*10,VARC/10),3);&nbsp;&nbsp;<br>VARE:=LLV(LOW,30);&nbsp;&nbsp;<br>VARF:=HHV(VARD,30);&nbsp;&nbsp;<br>VAR10:=IF(MA(CLOSE,58),1,0);&nbsp;&nbsp;<br>火焰山底:EMA(IF(LOW&lt;=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10,,COLORYELLOW,LINETHICK3;&nbsp;&nbsp;<br>今量:=火焰山底;&nbsp;&nbsp;<br>STICKLINE(火焰山底&gt;0 AND 火焰山底&gt;REF(火焰山底,1),0 ,今量*1.2,3,0 ),COLOR00EEFF;&nbsp;&nbsp;<br>STICKLINE(火焰山底&gt;0 AND 火焰山底&gt;REF(火焰山底,1),0 ,今量*0.8,3,0 ),COLOR00BBFF;&nbsp;&nbsp;<br>STICKLINE(火焰山底&gt;0 AND 火焰山底&gt;REF(火焰山底,1),0 ,今量*0.6,3,0 ),COLOR0099FF;&nbsp;&nbsp;<br>STICKLINE(火焰山底&gt;0 AND 火焰山底&gt;REF(火焰山底,1),0 ,今量*0.4,3,0 ),COLOR0066FF;&nbsp;&nbsp;<br>STICKLINE(火焰山底&gt;0 AND 火焰山底&gt;REF(火焰山底,1),0 ,今量*0.2,3,0 ),COLOR0000FF;&nbsp;&nbsp;<br>VARG:=HHV(HIGH,30);&nbsp;&nbsp;<br>火焰山顶:EMA(IF(HIGH&gt;=VARG,-(VARD+VARF*2)/2,0),3)/618*VAR10,COLORCYAN,LINETHICK3;&nbsp;&nbsp;<br>STICKLINE(火焰山顶&lt;REF(火焰山顶,1) AND 火焰山顶&lt;0,0 ,火焰山顶,3,0),COLORCYAN;</td></tr></tbody></table><ref(火焰山顶,1) and="" 火焰山顶<0,0="" ,火焰山顶,3,0),colorcyan;="" <="" body=""></ref(火焰山顶,1)>

zhang 发表于 2023-12-28 16:16:05

五星好评
页: [1]
查看完整版本: 火焰山顶底副图公式