5% 수익시 수익청산 이 아래 수식인가요?
SetStopProfittarget(5,PercentStop);
5% 손실시 손절청산은 어떤 수식으로 해야하나요?
#2021년 12월 16일 스타트 버전
input : 시작일(10211216);
input : 청산일(20220316);
input : 청산시간(225030);
input : MFI기간(20),MFI값(18),하락틱수(250),하락틱수1(400),익절틱(500),손절틱(500000);
input : MFI청산기간(6),MFI청산값(80);
input : 추가매수횟수(6),X(25),Y(200);
var : MoneyFlow(0),MoneyFlow1(0);
MoneyFlow = MFI(MFI기간);
MoneyFlow1 = MFI(MFI청산기간);
if Data1(sDate) >= 시작일 Then
{
if MarketPosition == 0 and MoneyFlow <= MFI값 and C <= Highest(H,X)-PriceScale*Y Then
Buy("b",OnClose,DEf,1);
if MarketPosition == 1 and MaxEntries < 추가매수횟수 and MoneyFlow < MFI값 and C < O and V > V[1] Then
Buy("추매",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수);
if MarketPosition == 1 and MaxEntries < 추가매수횟수 and C < O and V > V[1] Then
Buy("325틱추가매수",AtLimit,LatestEntryPrice(0)-PriceScale*하락틱수1);
}
if MarketPosition == 1 and MoneyFlow1 > MFI청산값 Then
ExitLong("MFI청산",atlimit,AvgEntryPrice*1.003);
SetStopLoss(PriceScale*손절틱,PointStop);
SetStopProfittarget(PriceScale*익절틱,PointStop);
if bdate != Bdate[1] Then
{
IF sdate == 청산일 Then
SetStopEndofday(청산시간);
Else
SetStopEndofday(0);
}
답변 1
예스스탁
예스스탁 답변
2021-10-13 13:57:26
안녕하세요
예스스탁입니다.
1
예 맞습니다.
2
SetStopLoss(5,PercentStop);
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 간단한 수식 질문
>
5% 수익시 수익청산 이 아래 수식인가요?
SetStopProfittarget(5,PercentStop);
5% 손실시 손절청산은 어떤 수식으로 해야하나요?