期貨期權交流PlotPaintBar函數如何設定指標名稱?
作者:MC 來源:cxh99.com 發布時間:2016年07月27日
- 咨詢內容:
PlotPaintBar (BarHigh, BarLow, BarOpen, BarClose <,"PlotName"<,PlotColor <,Default <,LineWidth >>>>)
如題,假如我要畫K線,給四個參數分別命名為H,L,O,C,但是寫成PlotPaintBar(H,L,O,C,"H","L","O","C")、或是(H,"H",L,"L",O,"O",C,"C")都不對,請問要怎么寫?
- MC技術部:
范例
當K棒開盤價比前一根K棒開盤價低時,將K棒以紅色表示:
If Open<Open[1] Then
PlotPaintBar(High,Low,Open,Close,"",Red);
“ "里面的是命名