커뮤니티

수정부탁드립니다.

프로필 이미지
대구어린울프
2019-11-13 15:08:20
91
글번호 133606
답변완료
안녕하세요? 아래의 수식에서 외부변수로 익절손절 수식(input : 익절틱수(1),손절틱수(1); SetStopProfittarget(PriceScale*익절틱수,PointStop); )을 넣으려니 잘 안되네요...매매하면서 공부도하고있는데 넘 어렵습니다...^^ 수정부탁드립니다. 감사합니다. input : 진입횟수(3),n(2); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C > O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C < O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*1 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*1 Then { Sell(); SellSetup = false; }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-11-13 16:12:14

안녕하세요 예스스탁입니다. input : 진입횟수(3),n(2); input : 익절틱수(1),손절틱수(1); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C > O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C < O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*1 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*1 Then { Sell(); SellSetup = false; } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수정부탁드립니다. > 안녕하세요? 아래의 수식에서 외부변수로 익절손절 수식(input : 익절틱수(1),손절틱수(1); SetStopProfittarget(PriceScale*익절틱수,PointStop); )을 넣으려니 잘 안되네요...매매하면서 공부도하고있는데 넘 어렵습니다...^^ 수정부탁드립니다. 감사합니다. input : 진입횟수(3),n(2); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C > O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C < O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*1 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*1 Then { Sell(); SellSetup = false; }