커뮤니티
부탁합니다
2015-05-26 23:13:29
146
글번호 86429
매수
MACD(12,26)>0
매수청산
MACD(12,26)<0 또는 스토케스틱 데드시 또는 macd 데드시
강제청산: 손절선 2.0%, 익절선 10%이상 80% trailing stop
청산후 재진입 허용
: 익절후 MACD(12,26)>0 유지시 청산후 첫봉진입
감사합니다
매도: MACD(13,24)<0, 매도청산:MACD(13,24)>0, 강제청산: 손절선 1.5%, 익절선 5%이상 80% trailing stop
답변 1
예스스탁 예스스탁 답변
2015-05-27 17:56:58
안녕하세요
예스스탁입니다.
input : short(12),long(26),sig(9),sto1(10),sto2(5),sto3(5);
var : MACDV(0),MACDS(0),Stok(0),stod(0);
MACDV = macd(short,long);
MACDS = ema(MACDV,sig);
stok = StochasticsK(sto1,sto2);
stod = StochasticsD(sto1,sto2,sto3);
if MarketPosition <= 0 and MACDV > 0 Then
buy();
if MarketPosition == 1 and
(MACDV < 0 or CrossDown(stok,stod) or CrossDown(MACDV,MACDS)) Then
ExitLong();
if MarketPosition >= 0 and MACDV < 0 Then
Sell();
if MarketPosition == -1 and
(MACDV > 0 or CrossUp(stok,stod) or CrossUp(MACDV,MACDS)) Then
ExitShort();
SetStopLoss(2,PercentStop);
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice*1.10 Then
exitlong("bx",AtStop,highest(H,BarsSinceEntry)-(highest(h,BarsSinceEntry)-EntryPrice)*0.80);
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice*0.90 Then
ExitShort("sx",AtStop,Lowest(L,BarsSinceEntry)+(EntryPrice-Lowest(l,BarsSinceEntry))*0.80);
즐거운 하루되세요
> HI_da***** 님이 쓴 글입니다.
> 제목 : 부탁합니다
> 매수
MACD(12,26)>0
매수청산
MACD(12,26)<0 또는 스토케스틱 데드시 또는 macd 데드시
강제청산: 손절선 2.0%, 익절선 10%이상 80% trailing stop
청산후 재진입 허용
: 익절후 MACD(12,26)>0 유지시 청산후 첫봉진입
감사합니다
매도: MACD(13,24)<0, 매도청산:MACD(13,24)>0, 강제청산: 손절선 1.5%, 익절선 5%이상 80% trailing stop
다음글
이전글