예스스탁
예스스탁 답변
2022-12-20 11:00:42
안녕하세요
예스스탁입니다.
########기본식
if c>ma(c,22) Then
if CrossUp(ma(c,5),ma(c,20)) Then
Buy("b1",onclose) ;
if c<ma(c,22) Then
if CrossDown(ma(c,5),ma(c,20)) Then
sell("s1",onclose) ;
if MarketPosition == 1 Then
{
if highest(H,BarsSinceEntry) >= EntryPrice+1.5 and
C < ma(c,5) and C <= highest(H,BarsSinceEntry)-0.45 Then
ExitLong();
if c < EntryPrice-0.65 Then
ExitLong();
if BarsSinceEntry > 3 and c < ma(c,22) and c < L[BarsSinceEntry] Then
ExitLong();
}
if MarketPosition == -1 Then
{
if lowest(l,BarsSinceEntry) <= EntryPrice-1.5 and
C > ma(c,5) and C >= lowest(l,BarsSinceEntry)+0.45 Then
ExitShort();
if c > EntryPrice+0.65 Then
ExitShort();
if BarsSinceEntry > 3 and c > ma(c,22) and c > H[BarsSinceEntry] Then
ExitShort();
}
SetStopEndofday(153000);
즐거운 하루되세요
> 오이도인 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다
> 수고하십니다.
선물 1분봉 차트에서
1] 아래 기본식을 당일 데이트레이딩만 하는 식으로 수정요.
2] 진입명이 "b1"이고, 진입후 이익이 1.5p 이상일 때
종가가 5ma보다 작으면서 고점대비 0.45p 이상 되돌림시 종가 청산
3] 진입명이 "b1"이고, 진입후 손실이 종가기준 0.65p 이상이면 손절
4] 진입명이 "b1"이고, 진입후 3봉 이후에
22ma 아래이고 진입봉의 저가를 종가기준 회복하지 못하면 손절...
하는 시스템식을 부탁합니다.
수고하세요
########기본식
if c>ma(c,22) Then
if CrossUp(ma(c,5),ma(c,20)) Then
Buy("b1",onclose) ;
if c<ma(c,22) Then
if CrossDown(ma(c,5),ma(c,20)) Then
sell("s1",onclose) ;