안녕하세요
if 매수조건1 then
Buy("매수1");
SetStopLoss(65,PointStop);
SetStopProfittarget(30,PointStop); 일 경우
진입 이후 8번째 봉까지 수익이나 손절이 나지 않는 경우,
이후 봉(9번째봉부터)부터는
수익 손절 조건을 아래로 변경하는 식이 가능하면 부탁드립니다
SetStopLoss(10,PointStop);
SetStopProfittarget(10,PointStop);
답변 1
예스스탁
예스스탁 답변
2022-12-07 13:04:48
안녕하세요
예스스탁입니다.
if 매수조건1 then
Buy("매수1");
if MarketPosition == 1 Then
{
if BarsSinceEntry < 8 Then
{
SetStopLoss(65,PointStop);
SetStopProfittarget(30,PointStop);
}
Else
{
SetStopLoss(10,PointStop);
SetStopProfittarget(10,PointStop);
}
}
Else
{
SetStopLoss(0);
SetStopProfittarget(0);
}
즐거운 하루되세요
> 검은약 님이 쓴 글입니다.
> 제목 : 문의합니다
> 안녕하세요
if 매수조건1 then
Buy("매수1");
SetStopLoss(65,PointStop);
SetStopProfittarget(30,PointStop); 일 경우
진입 이후 8번째 봉까지 수익이나 손절이 나지 않는 경우,
이후 봉(9번째봉부터)부터는
수익 손절 조건을 아래로 변경하는 식이 가능하면 부탁드립니다
SetStopLoss(10,PointStop);
SetStopProfittarget(10,PointStop);