예스스탁
예스스탁 답변
2024-06-21 15:16:29
안녕하세요
예스스탁입니다.
추가진입을 하므로 적용시 설정창에서 피라미딩을 설정하셔야 합니다.
피라미딩은 다른진입신호만허용으로 지정하고 적용하시면 됩니다.
15분 사용하셔도 됩니다.
input : 금액(10000000);
if NextBarSdate != sDate Then
{
Buy("b1",AtLimit,C*0.95,Floor(금액/min(NextBarOpen,C*0.95)));
Buy("b2",AtLimit,C*0.93,Floor(금액/min(NextBarOpen,C*0.93)));
Buy("b3",AtLimit,C*0.91,Floor(금액/min(NextBarOpen,C*0.91)));
}
Else
{
if DayLow > DayClose(1)*0.95 Then
Buy("b1.",AtLimit,C*0.95,Floor(금액/min(NextBarOpen,DayClose(1)*0.95)));
if DayLow > DayClose(1)*0.93 Then
Buy("b2.",AtLimit,C*0.93,Floor(금액/min(NextBarOpen,DayClose(1)*0.93)));
if DayLow > DayClose(1)*0.91 Then
Buy("b3.",AtLimit,C*0.91,Floor(금액/min(NextBarOpen,DayClose(1)*0.91)));
}
if MarketPosition == 1 Then
{
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "bx1" Then
Condition1 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "bx2" Then
Condition1 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "bx3" Then
Condition2 = true;
if Condition1 == False Then
ExitLong("bx1",AtStop,AvgEntryPrice*1.05,"",Floor(MaxContracts*0.3),1);
if Condition2 == False Then
ExitLong("bx2",AtStop,AvgEntryPrice*1.07,"",Floor(MaxContracts*0.5),1);
if Condition3 == False Then
ExitLong("bx3",AtStop,AvgEntryPrice*1.09);
}
Else
{
Condition1 = False;
Condition2 = False;
Condition3 = False;
}
즐거운 하루되세요
> 해선에이스 님이 쓴 글입니다.
> 제목 : 분할매수,분할매도 수식 요청드립니다
> 안녕하세요 수식 질문드립니다.
국내주식입니다!
매수는
전일종가 대비 -5%, -7%, -9%
하락때마다 각각 1천만원 매수(현재가)
매도조건은 (시장가)
평단가에서 당일저가 대비 +5%(전체의30%)
+7%(잔량의50%),
+9%(전량).
이렇게 수식을 작성하고 싶은데
수식 알려쥬시면 감사하겠습니다!
아,
차트는 15분봉차트에서 틀려고 하는데 문제없겠죠??