Welcome to my second published Trend-following strategy for bitcoin , designed specifically for BITMEX:XBTUSD on 4H
This is an extension of my first script but then for the 4H timeframe.
This script is the Alert script to use for settings up Alerts on Tradingview.
The accompanying strategy script and explanations/caveats you can find here:
In this script you will find the "active_long" and "active_long" variables (red and blue lines) that show which positions are being taken by the strategy script.
You can set 'Once per bar close' alerts for this to get your alerts on TV.
For instance, I use 'crossing up @ 0.1' on "active_long" to set an 'Open Long" alert and a 'crossing down @ 0.9' to set a 'Close Long' alert.
The same holds for the 'Open Short' and the 'Close Short' alerts but then for the 'active_short' variable.
I've also added start and end dates to test specific time periods.
Please let me know if you have any questions.
Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact Timmieman for more information, or follow the author's instructions below.
TradingView does not suggest paying for a script and using it until you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Public Library.
Warning: please read before requesting access.