커뮤니티
조건 식 작성 ? 방법
2013-06-18 08:28:34
217
글번호 64416
안녕하세요
아래 참고로 식을 한번 만들어 봤습니다 ㅠㅠ 제가 이렇게까지했지만 모자랍니다 ㅠ
아래 참고 식 처럼 비슷하게 하시고 추가질문한것 합쳐주십시요 ㅠㅠ
멘날 도움요청드려서 미안하고 감사해 ㅠㅠ
피라미딩 말구 따로따로 주문되도록 해주십시요
질문1
목표값. 도달하고. 나서 다시. 10봉내려.가면 매수
20봉. 내려.가면 매수.
30봉 내려가면. 매수
40봉. 내려가면 매수.
50봉. 내려가면. 매수
추가 질문 2
목표. 나오고나서. 아래와같이.하락하여 매수
3%. 하락하여. 매수
5%. 하락하여. 매수
10%. 하락하여. 매수
15%. 하락하여. 매수
[참고]
SetStopProfittarget(5,pointstop);
if ma(c,5)> ma(c,10) then
buy("매수",atmarket);
if isentryname("매수",1) and C < ExitPrice(1)-0.5 and ma(c,5)< ma(c,10) then
buy("재진입",atmarket);
SetStopProfittarget(10,pointstop);
if ma(c,5)> ma(c,10) then
buy("매수1",atmarket);
if isentryname("매수1",1) and C < ExitPrice(1)-0.5 and ma(c,5)< ma(c,10) then
buy("재진입1",atmarket);
감사^
답변 1
예스스탁 예스스탁 답변
2013-06-18 15:13:25
안녕하세요
예스스탁입니다.
1번은 정확히 이해가 되지 않습니다.
2번식만 작성해 드립니다.
목표수익 청산후에 재진입하는 식입니다.
피라미딩은 다른진입신호만 허용으로 하시면 됩니다.
if MarketPosition == 0 and ma(c,5)> ma(c,10) then
buy("매수",atmarket);
if IsExitName("StopProfittarget",1) == true and MarketPosition >= 0 Then{
buy("재진입1",atlimit,ExitPrice(1)*0.97);
buy("재진입2",atlimit,ExitPrice(1)*0.95);
buy("재진입3",atlimit,ExitPrice(1)*0.90);
buy("재진입4",atlimit,ExitPrice(1)*0.85);
}
SetStopProfittarget(10,pointstop);
즐거운 하루되세요
> yang오뚜기 님이 쓴 글입니다.
> 제목 : 조건 식 작성 ? 방법
> 안녕하세요
아래 참고로 식을 한번 만들어 봤습니다 ㅠㅠ 제가 이렇게까지했지만 모자랍니다 ㅠ
아래 참고 식 처럼 비슷하게 하시고 추가질문한것 합쳐주십시요 ㅠㅠ
멘날 도움요청드려서 미안하고 감사해 ㅠㅠ
피라미딩 말구 따로따로 주문되도록 해주십시요
질문1
목표값. 도달하고. 나서 다시. 10봉내려.가면 매수
20봉. 내려.가면 매수.
30봉 내려가면. 매수
40봉. 내려가면 매수.
50봉. 내려가면. 매수
추가 질문 2
목표. 나오고나서. 아래와같이.하락하여 매수
3%. 하락하여. 매수
5%. 하락하여. 매수
10%. 하락하여. 매수
15%. 하락하여. 매수
[참고]
SetStopProfittarget(5,pointstop);
if ma(c,5)> ma(c,10) then
buy("매수",atmarket);
if isentryname("매수",1) and C < ExitPrice(1)-0.5 and ma(c,5)< ma(c,10) then
buy("재진입",atmarket);
SetStopProfittarget(10,pointstop);
if ma(c,5)> ma(c,10) then
buy("매수1",atmarket);
if isentryname("매수1",1) and C < ExitPrice(1)-0.5 and ma(c,5)< ma(c,10) then
buy("재진입1",atmarket);
감사^