커뮤니티

수식 변환 문의드립니다

프로필 이미지
미래펴다
2022-06-29 12:24:54
1768
글번호 160267
답변완료
트레이딩뷰 전략을 예스트레이더로 전환하여 이베스트에서 시스템트레이딩을 하려구요 trailPoints = input.int(50, "Trail Points (in ticks)") trailOffset = input.int(10, "Trail Offset (in ticks)") stopSize = input.int(100, "Stop Offset (in ticks)") longCondition = bar_index % 25 == 0 and not (strategy.closedtrades.exit_bar_index(strategy.closedtrades - 1) == bar_index) if (longCondition) strategy.entry("Long", strategy.long) strategy.exit("Exit", loss = stopSize, trail_points = trailPoints, trail_offset = trailOffset )
시스템
답변 2
프로필 이미지

예스스탁 예스스탁 답변

2022-06-29 14:41:13

안녕하세요 예스스탁입니다. input : trailPoints(50),trailOffset(10),stopSize(100); var : longCondition(False); longCondition = index % 25 == 0 and TotalTrades == TotalTrades[1]; if (longCondition) Then Buy("long"); SetStopLoss(stopsize*PriceScale ,PointStop); SetStopTrailing(trailOffset*PriceScale,trailPoints*PriceScale,PointStop); 즐거운 하루되세요 > 미래펴다 님이 쓴 글입니다. > 제목 : 수식 변환 문의드립니다 > 트레이딩뷰 전략을 예스트레이더로 전환하여 이베스트에서 시스템트레이딩을 하려구요 trailPoints = input.int(50, "Trail Points (in ticks)") trailOffset = input.int(10, "Trail Offset (in ticks)") stopSize = input.int(100, "Stop Offset (in ticks)") longCondition = bar_index % 25 == 0 and not (strategy.closedtrades.exit_bar_index(strategy.closedtrades - 1) == bar_index) if (longCondition) strategy.entry("Long", strategy.long) strategy.exit("Exit", loss = stopSize, trail_points = trailPoints, trail_offset = trailOffset )
프로필 이미지

미래펴다

2022-06-30 14:33:31

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식 변환 문의드립니다 > 안녕하세요 예스스탁입니다. input : trailPoints(50),trailOffset(10),stopSize(100); var : longCondition(False); longCondition = index % 25 == 0 and TotalTrades == TotalTrades[1]; if (longCondition) Then Buy("long"); SetStopLoss(stopsize*PriceScale ,PointStop); SetStopTrailing(trailOffset*PriceScale,trailPoints*PriceScale,PointStop); 즐거운 하루되세요 > 미래펴다 님이 쓴 글입니다. > 제목 : 수식 변환 문의드립니다 > 트레이딩뷰 전략을 예스트레이더로 전환하여 이베스트에서 시스템트레이딩을 하려구요 trailPoints = input.int(50, "Trail Points (in ticks)") trailOffset = input.int(10, "Trail Offset (in ticks)") stopSize = input.int(100, "Stop Offset (in ticks)") longCondition = bar_index % 25 == 0 and not (strategy.closedtrades.exit_bar_index(strategy.closedtrades - 1) == bar_index) if (longCondition) strategy.entry("Long", strategy.long) strategy.exit("Exit", loss = stopSize, trail_points = trailPoints, trail_offset = trailOffset ) 수식 작성에 감사합니다. 수식에 하나 더 추가하려고 하는데요 input 으로 진입 수량을 받아서 진입 과 청산을 할 수 있게 수식을 수정해주시면 정말 감사하겠습니다