123456819 发表于 2023-11-27 23:15:26

【指标】单阳不破 (主图、 源码、辅助型指标)

<p data-first-child></p><p ><br/>单阳=close > open * 1.03 && vol > refBefore(vol,1) * 1.5;<br/>不破价=refBefore(low,barsFromPrevTrue(单阳));<br/>drawText(单阳,low - low * 0.02,"阳",color="#00ffff");<br/>ls0=barsFromPrevTrue(单阳);<br/>ls11=ifelse(1,ls0 == 1,单阳);<br/>ls21=ifelse(1,lowest(low,1) > refBefore(low,1),1);<br/>单阳不破=ls11 && ls21;<br/>drawStickBetweenIf(单阳不破,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破,不破价 - 不破价 * 0.02,"1",color="green");<br/>ls12=ifelse(2,ls0 == 2,单阳);<br/>ls22=ifelse(2,lowest(low,2) > refBefore(low,2),1);<br/>单阳不破2=ls12 && ls22;<br/>drawStickBetweenIf(单阳不破2,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破2,不破价 - 不破价 * 0.02,"2",color="green");<br/>ls13=ifelse(3,ls0 == 3,单阳);<br/>ls23=ifelse(3,lowest(low,3) > refBefore(low,3),1);<br/>单阳不破3=ls13 && ls23;<br/>drawStickBetweenIf(单阳不破3,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破3,不破价 - 不破价 * 0.02,"3",color="green");<br/>ls14=ifelse(4,ls0 == 4,单阳);<br/>ls24=ifelse(4,lowest(low,4) > refBefore(low,4),1);<br/>单阳不破4=ls14 && ls24;<br/>drawStickBetweenIf(单阳不破4,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破4,不破价 - 不破价 * 0.02,"4",color="green");<br/>ls15=ifelse(5,ls0 == 5,单阳);<br/>ls25=ifelse(5,lowest(low,5) > refBefore(low,5),1);<br/>单阳不破5=ls15 && ls25;<br/>drawStickBetweenIf(单阳不破5,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破5,不破价 - 不破价 * 0.02,"5",color="green");<br/>ls16=ifelse(6,ls0 == 6,单阳);<br/>ls26=ifelse(6,lowest(low,6) > refBefore(low,6),1);<br/>单阳不破6=ls16 && ls26;<br/>drawStickBetweenIf(单阳不破6,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破6,不破价 - 不破价 * 0.02,"6",color="green");<br/>ls17=ifelse(7,ls0 == 7,单阳);<br/>ls27=ifelse(7,lowest(low,7) > refBefore(low,7),1);<br/>单阳不破7=ls17 && ls27;<br/>drawStickBetweenIf(单阳不破7,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破7,不破价 - 不破价 * 0.02,"7",color="green");<br/>ls18=ifelse(8,ls0 == 8,单阳);<br/>ls28=ifelse(8,lowest(low,8) > refBefore(low,8),1);<br/>单阳不破8=ls18 && ls28;<br/>drawStickBetweenIf(单阳不破8,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破8,不破价 - 不破价 * 0.02,"8",color="green");<br/>ls19=ifelse(9,ls0 == 9,单阳);<br/>ls29=ifelse(9,lowest(low,9) > refBefore(low,9),1);<br/>单阳不破9=ls19 && ls29;<br/>drawStickBetweenIf(单阳不破9,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破9,不破价 - 不破价 * 0.02,"9",color="green");<br/>ls110=ifelse(10,ls0 == 10,单阳);<br/>ls210=ifelse(10,lowest(low,10) > refBefore(low,10),1);<br/>单阳不破10=ls110 && ls210;<br/>drawStickBetweenIf(单阳不破10,不破价 - 不破价 * 0.002,不破价,color="red",fill=true,linewidth=4);<br/>drawText(单阳不破10,不破价 - 不破价 * 0.02,"10",color="green");</p><p></p>

123459385 发表于 2023-12-9 12:41:50

我都想要,怎么办?

龙大师2009 发表于 2024-2-15 04:58:45

感谢感谢!楼主功德无量,哈哈!
页: [1]
查看完整版本: 【指标】单阳不破 (主图、 源码、辅助型指标)