커뮤니티

수식작성 오류검토 부탁드립니다.^^

프로필 이미지
엔돌핀
2021-12-27 18:45:33
644
글번호 154907
답변완료
안녕하세요 예스스탁입니다. 랭귀지는 청산과 동일포지션 진입이 동시에 발생하면 해당 진입도 같이 다시 청산이 됩니다. 그러므로 청산이후 동일시점에 즉시 재매수가 가능하지 않습니다. 청산이 발생하면 진입은 다음봉 시가에 진입하게 작성했습니다. 1 input : Price(350),익절틱수(50),손절틱수(50); if TotalTrades == 0 and MarketPosition == 0 and H < Price Then buy("b",AtStop,price,1); if TotalTrades > TotalTrades[1] and MarketPosition == 0 Then buy("bb",AtMarket,price,iff(PositionProfit(1) >= 0,1,MaxContracts(1)*2)); if MarketPosition == 1 Then { ExitLong("bp",Atlimit,EntryPrice+PriceScale*익절틱수); ExitLong("bl",AtStop,EntryPrice-PriceScale*손절틱수); } 2 input : Price(350),익절틱수(50),손절틱수(50); if TotalTrades == 0 and MarketPosition == 0 and L > Price Then sell("s",AtStop,price,1); if TotalTrades > TotalTrades[1] and MarketPosition == 0 Then sell("ss",AtMarket,price,iff(PositionProfit(1) >= 0,1,MaxContracts(1)*2)); if MarketPosition == -1 Then { ExitShort("sp",Atlimit,EntryPrice-PriceScale*익절틱수); ExitShort("sl",AtStop,EntryPrice+PriceScale*손절틱수); } 마틴게일 기법 오래전것인것 같습니다. 적용해보니 실행이 안되어 실행되게 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-28 15:05:41

안녕하세요 예스스탁입니다. 해당 수식은 정상적으로 실행되는 식입니다. 최초 진입이 지정한값(price)을 터치할때 시작하므로 해당값을 보시는 차트에서 적당한 값으로 지정해 주시면 됩니다. 새해 복 많이 받으세요 > 엔돌핀 님이 쓴 글입니다. > 제목 : 수식작성 오류검토 부탁드립니다.^^ > 안녕하세요 예스스탁입니다. 랭귀지는 청산과 동일포지션 진입이 동시에 발생하면 해당 진입도 같이 다시 청산이 됩니다. 그러므로 청산이후 동일시점에 즉시 재매수가 가능하지 않습니다. 청산이 발생하면 진입은 다음봉 시가에 진입하게 작성했습니다. 1 input : Price(350),익절틱수(50),손절틱수(50); if TotalTrades == 0 and MarketPosition == 0 and H < Price Then buy("b",AtStop,price,1); if TotalTrades > TotalTrades[1] and MarketPosition == 0 Then buy("bb",AtMarket,price,iff(PositionProfit(1) >= 0,1,MaxContracts(1)*2)); if MarketPosition == 1 Then { ExitLong("bp",Atlimit,EntryPrice+PriceScale*익절틱수); ExitLong("bl",AtStop,EntryPrice-PriceScale*손절틱수); } 2 input : Price(350),익절틱수(50),손절틱수(50); if TotalTrades == 0 and MarketPosition == 0 and L > Price Then sell("s",AtStop,price,1); if TotalTrades > TotalTrades[1] and MarketPosition == 0 Then sell("ss",AtMarket,price,iff(PositionProfit(1) >= 0,1,MaxContracts(1)*2)); if MarketPosition == -1 Then { ExitShort("sp",Atlimit,EntryPrice-PriceScale*익절틱수); ExitShort("sl",AtStop,EntryPrice+PriceScale*손절틱수); } 마틴게일 기법 오래전것인것 같습니다. 적용해보니 실행이 안되어 실행되게 부탁드립니다.