COCO研究院

 找回密碼
 註冊
搜索
查看: 10518|回復: 5

請問這樣停利停損寫這樣對嗎

[複製鏈接]
發表於 17-7-10 11:21 | 顯示全部樓層 |閱讀模式
請教各位前輩,這樣寫對嗎 還能加上些什麼加強呢>"<  新手剛加入

if rsi(close,14) cross under 70 then sellshort next bar at market;
if rsi(close,14) cross over 20 then buy next bar at market;
if marketposition=1 then sell next bar at entryprice + 20 stop;
if marketposition=-1 then buytocover next bar at entryprice + 20 stop;
發表於 17-7-10 15:01 | 顯示全部樓層

多單停利
if marketposition=1 then sell next bar at entryprice + 20 limit;
多單停損
if marketposition=1 then sell next bar at entryprice - 20 stop;

空單停損
if marketposition=-1 then buytocover next bar at entryprice + 20 stop;
空單停利
if marketposition=-1 then buytocover next bar at entryprice - 20 limit;
回復 支持 2 反對 0

使用道具 舉報

 樓主| 發表於 17-7-10 18:08 來自手機 | 顯示全部樓層
感謝大大解答,下班立馬試試
發表於 17-7-11 09:50 | 顯示全部樓層
小建議,希望你以後不只會只下一口單(ex 多口小台,N口大台)

多單停利停損可用
if marketposition>0

空單停利停損用
if marketposition< 0
 樓主| 發表於 17-7-11 10:22 | 顯示全部樓層
flashbibby 發表於 17-7-11 09:50
小建議,希望你以後不只會只下一口單(ex 多口小台,N口大台)

多單停利停損可用

資金沒有很多~"~
所以只能跑一口小台,累積資金
但目前還沒有好的程式策略~"~
發表於 23-3-15 08:17 | 顯示全部樓層
easytrader788 發表於 17-7-10 15:01
多單停利
if marketposition=1 then sell next bar at entryprice + 20 limit;
多單停損

感謝分享
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

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

GMT+8, 24-4-25 03:15

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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