예스스탁
예스스탁 답변
2022-06-17 11:21:36
안녕하세요
예스스탁입니다.
일봉차트에서 시간을 지정해 청산이 가능하지 않습니다.
1
input : 손절틱수(40);
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*1);
ExitLong("bx",AtLimit, NextBarOpen+PriceScale*1+(H-L)*0.7);
}
if NextBarOpen < C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*1);
ExitShort("sx",AtLimit,NextBarOpen-PriceScale*1-(H-L)*0.7);
}
}
SetStopLoss(PriceScale*손절틱수,PointStop);
2
input : 손절틱수(40),특정일(20220615);
if sDate == 특정일 Then
{
var1 = h-l;
}
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*1);
ExitLong("bx",AtLimit, NextBarOpen+PriceScale*1+var1*0.7);
}
if NextBarOpen < C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*1);
ExitShort("sx",AtLimit,NextBarOpen-PriceScale*1-(var1)*0.7);
}
}
SetStopLoss(PriceScale*손절틱수,PointStop);
3
input : 익절틱수(90),손절틱수(40),특정일(20220615);
if sDate == 특정일 Then
{
var1 = h-l;
}
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*1);
ExitLong("bx",AtLimit, NextBarOpen+PriceScale*1+var1*0.7);
}
if NextBarOpen < C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*1);
ExitShort("sx",AtLimit,NextBarOpen-PriceScale*1-(var1)*0.7);
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다
> input : 익절틱수(140),손절틱수(40);
if NextBarSdate != sDate Then
{
if NextBarOpen > C Then
Buy("b",AtStop,NextBarOpen+PriceScale*1);
if NextBarOpen < C Then
Sell("s",AtStop,NextBarOpen-PriceScale*1);
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop):
---------------------------------------
위 수식어에서 "익절"을 아래 내용의 수정된 수식어 3개로 하고자 합니다.
1. 전일 위 아래 변동폭의 70%
2. 특정일 위 아래 변동폭의 70%
3. 특정일 위 아래 변동폭의 70% 또는 익절 90틱
기존 수식어에서 변경된 익절 내용으로 각각
3개의 수식어를 작성해 주시기 바랍니다.
----------------------------------------------------------------
위와는 별도로 수정된 3개의 수식어에 익일 05시에 자동청산으로 추가된
3개도 부탁드립니다.
---------------------------------------------------------
그래프 내용입니다.
자동으로 작동했던 수식어가 익일 아침 재로그인시 자동이 아닌
경보로 설정이 됩니다. 재로그인시 자동이 되도록 하였으면 합니다.
미리 감사드립니다.