커뮤니티

수식 검토 요청드립니다

프로필 이미지
부동여산
2020-01-17 13:03:24
155
글번호 135227
답변완료
FastMA = ma(C , FastLen ); SlowMA = ma(C , SlowLen ); 매도맥스이격 = FastMA * (1-((이격도/100))); 매수맥스이격 = FastMA * (1+((이격도/100))); if!(stime >= 033500 and stime <= 040000) then{ If CrossUp(FastMA , SlowMA) and index > 1 then { LEntryPrice = Highest(H , TrailBar )[1]; LCount = index; } If MarketPosition <> 1 AND index < LCount + ChLen AND LEntryPrice < 매수맥스이격 then Buy ("매수진입", atstop,LEntryPrice); LEntryPrice < 매수맥스이격 이 부분이 먹히지가 않습니다. 원하는것은 LEntryPrice가 매수맥스이격보다 작을때 작동하는 식을 만드려고 합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-01-17 14:45:02

안녕하세요 예스스탁입니다. 올려주신 수식에 별도로 문제점이 없습니다. 아래와 같이 임의로 외부변수 지정해서 해외선물에 적용하면 신호가 나오고 있습니다. input : fastlen(5),slowlen(20),이격도(0.3),TrailBar(20),ChLen(5); var : FastMA(0),SLowMA(0),매도맥스이격(0),매수맥스이격(0); var : LEntryPrice(0),Lcount(0); FastMA = ma(C , FastLen ); SlowMA = ma(C , SlowLen ); 매도맥스이격 = FastMA * (1-((이격도/100))); 매수맥스이격 = FastMA * (1+((이격도/100))); if !(stime >= 033500 and stime <= 040000) then { If CrossUp(FastMA , SlowMA) and index > 1 then { LEntryPrice = Highest(H , TrailBar )[1]; LCount = index; } } If MarketPosition <> 1 AND index < LCount + ChLen AND LEntryPrice < 매수맥스이격 then Buy ("매수진입", atstop,LEntryPrice); if MarketPosition == 1 and CrossDown(FastMA,SlowMA) Then exitlong(); 즐거운 하루되세요 > 부동여산 님이 쓴 글입니다. > 제목 : 수식 검토 요청드립니다 > FastMA = ma(C , FastLen ); SlowMA = ma(C , SlowLen ); 매도맥스이격 = FastMA * (1-((이격도/100))); 매수맥스이격 = FastMA * (1+((이격도/100))); if!(stime >= 033500 and stime <= 040000) then{ If CrossUp(FastMA , SlowMA) and index > 1 then { LEntryPrice = Highest(H , TrailBar )[1]; LCount = index; } If MarketPosition <> 1 AND index < LCount + ChLen AND LEntryPrice < 매수맥스이격 then Buy ("매수진입", atstop,LEntryPrice); LEntryPrice < 매수맥스이격 이 부분이 먹히지가 않습니다. 원하는것은 LEntryPrice가 매수맥스이격보다 작을때 작동하는 식을 만드려고 합니다.