커뮤니티

TS code를 YT로 변환 중 어려움이 생겨서요...

프로필 이미지
호리
2009-01-04 11:38:36
890
글번호 19186
답변완료
< EL mode로 작업했습니다> 내용 : DMA channel 상단 돌파 & RangeLeader라는 조건 만족시 매수 or 매도 청산 : breakeven stop dollar trailing stop(최고점 대비 일정 금액 or point 감소하면 청산), stoploss(일반적 손절매, point 기준) 검증은 되는데, 연결선물 차트에 작업하려니 에러가 납니다... 에러가 안 나려면 어떻게 해야하는지 좀 수정해 주세요 Inputs: PositionBasis(True), FloorAmnt(0); Inputs: Length(20), Displacement(5); Variables: UpperBand(0), LowerBand(0), BuyRangeLeader(False), SellRangeLeader(False); Inputs: Amountdll(0); UpperBand = Average(High, Length)[Displacement]; LowerBand = Average(Low, Length)[Displacement]; BuyRangeLeader = MedianPrice > High[1] AND Range > Range[1]; SellRangeLeader = MedianPrice < Low[1] AND Range > Range[1]; If BuyRangeLeader AND Close > UpperBand Then Buy Next Bar at High + 1 point Stop; If SellRangeLeader AND Close < LowerBand Then Sell Next Bar at Low - 1 point Stop; //Breakeven stop-Floor If PositionBasis Then SetStopPosition Else SetStopContract; SetBreakeven(FloorAmnt); //Dollar Trailing Stop If PositionBasis Then SetStopPosition Else SetStopContract; SetstopTrailing(Amountdll,0.5,pointstop,1); //Stoploss If PositionBasis Then SetStopPosition Else SetStopContract; SetStopLoss(Amountdll);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-01-05 11:42:59

안녕하세요 예스스탁이니다. EL모드에 대해 문제가 있는지 확인중입니다. 확인이 되면 다시 답변드리도록 하겠습니다. 즐거운 하루되세요 > 호리 님이 쓴 글입니다. > 제목 : TS code를 YT로 변환 중 어려움이 생겨서요... > < EL mode로 작업했습니다> 내용 : DMA channel 상단 돌파 & RangeLeader라는 조건 만족시 매수 or 매도 청산 : breakeven stop dollar trailing stop(최고점 대비 일정 금액 or point 감소하면 청산), stoploss(일반적 손절매, point 기준) 검증은 되는데, 연결선물 차트에 작업하려니 에러가 납니다... 에러가 안 나려면 어떻게 해야하는지 좀 수정해 주세요 Inputs: PositionBasis(True), FloorAmnt(0); Inputs: Length(20), Displacement(5); Variables: UpperBand(0), LowerBand(0), BuyRangeLeader(False), SellRangeLeader(False); Inputs: Amountdll(0); UpperBand = Average(High, Length)[Displacement]; LowerBand = Average(Low, Length)[Displacement]; BuyRangeLeader = MedianPrice > High[1] AND Range > Range[1]; SellRangeLeader = MedianPrice < Low[1] AND Range > Range[1]; If BuyRangeLeader AND Close > UpperBand Then Buy Next Bar at High + 1 point Stop; If SellRangeLeader AND Close < LowerBand Then Sell Next Bar at Low - 1 point Stop; //Breakeven stop-Floor If PositionBasis Then SetStopPosition Else SetStopContract; SetBreakeven(FloorAmnt); //Dollar Trailing Stop If PositionBasis Then SetStopPosition Else SetStopContract; SetstopTrailing(Amountdll,0.5,pointstop,1); //Stoploss If PositionBasis Then SetStopPosition Else SetStopContract; SetStopLoss(Amountdll);