MultiCharts 關鍵字

Steven Wang
3 min readMar 9, 2020

--

setstoploss=停損
bigpointvalue=一大點的價值 TX200
setstoploss(40*bigpointvalue) 說明setstoploss(8000)

D=日期 date
D>1160101(說明 Date>1900+116年1月1日)

T=時間Time
T=1340 (說明 Time = 13:40)

setexitonclose 收盤前最後一個Tick平倉

D>D[1] 換日

時間開關
TimeSwitch = T>0845 and T<1220 兩個時間都成立TimeSwitch = True

部位marketposition
0/1/-1

OpenD / LowD / HighD / CloseD 當日開高低收

C>O 這跟紅K C[1]>O[1]前一根紅K C[2]>O[2]前兩根紅K

平均 Average(C,3) 收盤價3跟K平均

openpositionprofit 未平倉浮動損益

Lowest(L,3)三根最低價的最低價
Highest(H,3)三根最高價的最高價

overmonth換月
if overmonth then setexitonclose

maxcontractprofit 目前部位曾获得的每手最大获利

barssinceentry 進場後過了幾根K棒

maxlist(A,B) 取A/B大
minlist(A,B) 取A/B小

Highestbar(H,10) 第幾根KBar創新高
Highestbar(H,10)>5 如果大於5表示超過5根K沒有創高

Lowestbar(L,19) 第幾根KBar創新低

entryprice 進場價

crosses_above(C,entryprice) 收盤價往上穿越進場價
crosses_below(C,entryprice) 收盤價往下穿越進場價

countif(條件,K棒數) > 次數
countif(O-C>5,10)>3 黑K大於五點 10跟K棒有超過3次

EntriesToday 回傳今日進場次數
ExitsToday 回傳今日出場次數
exitsToday(D) ≤ 1

BBand
BollingerBand(價格,K棒數,標準差)
BollingerBand(C,12,2) BBand通道上緣
BollingerBand(C,12,-2) BBand通道下緣

ATR
AvgTrueRange(K棒數)
AvgTrueRange(12) ATR12

KD
Stochastic()

MACD
MACD()

MA
Average()

SAR
ParabolicSAR() 取出position 的值1/-1判斷價格在點點上方還是下方

DMI(Directional Movement Index)
管DMI+ DMI-交叉
DMI+ >DMI- 偏多 / DMI+ < DMI-偏空

RSI
RSI()

ATR
AverageTrueRange()

StandardDev()

--

--

Steven Wang
Steven Wang

No responses yet