커뮤니티

식수정

프로필 이미지
아트정
2022-11-01 12:25:00
1046
글번호 163391
답변완료
var : B(0),S(0); if MarketPosition <= 0 and 첫매수조건 Then Buy("b"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then B = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then B = LatestExitPrice(0); ExitLong("bx",AtStop,B+PriceScale*50); if MaxEntries < 7 Then Buy("bb",AtLimit,B-PriceScale*50); } if MarketPosition >= 0 and 첫매도조건 Then Sell("s"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then S = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then S = LatestExitPrice(0); ExitShort("sx",AtStop,S-PriceScale*50); if MaxEntries < 7 Then Sell("ss",AtLimit,S+PriceScale*50); } 안녕하세요 위식에서 1차 매수.매도 조건을 당일 시가로 부탁드림니다' 1차 매수.매도 조건을 당일 일봉상 시가로 수정해주세요 시가에서 상승시 매수 시가에서 하락시 매도
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-10-31 15:26:07

안녕하세요 예스스탁입니다. 시가 돌파/이탈로 작성해 드립니다. var : B(0),S(0); if MarketPosition <= 0 and CrossUp(C,DayOpen) Then Buy("b"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then B = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then B = LatestExitPrice(0); ExitLong("bx",AtStop,B+PriceScale*50); if MaxEntries < 7 Then Buy("bb",AtLimit,B-PriceScale*50); } if MarketPosition >= 0 and CrossDown(C,DayOpen) Then Sell("s"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then S = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then S = LatestExitPrice(0); ExitShort("sx",AtStop,S-PriceScale*50); if MaxEntries < 7 Then Sell("ss",AtLimit,S+PriceScale*50); } 즐거운 하루되세요 > 아트정 님이 쓴 글입니다. > 제목 : 식수정 > var : B(0),S(0); if MarketPosition <= 0 and 첫매수조건 Then Buy("b"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then B = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then B = LatestExitPrice(0); ExitLong("bx",AtStop,B+PriceScale*50); if MaxEntries < 7 Then Buy("bb",AtLimit,B-PriceScale*50); } if MarketPosition >= 0 and 첫매도조건 Then Sell("s"); if MarketPosition == 1 Then { if CurrentContracts > CurrentContracts[1] Then S = LatestEntryPrice(0); if CurrentContracts < CurrentContracts[1] Then S = LatestExitPrice(0); ExitShort("sx",AtStop,S-PriceScale*50); if MaxEntries < 7 Then Sell("ss",AtLimit,S+PriceScale*50); } 안녕하세요 위식에서 1차 매수.매도 조건을 당일 시가로 부탁드림니다'