커뮤니티

옵션 시스템 수식

프로필 이미지
노블레스
2024-03-07 10:48:23
664
글번호 177256
답변완료
input : 매수준비가(1.09),매수가격(1.12),매도준비가(2.62),매도가격(2.50); input : 익절(1),손절(0.5); if Bdate != Bdate[1] Then { Condition1 = False; Condition2 = False; } if Condition1 == False and C < 매수준비가 Then Condition1 = true; if Condition1 == true Then { if H >= 매수가격 Then Condition1 = false; if MarketPosition <= 0 Then Buy("b",AtStop,매수가격); } if Condition2 == False and C > 매도준비가 Then Condition2 = true; if Condition2 == true Then { if L <= 매도가격 Then Condition2 = false; if MarketPosition >= 0 Then Sell("s",AtStop,매도가격); } SetStopProfittarget(익절,PointStop); SetStopLoss(손절,PointStop); 추가수식 부탁드립니다. 당일 매매로 15시 30분 무조건 청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-03-07 15:27:52

안녕하세요 예스스탁입니다. input : 매수준비가(1.09),매수가격(1.12),매도준비가(2.62),매도가격(2.50); input : 익절(1),손절(0.5); if Bdate != Bdate[1] Then { Condition1 = False; Condition2 = False; } if Condition1 == False and C < 매수준비가 Then Condition1 = true; if Condition1 == true Then { if H >= 매수가격 Then Condition1 = false; if MarketPosition <= 0 Then Buy("b",AtStop,매수가격); } if Condition2 == False and C > 매도준비가 Then Condition2 = true; if Condition2 == true Then { if L <= 매도가격 Then Condition2 = false; if MarketPosition >= 0 Then Sell("s",AtStop,매도가격); } SetStopProfittarget(익절,PointStop); SetStopLoss(손절,PointStop); SetStopEndofday(153000); 즐거운 하루되세요 > 노블레스 님이 쓴 글입니다. > 제목 : 옵션 시스템 수식 > input : 매수준비가(1.09),매수가격(1.12),매도준비가(2.62),매도가격(2.50); input : 익절(1),손절(0.5); if Bdate != Bdate[1] Then { Condition1 = False; Condition2 = False; } if Condition1 == False and C < 매수준비가 Then Condition1 = true; if Condition1 == true Then { if H >= 매수가격 Then Condition1 = false; if MarketPosition <= 0 Then Buy("b",AtStop,매수가격); } if Condition2 == False and C > 매도준비가 Then Condition2 = true; if Condition2 == true Then { if L <= 매도가격 Then Condition2 = false; if MarketPosition >= 0 Then Sell("s",AtStop,매도가격); } SetStopProfittarget(익절,PointStop); SetStopLoss(손절,PointStop); 추가수식 부탁드립니다. 당일 매매로 15시 30분 무조건 청산