예스스탁
예스스탁 답변
2022-11-24 15:35:18
안녕하세요
예스스탁입니다.
1
input : P1(5),P2(20);
var1 = ma(C,P1);
Var2 = ma(C,P2);
if CrossUp(var1,Var2) Then
Buy();
if CrossDown(var1,Var2) Then
Sell();
if MarketPosition == 1 Then
{
if highest(H,BarsSinceEntry) >= EntryPrice+50 Then
ExitLong("bx",AtStop,EntryPrice);
}
if MarketPosition == -1 Then
{
if lowest(L,BarsSinceEntry) <= EntryPrice-50 Then
ExitShort("sx",AtStop,EntryPrice);
}
SetStopProfittarget(100,PointStop);
SetStopLoss(50,PointStop);
SetStopTrailing(40,70,PointStop);
2
input : P1(5),P2(20);
var1 = ma(C,P1);
Var2 = ma(C,P2);
if CrossUp(var1,Var2) Then
Buy();
if CrossDown(var1,Var2) Then
Sell();
if MarketPosition == 1 Then
{
if highest(H,BarsSinceEntry) >= EntryPrice+50 Then
ExitLong("bx",AtStop,EntryPrice-10);
}
if MarketPosition == -1 Then
{
if lowest(L,BarsSinceEntry) <= EntryPrice-50 Then
ExitShort("sx",AtStop,EntryPrice+10);
}
SetStopProfittarget(100,PointStop);
SetStopLoss(50,PointStop);
SetStopTrailing(40,70,PointStop);
즐거운 하루되세요
> 양치기 님이 쓴 글입니다.
> 제목 : 시스템식 부탁드립니다.
> 항상 도움 주셔서 감사합니다.
아래 조건에 맞는 시스템식 부탁드립니다.
종목 : 마이크로 나스닥
타임 : 5분봉
매수진입 : 5이평, 20이평 골드크로스시 매수 진입
매수청산 : 5이평, 20이평 데드크로스시 매수 청산
매도진입 : 5이평, 20이평 데드크로스시 매도 진입
매도청산 : 5이평, 20이평 골드크로스시 매도 청산
익절 : 100point
손절 : 50point
트레일링스탑 : 70point 상승후 40point 하락시 청산
---------------------------------------------------
가격이 매수진입 후 50point까지 상승 후 하락하여 손절(-50point)이 된다고 가정할 경우
매수진입 후 50point까지 상승 한 경우에는
1. 매수가격에서 청산(본청) 하는 시스템식과
2. 매수가격에서 -10point 하락시 청산하는 시스템식 부탁드립니다.
(매도도 마찬가지로 50point 수익이 발생한 경우 본청하는 방법과
마이너스 -10point에서 청산하는 시스템식 부탁드립니다.)
위 2가지 경우에 해당하는 시스템식 모두 부탁드립니다.
감사합니다.