facejungle

2Mars strategy [OKX]

facejungle ที่อัปเดต:   
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

สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?