TradingView
BlackNebula
Jan 22, 2019 10:56 AM

GRID RELOADED 1.0 

Bitcoin / US Dollar Perpetual Inverse Swap ContractBitMEX

Description

Script for grid trading on Bitmex XBTUSD 5min
A quick description for the input parameters. I can detail privately the ones that are important:
Points between two same dir trades = how much the price must change before a new DCA can happen
Points between SHORTS = same for short trades
Global Take Profit points = take profit for all open positions expressed in the same units as the price
Global Stop Loss points = same as for profit
Take Profit points decrease per bar = this is how much the target global profit decreases each bar toward zero
Trend up to start a trade long = wait for the DEMA to show a long slope before opening new long positions
Max long position = max n. of long positions
Check trend on trade = wait for a positive/negative bar before long/short
Min Stochastic overbought/sold for trade = wait for the stochastic to be below/above this before long/short
Limit Orders long % below close price = place limit orders % before current price. the order could be left pending.
DEMA 1 Length = periods of DEMA for trends
HA Candles = toggle a pattern match to enter trades

Release Notes

check trend on global take profit

Release Notes

Activated trend check. it makes sense in the current market scenario...
Comments
miaomiao18
Thanks for sharing! does it repaint?
BlackNebula
@miaomiao18, no repaint at all
miaomiao18
@BlackNebula, I just added the script to my charts on 5min BTCUSD. It doesn't look good
More