multichart語法 - 財經

Table of Contents


請教一下~有人知道超過基本成本單後 每漲跌50點的加碼語法如何寫?

收盤低到成本就全平 我每次寫都變成一直加碼 然後一直平倉

if condition1 then buy("base") 1 share next bar at market;

if entryprice +50 > entryprice then buy ("add1")1 share next bar at market;

if avgentryprice < c then sell all shares next bar at market;

是不是要設一個變數去控制?該怎麼設啊?可以指導一下嗎?

--

All Comments

Noah avatarNoah2015-06-18
entryprice+50當然大於entryprice 所以就一直買羅~
Freda avatarFreda2015-06-20
用 close > entryprice +50 或-50 試試看