OPEN-SOURCE SCRIPT
Loft Strategy V4

This strategy is an advanced version of the Loft Strategy V1, I shared earlier. (Loft Strategy V1 consists of a kalman filter (by alexgrover) and a "stop and reverse" line which is following and the kalman filter. If the price goes in the same direction as the position side, the "stop and reverse" line approaches the kalman filter as set on the "Approach Decrease Step" parameter.)
In addition to the previous version, it includes a martingale like deviation and multiple take-profit.
Here it is some parameters definitions of the strategy:
In addition to the previous version, it includes a martingale like deviation and multiple take-profit.
Here it is some parameters definitions of the strategy:
- Kalman Filter: The higher this parameter, the faster and more aggressive the filter. Otherwise the filter goes very smoothly
- Beginning Approach: First approximation as a percentage of stop-n-reverse line
- Final Approach: Minimum approximation of stop-n-reverse line
- Approach Decrease Step: If the price moves in the same direction as the strategy, the approach percentage is reduced by this parameter. Otherwise nothing do
- Base Order Quantity: Initial capital of position
- Max Safe Order Attempt: This parameter determines the maximum number of times the strategy will raise the bet after losing in a row.
- Safe Order Deviation: if the last trade is loss, multiply the bet by this parameter (aka. martingale factor)
- Profit Deviation: if last trade in loss, multiply the take-profit points
- Max Order Quantity: Maximum capital allowed for a position
- TP1, TP2, TP3 : Take profit spots in percentage
- QT1, QT2, QT3: Amount of take-profit spots
- Stop Loss: Maximum stop loss allowed for a trade
- Long Entry, Short Entry: Only long side, only short side or both side
- Safe Stop After TP2: If the price reaches the TP2 point, move the stop-loss point to the entry price.
- Safe Stop After TP1: If the price reaches TP1, move the stop-loss point to the stop-n-reverse line.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.