커뮤니티
시스템 수식 부탁드립니다
2015-04-19 21:18:19
133
글번호 85168
매수는 crossup(RSI,50) , MACD > 0
매수청산은 crossdown(RSI,50)
매도는 crossdown(RSI,50) , MACD < 0
매도청산은 crossup(RSI,50)
답변 1
예스스탁 예스스탁 답변
2015-04-20 15:07:14
안녕하세요
예스스탁입니다.
input : P(14),short(12),long(26);
var : RSIV(0),MACDV(0);
RSIV = RSI(P);
MACDV = MACD(Short,long);
if crossup(RSIV,50) and MACDV > 0 Then
buy();
if MarketPosition == 1 and CrossDown(RSIV,50) Then
ExitLong();
if CrossDown(RSIV,50) and MACDV < 0 Then
sell();
if MarketPosition == -1 and Crossup(RSIV,50) Then
ExitShort();
즐거운 하루되세요
> 필로게이스 님이 쓴 글입니다.
> 제목 : 시스템 수식 부탁드립니다
> 매수는 crossup(RSI,50) , MACD > 0
매수청산은 crossdown(RSI,50)
매도는 crossdown(RSI,50) , MACD < 0
매도청산은 crossup(RSI,50)
다음글