OPEN-SOURCE SCRIPT

3ngine Global Boilerplate

ที่อัปเดต:
ABOUT THE BOILERPLATE
This strategy is designed to bring consistency to your strategies. It includes a macro EMA filter for filtering out countertrend trades,
an ADX filter to help filter out chop, a session filter to filter out trades outside of desired timeframe, alert messages setup for automation,
laddering in/out of trades (up to 6 rungs), trailing take profit, and beautiful visuals for each entry. There are comments throughout the
strategy that provide further instructions on how to use the boilerplate strategy. This strategy uses `threengine_global_automation_library`
throughout and must be included at the top of the strategy using `import [path to latest version] as bot`. This allows you to use dot notation
to access functions in the library - EX: `bot.orderCurrentlyExists(orderID)`.

HOW TO USE THIS STRATEGY
1. Add your inputs
There is a section dedicated for adding your own inputs near the top of the strategy, just above the boilerplate inputs

2. Add your calculations
If your strategy requires calculations, place them in the `Strategy Specific Calculations` section

3. Add your entry criteria
  • Add your criteria to strategySpecificLongConditions (this gets combined with boilerplate conditions in longConditionsMet)
  • Add your criteria to strategySpecificShortConditions (this gets combined with boilerplate conditions in shortConditionsMet)
  • Set your desired entry price (calculated on every bar unless stored as a static variable) to longEntryPrice and shortEntryPrice. (This will be the FIRST ladder if using laddering capabilities. If you pick 1 for "Ladder In Rungs" this will be the only entry.)


4. Plot anything you want to overlay on the chart in addition to the boilerplate plots and labels. Included in boilerplate:
  • Average entry price
  • Stop loss
  • Trailing stop
  • Profit target
  • Ladder rungs
เอกสารเผยแพร่
Fixed some typos and formatting issues.
เอกสารเผยแพร่
Fixed a bunch of variable typos and issues with plot colors not being set correctly based on long vs short states.
เอกสารเผยแพร่
Lot of updates to the strategy to add laddering in.
เอกสารเผยแพร่
Fixed issues with laddering out of trades. Still an issue with ladder out exits not working as desired/expected. Fix coming soon.
เอกสารเผยแพร่
Lots o changes
เอกสารเผยแพร่
Laddering in and out is now fixed!

เอกสารเผยแพร่
Fixed Short trades which were closing right after opening.

Removed redundant strategy.exit() function that was outside of the logic it needed to be in.
เอกสารเผยแพร่
unifying variable format to use camel case everywhere instead of having a mix of underscores and camel case.
เอกสารเผยแพร่
Fixed bug that caused the ladder out quantities to be incorrect resulting in the wrong number of exit orders.
Average Directional Index (ADX)boilerplateExponential Moving Average (EMA)strategy

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

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

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


และใน:

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