COCO研究院

 找回密碼
 註冊
搜索
查看: 2531|回復: 1

[其他程式語言] 加碼問題請問大大

[複製鏈接]
發表於 16-5-15 18:47 | 顯示全部樓層 |閱讀模式
if marketposition=0 and kb<1 and value1 > 500 and value2 <-500 then begin buy("buy")
next bar at market;
   end;
if marketposition=0 and ks<1 and value1 <-500  and value2 > 500 then begin sellshort("sell")
next bar at market;
end;

mkp=marketposition;
if marketposition>0 then KB=1;
if marketposition<0 then KS=1;

if marketposition>0 then sell next bar at entryprice-30 stop;
if marketposition>0 then sell next bar at entryprice+30 LIMIT;
if marketposition<0 then buytocover next bar at entryprice-30 LIMiT;
if marketposition<0 then buytocover next bar at entryprice+30 stop;

if time>=1326 then sell("exitbuy1")    this bar;
if time>=1326 then buytocover("exitshort1")    this bar;

setexitonclose;
不好意思上面是我的進場跟停損停利的依據  請問如果我多單進場 賠20點的時候加碼一口多單要怎麼寫呢??? 碰到停損停利全部出場
要怎麼寫呢謝謝各位大大

 樓主| 發表於 16-5-15 19:25 | 顯示全部樓層
我不知道怎麼刪除 帖子  我找到方法了謝謝~!!!
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

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

GMT+8, 24-5-5 08:46

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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