This script is designed for XBT/USD on Bitmex 4hr chart.
The signals are generated from a calculation of the overall super trend using ATR.
The stop loss level is also determined by a separate ATR calculation. This allows for dynamic stop loss placement depending on how volatile the market. Lower ATR = tighter Stop.
I tried a Take-Profit function but it seems the best results I can find come from exiting a trade upon an opposing signal.
INSTRUCTIONS
1. Go Long when background turns green, or short when it turns red.
2. Set your stop loss as indicated on the chart by the dotted lines. Yellow is stop loss for a long signal, orange for short.
3. Exit on an opposing signal.
NB: the Stop losses are only plotted on the chart when we are not stopped out. If we get stopped out, we wait for the next signal.