找回密碼
 註冊
搜索
查看: 4097|回復: 3

請問一個成交量的寫法

[複製鏈接]
發表於 18-8-29 22:24 來自手機 | 顯示全部樓層 |閱讀模式
想請問各位先進,成交量若已今量大於昨量為紅,今量小於昨量為黑,該怎麼寫呢?
煩請各位先進指導一下感謝。
發表於 18-8-30 19:16 | 顯示全部樓層
Vars:myVol(0);
If datacompression > 1 then myVol= Volume else MyVol = Ticks;

Plot1(myVol,”volume”,iff(myVol >= myVol[1],Red,Black));

參考看看
回復

使用道具 舉報

 樓主| 發表於 19-6-23 15:53 | 顯示全部樓層
easytrader788 發表於 18-8-30 19:16
Vars:myVol(0);
If datacompression > 1 then myVol= Volume else MyVol = Ticks;

------ 編譯時產生錯誤: ------
unrecognized token: ?

errLine 4, errColumn 12, errLineEnd 4, errColumnEnd 12
編譯錯誤:  (函數)



編譯時出現上述

回復

使用道具 舉報

 樓主| 發表於 19-6-23 15:56 | 顯示全部樓層
我嘗試著寫一段
但是編譯卻一直出現錯誤
還請先進指導一下
if Volume[0]<Volume[1] then

      SetPlotColor (1, RGB (0,150,0));

if Volume[0]>Volume[1] then

      SetPlotColor (1, RGB (200,0,0));
      
if BarType >= 2 then

Plot1( Volume, "Volume" , iff(Volume<Volume[1], RGB (0,150,0), RGB (200,0,0)))

else

Plot1( Ticks, "Volume" , iff(Ticks<Ticks[1], RGB (0,150,0), RGB (200,0,0))) ;
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|站長信箱|廣告洽詢|COCO研究院

GMT+8, 25-9-9 12:42

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表