multichart語法 - 財經

By Andy
at 2015-06-13T23:43
at 2015-06-13T23:43
Table of Contents
※ 引述《ssdog (ssdog)》之銘言:
: 請教一下~有人知道超過基本成本單後 每漲跌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;
: 是不是要設一個變數去控制?該怎麼設啊?可以指導一下嗎?
下面兩列改一下試試
if C >= Entryprice+50 then buy ("add1") 1 share next bar at market;
if C <= Avgentryprice then sell all shares next bar at market;
--
: 請教一下~有人知道超過基本成本單後 每漲跌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;
: 是不是要設一個變數去控制?該怎麼設啊?可以指導一下嗎?
下面兩列改一下試試
if C >= Entryprice+50 then buy ("add1") 1 share next bar at market;
if C <= Avgentryprice then sell all shares next bar at market;
--
Tags:
財經
All Comments

By Sierra Rose
at 2015-06-17T11:12
at 2015-06-17T11:12

By Kumar
at 2015-06-20T10:23
at 2015-06-20T10:23

By Tom
at 2015-06-22T16:52
at 2015-06-22T16:52

By Adele
at 2015-06-25T08:03
at 2015-06-25T08:03

By Blanche
at 2015-06-25T22:11
at 2015-06-25T22:11

By Isla
at 2015-06-29T15:57
at 2015-06-29T15:57

By Quanna
at 2015-07-02T07:33
at 2015-07-02T07:33

By Regina
at 2015-07-03T17:25
at 2015-07-03T17:25

By Oscar
at 2015-07-06T14:51
at 2015-07-06T14:51

By Delia
at 2015-07-08T05:52
at 2015-07-08T05:52

By Todd Johnson
at 2015-07-11T15:42
at 2015-07-11T15:42

By Hardy
at 2015-07-13T09:39
at 2015-07-13T09:39
Related Posts
請問群益API摩台報價

By Ida
at 2015-06-13T14:20
at 2015-06-13T14:20
一個受保護的程式交易策略

By Michael
at 2015-06-13T09:22
at 2015-06-13T09:22
請問一下MT4這樣語法有錯嗎?

By Charlie
at 2015-06-12T00:51
at 2015-06-12T00:51
司法認證的賺錢軟體

By Anonymous
at 2015-06-06T14:22
at 2015-06-06T14:22
2015 夏天蛇多之大賺論壇

By Gilbert
at 2015-06-01T09:52
at 2015-06-01T09:52