Dragon-Bot

Dragon Bot - Default Script

Dragon Script is a framework to make it as easy as possible to test your own strategies and set alerts for external execution bots.
The script has many features build in, like:
1) A ping/pong mechanism between longs and shorts
2) A stop-loss
3) Trailing Stops with several ways to calculate them.
4) 2 different ways to flip from long to short.

The script is divided into several parts.

The first part of the script is used to set all the variables. You should normally never change the first part except for the comments at the top.
The second part of the script is the part where you initialise all your indicators. Several indicators can be found on Tradingview and on other sites. Please keep in mind that all the variable names used in the indicator should be unique. (all the … = … parts)

The third part of the script, is the most important part of the script. Here you can create the entry and exit points.
Let’s look at the OPENLONG function to explain this part: The first variables are all the possible entries; These are longentry1 till longentry5. You can add many more if you like.
The variables are all initialised as being false. This way the script can set a value to true if an entry happens.

The if function is the actual logic: You could say “if this is true” then (the line below the if function) longentry1 := (becomes) true.
In this case we have said: “if this is true” then (the line below the if function) longentry1 := (becomes) true when the current close is larger than the close that is 1 back.
The last part is the makelong_funct. This part says that if any of the entries are true, the whole function is true.

The last part of the script is the actual execution. Here the alerts are plotted and the back test strategies are opened and closed.

We hope you guys like it and all feedback is welcome!
發布通知: Added more specific comments
發布通知: Fixed a small bug in the logic and some comments..
發布通知: The script now allows for pyramid orders and when flipping the order it closes the old one.
發布通知: Small update
從喜愛的腳本中移除 添加到喜愛的腳本
Draeon Dragon-Bot is the most advanced pine executer with many features like:
1) smart checking of orders for execution
2) true take-profit orders
3) extra stop-loss checks

https://draeon.com
Awesome stuff man! I really appreciate your work and that you publish this :)
回覆
Nice
回覆
@dpanday, Thanks :) This script is meant to accompany our own execution bot @ https://draeon.com.
It has many features that our exclusive to our bot. Send me a message if you like more information.
回覆
Dragon-Bot Dragon-Bot
* "It has many features ARE exclusive".. Sorry for the typo.
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 網站規則 版主 網站 & 經紀商解決方案 小工具 圖表解決方案 尋求幫助 功能請求 部落格 & 新聞 常見問題 維基 推特
概述 個人資料設定 賬戶和賬單 尋求幫助 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出