OPEN-SOURCE SCRIPT

2Mars strategy [OKX]

업데이트됨
The strategy is based on the intersection of two moving averages, which requires adjusting the parameters (ratio and multiplier) for the moving average.
Basis MA length: multiplier * ratio
Signal MA length: multiplier

The SuperTrend indicator is used for additional confirmation of entry into a position.
Bollinger Bands and position reversal are used for take-profit.
About stop loss:
If activated, the stop loss price will be updated on every entry.

Basic setup:
스냅샷

Additional:
스냅샷

Alerts for OKX:
스냅샷
릴리즈 노트
fixed stop loss messages and logic.
릴리즈 노트
fixed: problem with the timestamp, due to which signals did not arrive to the OKX exchange
릴리즈 노트
Fixed:
  • OKX alerts - priceOffset (Negative numbers cannot be used.)

Added:
  • Possibility to turn off - Cross MA strategy
  • Checking for trend for stop loss
릴리즈 노트
update: stop-loss logic
릴리즈 노트
Fixed:
*When an stoploss and takeprofit was triggered, double notification was sent to a "tradingview". With alerts to "OKX" had all well.

Update:
  • Strategy name
  • Change a default strategy style
  • Appearance of a the settings window


Added:
  • Options for a customiser ma, bb


When using the strategy only for alerts to the exchange OKX, you can use this: alert() function calls only. And the required webhook URL.
스냅샷
릴리즈 노트
fixed a conditions
릴리즈 노트
Fixed:
  • minor errors


Added:
  • SuperTrend + ATR option as stop-loss price
  • For ATR stop-loss: when "Use TP orders 3" on and price cross bb lower or upper line #3, updates a stop-loss price.
릴리즈 노트
Added:
  • Flex stop loss for ATR
  • Additional order entries
  • Stop loss price is now displayed

스냅샷
릴리즈 노트
Fixed:
  • Flex stop loss no longer affects SuperTrend + ATR
  • OKX: The price for a limit order is now sent more accurately
릴리즈 노트
fixed limit order alert
릴리즈 노트
Added:
  • Stop loss by StdDev

Changed:
  • Logic for additional shorts.
  • Logic updating stop loss price.
  • Before opening a position or when a stop loss (SuperTrend) is triggered, open orders in the opposite direction are now closed.


Attention!
If used additional short orders, stop loss or limit orders then need check profit after update.
릴리즈 노트
Fixed minor errors
Stop loss price display
릴리즈 노트
Strategy only for OKX exchange
For alerts, specify the message {{strategy.order.alert_message}}
릴리즈 노트
스냅샷
Added:
  • for take profit, comparison of the current price with the average entry price
  • display of the last limit order
  • entry points
릴리즈 노트
Added:
  • Choice fixed number of contracts for OKX alerts
  • Entry trigger
  • Stop-loss trigger
  • SuperTrend as entry signal
릴리즈 노트
Fixed limit orders alert
Bands and Channelsbollinger_bandscrossmamoving_averageMoving Averagesstoplosstakeprofit

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항