커뮤니티

문의 드립니다.

프로필 이미지
웹피
2014-03-09 01:28:12
126
글번호 73325
답변완료
전에 매수진입 가격 범위를 최저값,최고값을 지정했던것을 그냥 최고값만 지정하고 최고값 이하로는 어느값이든 최저값으로 매수진입 되도록 하려고 합니다. 아래 수식이 맞는지 확인바랍니다. input : Price1(100),Price2(200),Totalmoney(100000); var : Price0(0),Vol(0); var1 = max(Price1,Price2); var2 = min(Price1,Price2); if CodeCategoryEx == 11 and BasePrice < 50000 Then Vol = int(int(Totalmoney/C)/10)*10; Else Vol = int(Totalmoney/C); if MarketPosition == 0 and var1 >= C and C >= var2 and stime < 140000 Then{ buy("B1"); buy("B21",Atlimit,C-PriceScale*1,Vol); buy("B31",Atlimit,C-PriceScale*2,Vol); } ======> 수정후================== input : Price1(200),Totalmoney(100000); var : Price0(0),Vol(0); var1 = max(Price1,Price1); //이 부분은 이렇게 고치는게 맞나요? if CodeCategoryEx == 11 and BasePrice < 50000 Then Vol = int(int(Totalmoney/C)/10)*10; Else Vol = int(Totalmoney/C); if MarketPosition == 0 and var1 >= C and stime < 140000 Then{ buy("B1"); buy("B21",Atlimit,C-PriceScale*1,Vol); buy("B31",Atlimit,C-PriceScale*2,Vol); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-10 14:15:55

안녕하세요 예스스탁입니다. 예 맞습니다. input : Price1(200),Totalmoney(100000); var : Price0(0),Vol(0); var1 = max(Price1,Price1); //이 부분은 이렇게 고치는게 맞나요? if CodeCategoryEx == 11 and BasePrice < 50000 Then Vol = int(int(Totalmoney/C)/10)*10; Else Vol = int(Totalmoney/C); if MarketPosition == 0 and var1 >= C and stime < 140000 Then{ buy("B1"); buy("B21",Atlimit,C-PriceScale*1,Vol); buy("B31",Atlimit,C-PriceScale*2,Vol); } 즐거운 하루되세요 > 웹피 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 전에 매수진입 가격 범위를 최저값,최고값을 지정했던것을 그냥 최고값만 지정하고 최고값 이하로는 어느값이든 최저값으로 매수진입 되도록 하려고 합니다. 아래 수식이 맞는지 확인바랍니다. input : Price1(100),Price2(200),Totalmoney(100000); var : Price0(0),Vol(0); var1 = max(Price1,Price2); var2 = min(Price1,Price2); if CodeCategoryEx == 11 and BasePrice < 50000 Then Vol = int(int(Totalmoney/C)/10)*10; Else Vol = int(Totalmoney/C); if MarketPosition == 0 and var1 >= C and C >= var2 and stime < 140000 Then{ buy("B1"); buy("B21",Atlimit,C-PriceScale*1,Vol); buy("B31",Atlimit,C-PriceScale*2,Vol); } ======> 수정후================== input : Price1(200),Totalmoney(100000); var : Price0(0),Vol(0); var1 = max(Price1,Price1); //이 부분은 이렇게 고치는게 맞나요? if CodeCategoryEx == 11 and BasePrice < 50000 Then Vol = int(int(Totalmoney/C)/10)*10; Else Vol = int(Totalmoney/C); if MarketPosition == 0 and var1 >= C and stime < 140000 Then{ buy("B1"); buy("B21",Atlimit,C-PriceScale*1,Vol); buy("B31",Atlimit,C-PriceScale*2,Vol); }