COCO研究院

 找回密碼
 註冊
搜索
查看: 3433|回復: 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, 24-4-30 07:01

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 | AI繪圖AI超擬真美女AI beauty AI Stable DiffusionAI正妹AI Lookbook