進場日前一日的收市價語法
想要進場日前一日的收市價,應該怎樣做?Vars:MP(0),PreDayClose(0);
MP=MarketPosition;
If MP<>MP and MP<>0 then PreDayClose = CloseD(1) ;
未進場 前一日收盤價 => CloseD(1)
已進場 前一日收盤價 =>進場時,存下來
人手存嗎???????? easytrader788 發表於 20-4-25 17:28
Vars:MP(0),PreDayClose(0);
MP=MarketPosition;
If MPMP and MP0 then PreDayClose = CloseD(1) ;
改成這樣可以嗎 :
Vars:var1(0),var2(0);
var1=MarketPosition;
If var1<>var1 and var1<>0 then var2 = CloseD(1) ;
頁:
[1]