老师帮忙写两种柱线 (文华财经wh9)

投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 1或N根连阳线形成一个向上柱子
 1或N根连阴线形成一个向下柱子
技术人员回复
日期:2020-7-30 19:04
参考;


Vars
Numeric DD;
Numeric KK;

Begin

DrawLine3(CrossDown(ISUP,0.5),Ref(HHV(High,BarsLastCount(isup)),1) ,1,1,Ref(LLV(low,BarsLastCount(isup)),1),1,0,Red  );
DrawLine3(CrossDown(ISUP,0.5),Ref(HHV(High,BarsLastCount(isup)),1) ,1,1,Ref(HHV(High,BarsLastCount(isup)),1),Ref(BarsLastCount(isup),1),0,Red  );

DrawLine3(CrossDown(ISUP,0.5),Ref(LLV(low,BarsLastCount(isup)),1) ,1,1,Ref(LLV(low,BarsLastCount(isup)),1),Ref(BarsLastCount(isup),1),0,Red  );
DrawLine3(CrossDown(ISUP,0.5),Ref(HHV(High,BarsLastCount(isup)),1) ,Ref(BarsLastCount(isup),1),1,Ref(LLV(low,BarsLastCount(isup)),1),Ref(BarsLastCount(isup),1),0,Red  );

DrawLine3(CrossDown(IsDown,0.5),Ref(HHV(High,BarsLastCount(IsDown)),1) ,1,1,Ref(LLV(low,BarsLastCount(IsDown)),1),1,0,Green  );
DrawLine3(CrossDown(IsDown,0.5),Ref(HHV(High,BarsLastCount(IsDown)),1) ,1,1,Ref(HHV(High,BarsLastCount(IsDown)),1),Ref(BarsLastCount(IsDown),1),0,Green  );

DrawLine3(CrossDown(IsDown,0.5),Ref(LLV(low,BarsLastCount(IsDown)),1) ,1,1,Ref(LLV(low,BarsLastCount(IsDown)),1),Ref(BarsLastCount(IsDown),1),0,Green  );
DrawLine3(CrossDown(IsDown,0.5),Ref(HHV(High,BarsLastCount(IsDown)),1) ,Ref(BarsLastCount(IsDown),1),1,Ref(LLV(low,BarsLastCount(IsDown)),1),Ref(BarsLastCount(IsDown),1),0,Green  );




End
投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 加载到附图后都被压扁了

图片点击可在新窗口打开查看
技术人员回复
日期:2020-7-30 19:43
这个是按照k线高度画框的   鼠标点击k线图 然后加载至k线上 
投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 想画到附图里面,好对比高低用的
技术人员回复
日期:2020-7-30 20:06
 副图也不影响呀 如图  

您是不是还加入了 一些数值较小的显示项目 导致压缩了 


图片点击可在新窗口打开查看


投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 10秒周期里就被压缩了,日线附图没问题

想把它改成和MACD那种柱线一样
投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 如果是连阳或连阴,在最后一根阳或阴,K位置标注一根柱子就可以
技术人员回复
日期:2020-7-30 20:53
 参考:



Begin


DrawLine3(CrossDown(Every(IsUp,2),0.5),0 ,1,CrossDown(Every(IsUp,2),0.5),10,1,0,Red  );
DrawLine3(CrossDown(Every(IsDown,2),0.5),0 ,1,CrossDown(Every(IsDown,2),0.5),10,1,0,Green  );



End
投资者咨询:老师帮忙写两种柱线 (文华财经wh9)
来源:文华财经  日期:2020-7-30 19:01
 加载后都是整齐划一的红绿竖线


图片点击可在新窗口打开查看