討論區列表
群益MultiCharts
一般模式
討論串模式
標題:
[發表] 固定委託股數(口)改變,進出場點位及訊號也全都改變!!!
by 2016-07-20 01:15:40
0
暱稱:
張小V
信箱:不顯示
成就:發文(0) / 回文(0) / 推薦(0)
您好:
就是當我在[策略屬性]裡,改變[固定委託股數]時,卻發現填入1或2或3...,其訊號出現的時間、點位...等,會出現完全不一樣的結果。
variables:
BuyNo(0),SellNo(0),
Loss(100),
FixProfit(431),
Profit1(125),Profit2(180), Profit3(250),
Ratio1(0.382), Ratio2(0.5),
DateTimeStr(""),
MaxProfit(0);
DateTimeStr = FormatDate("yyyyMMdd",datetojulian(D)) + " " + FormatTime("HHmm",ElTimeToDateTime(T));
MaxProfit = maxpositionprofit/bigpointvalue;
// call main function
__fTXF30_Main(BuyNo,SellNo);
//Buy
if BuyNo > 0 then
begin
buy next bar on open;
end;
//SellShort
if SellNo < 0 then
begin
sellshort next bar on open;
end;
if marketposition > 0 then
begin
Sell("B Stop Loss") all shares next bar at entryprice - MinMove*Loss stop;
Sell("B Fix Profit") next bar at entryprice + MinMove*FixProfit limit;
if MaxProfit >= Profit1 and MaxProfit <= Profit2 Then
Sell("B1 Profit") all shares next bar at entryprice + 5 stop;
if MaxProfit > Profit2 and Maxprofit <= Profit3 Then
Sell("B2 Profit") all shares next bar at entryprice + MaxProfit*Ratio1 stop;
if MaxProfit > Profit3 and Maxprofit < FixProfit Then
Sell("B3 Profit") all shares next bar at entryprice + MaxProfit*Ratio2 stop;
end;
if marketposition < 0 then
begin
Buytocover("S Stop Loss" ) all shares next bar at entryprice + MinMove*Loss stop;
Buytocover("S Fix Profit") all shares next bar at entryprice - MinMove*FixProfit limit;
if MaxProfit >= Profit1 and MaxProfit <= Profit2 Then
buytocover ("S1 Profit") all shares next bar at entryprice - 5 stop;
if MaxProfit > Profit2 and MaxProfit <= Profit3 Then
buytocover ("S2 Profit") all shares next bar at entryprice - MaxProfit*Ratio1 stop;
if MaxProfit > Profit3 and MaxProfit < FixProfit Then
buytocover ("S3 Profit") all shares next bar at entryprice - MaxProfit*Ratio2 stop;
end;
第一頁
上一頁
下一頁
最後頁
討論區列表
群益MultiCharts
MultiCharts
│
討論區
│
會員專區
│
教學講座
│
支援與服務
│
產品購買
│
申請試用
All rights for MultiCharts Trading Software are reserved by MultiCharts, LLC
凱衛資訊股份有限公司 營利事業統一編號(21261212) 著作權所有 本網站最佳瀏覽解析度為 1024 x 768
隱私權政策
│
網站安全政策
│
著作權說明
若不清楚點選圖片更新驗證碼
註冊帳號
忘記密碼
解除鎖定