請老師幫我編寫一個程序 [金字塔]
- 咨詢內(nèi)容:
我想編寫一個股票交易模型
N:=INTPART((7-C)/0.05);T=((7-C)/0.05;
買入條件:T=N,并且現(xiàn)在的價格低于上次買入的價格,買入量為10*N;
賣出條件:價格等于1.
大概是這么個意思,請老師給我?guī)蛶兔?/p>
- 金字塔客服:
INTPART
這個函數(shù)什么意思?
- 用戶回復(fù):
老師,這個是取整函數(shù)啊
- 網(wǎng)友回復(fù):
因為我對金字塔的編寫結(jié)構(gòu)不是很熟悉,所以還多多麻煩老師了
- 網(wǎng)友回復(fù):
n:=round((7-c)/0.05);
T:=(7-C)/0.05;variable:m=0;
if holding=0 and t=n and m=0 then begin
buy(1,10*n,market);
m:=1;
endif holding=0 and m=1 and t=0 and c<enterprice then buy(1,10*n,market);
if h>=1 and l<=1 then sell(1,0,market);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容