예스스탁
예스스탁 답변
2019-12-30 12:46:48
안녕하세요
예스스탁입니다.
Input : short(12), long(26), signal(9);
Var : MACDV(0) , MACDS(0) ;
MACDV = MACD(short, long);
MACDS = ema(MACDV,signal);
var1 = ma(C,20);
var2 = ma(c,120);
if C > var2 and C > var2 and crossup(macdv,macds) Then
buy("b",OnClose,def,2);
if C < var2 and C < var2 and CrossDown(macdv,macds) Then
sell("s",OnClose,def,2);
if MarketPosition == 1 then
{
ExitLong("bp1",AtLimit,EntryPrice+PriceScale*10,"",1,1);
ExitLong("bp2",AtLimit,EntryPrice+PriceScale*20,"",1,1);
ExitLong("bl",AtStop,EntryPrice-PriceScale*20);
if CurrentContracts == 1 Then
ExitLong("bp3",AtStop,EntryPrice+PriceScale*1);
}
if MarketPosition == -1 then
{
ExitShort("sp1",AtLimit,EntryPrice-PriceScale*10,"",1,1);
ExitShort("sp2",AtLimit,EntryPrice-PriceScale*20,"",1,1);
ExitShort("sl",AtStop,EntryPrice+PriceScale*20);
if CurrentContracts == 1 Then
ExitShort("sp3",AtStop,EntryPrice-PriceScale*1);
}
새해 좋은 일만 가득하시길 기원합니다.
> 묵연히 님이 쓴 글입니다.
> 제목 : 안녕하세요.
> 시스템식 부탁드립니다.
2계약기준입니다.
매수식; 가격이 120 이평선 위이고,20 이평선 위이고 macd가 매수신호때 매수
청산식; 1차청산은 10틱, 2차청산은 20틱
손절식; 20틱 손절, 혹은 1차청산 후 1틱 익절
재매수; 청산후 매수식과 같은 조건이면 재매수
재매수청산식 ; 청산식과 같으면 청산
매도식은 반대입니다.
부탁드립니다.
새해 복많이 받으세요.