커뮤니티

두가지 질문드립니다.

프로필 이미지
산수유
2024-06-17 18:52:07
966
글번호 180713
답변완료
1. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then Buy("b4",OnClosE,DeF,1); } 위 식에서 오류가 나서 아래와 같이 중괄호를 변경해도 계속 오류입니다. 확인부탁드립니다. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then { Buy("b4",OnClosE,DeF,1); } } 2. { Buy("b4",OnClosE,DeF,진입수량1); ExitLong("bx4",AtStop,L); } ExitLong("bx5",AtStop,L[BarsSinceEntry]); 위의 식 중 ExitLong("bx4",AtStop,L); 은 중복된 의미라서 빼도 되는가요?
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2024-06-18 14:44:45

안녕하세요 예스스탁입니다. 1 올리신 수식에 어떤 오류가 있는지 모르겠습니다. 2개의 식 모두 오류가 없습니다. 아래 2개식 모두 검증해 보시기 바랍니다. stm1과 stm2는 값을 알수 없어 변수처리만 했습니다. var : stm1(0),stm2(0); if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then Buy("b4",OnClosE,DeF,1); } var : stm1(0),stm2(0); if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then { Buy("b4",OnClosE,DeF,1); } } 2 예 작성하신 내용이면 삭제하셔도 됩니다. 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 두가지 질문드립니다. > 1. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then Buy("b4",OnClosE,DeF,1); } 위 식에서 오류가 나서 아래와 같이 중괄호를 변경해도 계속 오류입니다. 확인부탁드립니다. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then { Buy("b4",OnClosE,DeF,1); } } 2. { Buy("b4",OnClosE,DeF,진입수량1); ExitLong("bx4",AtStop,L); } ExitLong("bx5",AtStop,L[BarsSinceEntry]); 위의 식 중 ExitLong("bx4",AtStop,L); 은 중복된 의미라서 빼도 되는가요?
프로필 이미지

산수유

2024-06-18 14:55:09

감사드립니다. 하지만 여전히 오류가 나와서 내일이라도 전화한번 드리겠습니다. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 두가지 질문드립니다. > 안녕하세요 예스스탁입니다. 1 올리신 수식에 어떤 오류가 있는지 모르겠습니다. 2개의 식 모두 오류가 없습니다. 아래 2개식 모두 검증해 보시기 바랍니다. stm1과 stm2는 값을 알수 없어 변수처리만 했습니다. var : stm1(0),stm2(0); if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then Buy("b4",OnClosE,DeF,1); } var : stm1(0),stm2(0); if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then { Buy("b4",OnClosE,DeF,1); } } 2 예 작성하신 내용이면 삭제하셔도 됩니다. 즐거운 하루되세요 > 산수유 님이 쓴 글입니다. > 제목 : 두가지 질문드립니다. > 1. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then Buy("b4",OnClosE,DeF,1); } 위 식에서 오류가 나서 아래와 같이 중괄호를 변경해도 계속 오류입니다. 확인부탁드립니다. if MarketPosition == 1 and IsEntryName("b3") == true and MaxContracts == 1 Then { if c > value1 and stm1 > stm2 Then { Buy("b4",OnClosE,DeF,1); } } 2. { Buy("b4",OnClosE,DeF,진입수량1); ExitLong("bx4",AtStop,L); } ExitLong("bx5",AtStop,L[BarsSinceEntry]); 위의 식 중 ExitLong("bx4",AtStop,L); 은 중복된 의미라서 빼도 되는가요?