Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX
Description
⋅
This is a study to the version of the strategy found here.
It generates 3 alerts:
CLOSE - Triggers to close all open positions LONG - Triggers to open a long position SHORT - Triggers to open a short position
Commands for alerts (without stop-loss) to get you started:
CLOSE - a=bitmex e=bitmextestnet c=position t=market LONG - a=bitmex e=bitmextestnet b=long s=xbtusd l=5 q=99% t=market SHORT - a=bitmex e=bitmextestnet b=short s=xbtusd l=5 q=99% t=market
I would advise including a stop-loss with your commands. These commands are for autoview and don't include a stop loss, use autoview command documentation to add stop-loss.
Alert does not trigger in tradingview. When it occured bgcolors are changing, but alarms are not triggered. Can you explain for me?
I tested 1m, 15m, 30m, 1h.
wwrekt
⋅
does it repaint?
ahancock
⋅
@wwrekt, nope, alert signals are generated on close of candles and are not altered.
robertocrypto
⋅
Looks awesome, thank you! When we change settings like Volume Threshold in order to get similar results from strategy to alert version we need to tweak Volume Smoothing in alert version that you added right? It just I can't get the very same results?
ahancock
⋅
@robertocrypto, I've pm'd you the script with alerts but without the volume calculation change as your are interested in the same results as study.
@ahancock, I too am noticing discrepancy between the trigger prices from study to script with alerts. Can you please send me the version that matches the backtested data?
ccon631
⋅
@ahancock, Or even better - the strategy of this modified/improved version? I am just trying to get accurate backtesting data to manage sizing and risk accordingly. Thanks!
TENcamp
⋅
i have a question about "exit_all_condition".
exit_condition and abs(position_signal[1]) > 0 is exit LONG POSITION.
abs(change(position_signal)) > 0) and abs(position_signal[1]) > 0 is exit SHORT POSITION.
I tested 1m, 15m, 30m, 1h.