DRAW:单阳不破 (主图、 源码、辅助型指标)_OLO

???

?????????????????

??????????????????

单阳=close?>?open?*?1.03?&&?vol?>?refBefore(vol,1)?*?1.5;

不破价=refBefore(low,barsFromPrevTrue(单阳));

drawText(单阳,low?-?low?*?0.02,"阳",color="#00ffff");

ls0=barsFromPrevTrue(单阳);

ls11=ifelse(1,ls0?==?1,单阳);

ls21=ifelse(1,lowest(low,1)?>?refBefore(low,1),1);

单阳不破=ls11?&&?ls21;

drawStickBetweenIf(单阳不破,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破,不破价?-?不破价?*?0.02,"1",color="green");

ls12=ifelse(2,ls0?==?2,单阳);

ls22=ifelse(2,lowest(low,2)?>?refBefore(low,2),1);

单阳不破2=ls12?&&?ls22;

drawStickBetweenIf(单阳不破2,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破2,不破价?-?不破价?*?0.02,"2",color="green");

ls13=ifelse(3,ls0?==?3,单阳);

ls23=ifelse(3,lowest(low,3)?>?refBefore(low,3),1);

单阳不破3=ls13?&&?ls23;

drawStickBetweenIf(单阳不破3,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破3,不破价?-?不破价?*?0.02,"3",color="green");

ls14=ifelse(4,ls0?==?4,单阳);

ls24=ifelse(4,lowest(low,4)?>?refBefore(low,4),1);

单阳不破4=ls14?&&?ls24;

drawStickBetweenIf(单阳不破4,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破4,不破价?-?不破价?*?0.02,"4",color="green");

ls15=ifelse(5,ls0?==?5,单阳);

ls25=ifelse(5,lowest(low,5)?>?refBefore(low,5),1);

单阳不破5=ls15?&&?ls25;

drawStickBetweenIf(单阳不破5,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破5,不破价?-?不破价?*?0.02,"5",color="green");

ls16=ifelse(6,ls0?==?6,单阳);

ls26=ifelse(6,lowest(low,6)?>?refBefore(low,6),1);

单阳不破6=ls16?&&?ls26;

drawStickBetweenIf(单阳不破6,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破6,不破价?-?不破价?*?0.02,"6",color="green");

ls17=ifelse(7,ls0?==?7,单阳);

ls27=ifelse(7,lowest(low,7)?>?refBefore(low,7),1);

单阳不破7=ls17?&&?ls27;

drawStickBetweenIf(单阳不破7,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破7,不破价?-?不破价?*?0.02,"7",color="green");

ls18=ifelse(8,ls0?==?8,单阳);

ls28=ifelse(8,lowest(low,8)?>?refBefore(low,8),1);

单阳不破8=ls18?&&?ls28;

drawStickBetweenIf(单阳不破8,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破8,不破价?-?不破价?*?0.02,"8",color="green");

ls19=ifelse(9,ls0?==?9,单阳);

ls29=ifelse(9,lowest(low,9)?>?refBefore(low,9),1);

单阳不破9=ls19?&&?ls29;

drawStickBetweenIf(单阳不破9,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破9,不破价?-?不破价?*?0.02,"9",color="green");

ls110=ifelse(10,ls0?==?10,单阳);

ls210=ifelse(10,lowest(low,10)?>?refBefore(low,10),1);

单阳不破10=ls110?&&?ls210;

drawStickBetweenIf(单阳不破10,不破价?-?不破价?*?0.002,不破价,color="red",fill=true,linewidth=4);

drawText(单阳不破10,不破价?-?不破价?*?0.02,"10",color="green");

????????????????????????

来源:金色财经

郑重声明: 本文版权归原作者所有, 转载文章仅为传播更多信息之目的, 如作者信息标记有误, 请第一时间联系我们修改或删除, 多谢。

大币网

[0:0ms0-4:630ms