COCO研究院

 找回密碼
 註冊
搜索
查看: 2773|回復: 0

[範例程式碼] 求助Amibroker程式高手...

[複製鏈接]
發表於 12-1-19 22:45 | 顯示全部樓層 |閱讀模式
請問有高手可以把以下程式碼轉為Amibroker afl嗎?感激不進...

Inputs:VL(20);
vars: intrabarpersist TUVol(0), intrabarpersist TDVol(0),
         intrabarpersist TUpTicks(0), intrabarpersist TDownTicks(0),
         intrabarpersist TPreTime_s(0), intrabarpersist TTime_s(0),
         TColor(0);

if LastBarOnChart_s then begin


        TPreTime_s = TTime_s;
        TTime_s = BarNumber;



if TPreTime_s <>TTime_s then begin
                TUVol = 0;
                TDVol = 0;

end;
//==============================


if UpTicks-TUpTicks  >= VL then TUVol =TUVol+ UpTicks-TUpTicks ;

if DownTicks-TDownTicks >= VL then TDVol =TDVol +DownTicks-TDownTicks ;

if TUVol>TDVol then TColor = red else TColor = green;
        TUpTicks = UpTicks;
        TDownTicks = DownTicks;
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

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

GMT+8, 24-4-27 18:07

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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