예스스탁
예스스탁 답변
2023-08-03 15:37:45
안녕하세요
예스스탁입니다.
1
input: upls(0.6),uptr(0.8),dnls(0.7),dntr(0.9);
if MarketPosition== 1 Then
{
SetStopLoss(upls,PointStop);
SetStopTrailing(uptr,0,PointStop,1);
}
else if MarketPosition== -1 Then
{
SetStopLoss(dnls,PointStop);
SetStopTrailing(dntr,0,PointStop,1);
}
Else
{
SetStopLoss(0);
SetStopProfittarget(0);
}
2
input: als(0.6),atr(0.8),bls(0.7),btr(0.9);
if MarketPosition== 1 Then
{
if IsEntryName("a") == true Then
{
SetStopLoss(als,PointStop);
SetStopTrailing(atr,0,PointStop,1);
}
Else if IsEntryName("b") == true Then
{
SetStopLoss(bls,PointStop);
SetStopTrailing(btr,0,PointStop,1);
}
Else
{
SetStopLoss(0);
SetStopProfittarget(0);
}
}
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 문의
> 요청수식 1)
buy 진입 청산과 sell 진입 청산을 따로 적용하는 수식 부탁드립니다.
(리버스 거래용도)
input: upls(0.6),uptr(0.8),dnls(0.7),dntr(0.9);
if MarketPosition== 1 Then
{
SetStopLoss(upls,PointStop);
SetStopTrailing(uptr,0,PointStop,1);
}
if MarketPosition== -1 Then
{
SetStopLoss(dnls,PointStop);
SetStopTrailing(dntr,0,PointStop,1);
}
요청수식 2)
동일하게 바이포지션일 경우
진입명에 따라 다르게 청산하는 수식 요청드립니다.
input: als(0.6),atr(0.8),bls(0.7),btr(0.9);
if MarketPosition== 1 and IsEntryName("a") Then
{
SetStopLoss(als,PointStop);
SetStopTrailing(atr,0,PointStop,1);
}
if MarketPosition== 1 and IsEntryName("b") Then
{
SetStopLoss(bls,PointStop);
SetStopTrailing(btr,0,PointStop,1);
}