커뮤니티

문의드려요

프로필 이미지
회원
2012-04-20 09:22:47
408
글번호 50269
답변완료
if 명령어는 완성시에 검색된다고 수식작성 Q&A 보았는데 현재 검색 가능한 명령어는 어떤것이 있나요??? 이것을 바꾸고싶어요 input : p1(12),P2(26),P3(9),sto1(10),sto2(5),sto3(0); if data1(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data2(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data3(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data4(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data5(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data6(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data7(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) Then buy(); if data3(StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) Then exitlong(); SetStopLoss(1); SetStopProfittarget(1);
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-04-20 11:37:53

안녕하세요 예스스탁입니다. 문의하신 내용은 봉완성시로만 가능합니다. 수식에서 봉미완성일때 신호가 발생할 수 있는 타입으로 atstop과 atlimit이 있습니다. 이 두개의 타입은 현재봉에서 계산되는 특정값과 현재시세를 서로 비교해서는 신호를 발생할 수 없고 항상 최근 완성된봉(직전봉)에서 특정 값을 셋팅한 후에 현재시세와 비교해서 신호를 발생할 수 있습니다. 모두 주종목(data1)의 가격으로만 가능합니다. 작성하신 식은 참조데이터를 이용하는 내용이므로 봉완성시로만 작성가능합니다. 즐거운 하루되세요 > WT_shwldnjs 님이 쓴 글입니다. > 제목 : 문의드려요 > if 명령어는 완성시에 검색된다고 수식작성 Q&A 보았는데 현재 검색 가능한 명령어는 어떤것이 있나요??? 이것을 바꾸고싶어요 input : p1(12),P2(26),P3(9),sto1(10),sto2(5),sto3(0); if data1(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data2(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data3(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data4(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data5(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data6(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) and data7(macd(P1,P2) > ema(macd(P1,P2),P3) and StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) Then buy(); if data3(StochasticsK(sto1,sto2) > StochasticsD(sto1,sto2,sto3)) Then exitlong(); SetStopLoss(1); SetStopProfittarget(1);