請(qǐng)教語(yǔ)法問(wèn)題 [MultiCharts MC]
- 咨詢(xún)內(nèi)容:
inputs:value1(buy), value2(l[1]);
vars:value1,value2
value1=buy or sellshort;
value2=l[1] or h[1];if o>value2 then value1 next bar at value2 stop;
end;
setexitonclose;1.我想把buy和sell作成參數(shù)
2.我想value2的高低點(diǎn)作成參數(shù)
拿來(lái)跑2*2最佳化 請(qǐng)問(wèn)這語(yǔ)法哪里錯(cuò)了,感謝
- MC技術(shù)部:
end 前的 begin 在那里?
value1 及 value2 是數(shù)字變數(shù)不是邏輯變數(shù)
買(mǎi)賣(mài)指令不能變數(shù)化 .... 錯(cuò)誤寫(xiě)不完
程式碼完全不合語(yǔ)法
直接改寫(xiě)如下,自已修正大於小於處
inputs: pMode(1), pPriceMode(1);
if pPriceMode=1 then begin
value1 = L[1];
condition1 = O<L[1];
end else begin
value1 = H[1];
condition1 = O>H[1];
end;if pMode = 1 then begin
if condition1 then buy next bar value1 stop;
end else begin
if condition1 then buy next bar value1 stop;
end;setexitonclose;
第2篇 - MC技術(shù)部:
thx for ur answer!!!!
make a big help to me
第3篇 - MC技術(shù)部:
inputs: pMode(1), pPriceMode(1);
if pPriceMode=1 then begin
value1 = L[1];
condition1 = O<L[1];
end else begin
value1 = H[1];
condition1 = O>H[1];
end;if pMode = 1 then begin
if condition1 then buy next bar value1 stop;
end else begin
if condition1 then buy next bar value1 stop;
end;setexitonclose;
1,請(qǐng)問(wèn)您的意思,邏輯變數(shù)是用else區(qū)分h[1]和l[1]的?
2.可以請(qǐng)教參數(shù)中的1,1代表昨天這樣嗎?
第4篇 - MC技術(shù)部:
1. 你可能要先弄懂 邏輯變數(shù)的義意,這是程式的基礎(chǔ)
2. [1] 表示的是前一跟K棒,不一定是昨天,在日線(xiàn)而言你是對(duì)的,在分線(xiàn)或其他線(xiàn)來(lái)說(shuō),你是錯(cuò)的
第5篇 - MC技術(shù)部:
謝謝 我好好研究基礎(chǔ)
count = 0; 當(dāng)沖一定要有這個(gè)當(dāng)開(kāi)頭嗎? 謝謝!!
第6篇 - MC技術(shù)部:
令請(qǐng)教這跳空訊號(hào):
input:aa(0);
vars:value1(0);
value1=h[1]+aa;
if open>value1
then buy next bar at value stop;
end;
setexitonclose;
這問(wèn)題在哪里?謝謝!
<==這問(wèn)題,只有施主您知道...XD
此位施主,您都不知問(wèn)題在那了,我呀知..
您的問(wèn)題是?它跑不出來(lái)?編譯不成功?還是???
另外
if date[0] <> date[1] then begin
count = 0; 這一段是用來(lái),某些變數(shù)你想換日重置時(shí)用的! 例如你的count可能昨日數(shù)值已經(jīng)是3.. 而今日要重新開(kāi)始計(jì)算,則換日後count就是從0開(kāi)始..^^
第7篇 - MC技術(shù)部:
thx
編輯不出來(lái)
他說(shuō)問(wèn)題出在離開(kāi)那里咧
我發(fā)現(xiàn)是少begin
但begin不是用在2行以上的程式碼嗎
語(yǔ)法里面的第二行是?
編輯文章 by 12331 2012-03-09 11:28:14 - MC客服:
thx for ur answer!!!!
make a big help to me
第3篇 - MC客服:
inputs: pMode(1), pPriceMode(1);
if pPriceMode=1 then begin
value1 = L[1];
condition1 = O<L[1];
end else begin
value1 = H[1];
condition1 = O>H[1];
end;if pMode = 1 then begin
if condition1 then buy next bar value1 stop;
end else begin
if condition1 then buy next bar value1 stop;
end;setexitonclose;
1,請(qǐng)問(wèn)您的意思,邏輯變數(shù)是用else區(qū)分h[1]和l[1]的?
2.可以請(qǐng)教參數(shù)中的1,1代表昨天這樣嗎?
第4篇 - MC客服:
1. 你可能要先弄懂 邏輯變數(shù)的義意,這是程式的基礎(chǔ)
2. [1] 表示的是前一跟K棒,不一定是昨天,在日線(xiàn)而言你是對(duì)的,在分線(xiàn)或其他線(xiàn)來(lái)說(shuō),你是錯(cuò)的
第5篇 - MC客服:
謝謝 我好好研究基礎(chǔ)
count = 0; 當(dāng)沖一定要有這個(gè)當(dāng)開(kāi)頭嗎? 謝謝!!
第6篇 - MC客服:
令請(qǐng)教這跳空訊號(hào):
input:aa(0);
vars:value1(0);
value1=h[1]+aa;
if open>value1
then buy next bar at value stop;
end;
setexitonclose;
這問(wèn)題在哪里?謝謝!
<==這問(wèn)題,只有施主您知道...XD
此位施主,您都不知問(wèn)題在那了,我呀知..
您的問(wèn)題是?它跑不出來(lái)?編譯不成功?還是???
另外
if date[0] <> date[1] then begin
count = 0; 這一段是用來(lái),某些變數(shù)你想換日重置時(shí)用的! 例如你的count可能昨日數(shù)值已經(jīng)是3.. 而今日要重新開(kāi)始計(jì)算,則換日後count就是從0開(kāi)始..^^
第7篇 - MC客服:
thx
編輯不出來(lái)
他說(shuō)問(wèn)題出在離開(kāi)那里咧
我發(fā)現(xiàn)是少begin
但begin不是用在2行以上的程式碼嗎
語(yǔ)法里面的第二行是?
編輯文章 by 12331 2012-03-09 11:28:14 - MC客服:
inputs: pMode(1), pPriceMode(1);
if pPriceMode=1 then begin
value1 = L[1];
condition1 = O<L[1];
end else begin
value1 = H[1];
condition1 = O>H[1];
end;if pMode = 1 then begin
if condition1 then buy next bar value1 stop;
end else begin
if condition1 then buy next bar value1 stop;
end;setexitonclose;
1,請(qǐng)問(wèn)您的意思,邏輯變數(shù)是用else區(qū)分h[1]和l[1]的?
2.可以請(qǐng)教參數(shù)中的1,1代表昨天這樣嗎?
第4篇 - MC客服:
1. 你可能要先弄懂 邏輯變數(shù)的義意,這是程式的基礎(chǔ)
2. [1] 表示的是前一跟K棒,不一定是昨天,在日線(xiàn)而言你是對(duì)的,在分線(xiàn)或其他線(xiàn)來(lái)說(shuō),你是錯(cuò)的
第5篇 - MC客服:
謝謝 我好好研究基礎(chǔ)
count = 0; 當(dāng)沖一定要有這個(gè)當(dāng)開(kāi)頭嗎? 謝謝!!
第6篇 - MC客服:
令請(qǐng)教這跳空訊號(hào):
input:aa(0);
vars:value1(0);
value1=h[1]+aa;
if open>value1
then buy next bar at value stop;
end;
setexitonclose;
這問(wèn)題在哪里?謝謝!
<==這問(wèn)題,只有施主您知道...XD
此位施主,您都不知問(wèn)題在那了,我呀知..
您的問(wèn)題是?它跑不出來(lái)?編譯不成功?還是???
另外
if date[0] <> date[1] then begin
count = 0; 這一段是用來(lái),某些變數(shù)你想換日重置時(shí)用的! 例如你的count可能昨日數(shù)值已經(jīng)是3.. 而今日要重新開(kāi)始計(jì)算,則換日後count就是從0開(kāi)始..^^
第7篇 - MC客服:
thx
編輯不出來(lái)
他說(shuō)問(wèn)題出在離開(kāi)那里咧
我發(fā)現(xiàn)是少begin
但begin不是用在2行以上的程式碼嗎
語(yǔ)法里面的第二行是?
編輯文章 by 12331 2012-03-09 11:28:14 - MC客服:
1. 你可能要先弄懂 邏輯變數(shù)的義意,這是程式的基礎(chǔ)
2. [1] 表示的是前一跟K棒,不一定是昨天,在日線(xiàn)而言你是對(duì)的,在分線(xiàn)或其他線(xiàn)來(lái)說(shuō),你是錯(cuò)的
第5篇 - MC客服:
謝謝 我好好研究基礎(chǔ)
count = 0; 當(dāng)沖一定要有這個(gè)當(dāng)開(kāi)頭嗎? 謝謝!!第6篇 - MC客服: 令請(qǐng)教這跳空訊號(hào): input:aa(0); vars:value1(0); value1=h[1]+aa; if open>value1 then buy next bar at value stop; end; setexitonclose; 這問(wèn)題在哪里?謝謝! <==這問(wèn)題,只有施主您知道...XD 此位施主,您都不知問(wèn)題在那了,我呀知.. 您的問(wèn)題是?它跑不出來(lái)?編譯不成功?還是??? 另外 if date[0] <> date[1] then begin
count = 0; 這一段是用來(lái),某些變數(shù)你想換日重置時(shí)用的! 例如你的count可能昨日數(shù)值已經(jīng)是3.. 而今日要重新開(kāi)始計(jì)算,則換日後count就是從0開(kāi)始..^^第7篇 - MC客服:
thx
編輯不出來(lái)
他說(shuō)問(wèn)題出在離開(kāi)那里咧
我發(fā)現(xiàn)是少begin
但begin不是用在2行以上的程式碼嗎
語(yǔ)法里面的第二行是?
編輯文章 by 12331 2012-03-09 11:28:14
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容
- MC客服: