A3-TAM Trend Strategy by DrBot
-
3/4/23: I had to adjust the TV(trading view) alerts to OPBC (except the short and long triggers which stay at OPB) due to all of the OPM surpassing a TV alert limit. When this happens (and it appears randomly, although its stated as >15/min) - it suspends alerts for a period of time which also appears randomly. This is reflected in screenshot comments, but not new screenshots.
-
Written code and descriptions ARE updated.
-
Retry count (960->160) and interval (60->360) as well as TTLs (60->720) are updated.
-
The only 24m alert (AO)’s TTL stays at 1440. It's a personal choice, but I usually buffer all TTLs with an extra 10s in case there is a delay from TV to the servers. In that case, eg, a ttl of 720 becomes 730.
Indicators:
- ATR/TS - BentonBuilding
- ANDEAN OSCILLATOR (AO)
- ADX (TV builtin “Directional Movement Index” or “DMI”)
- TrendAlert
- MCB: MOM, RSI, STO, MF
Settings:
- ATR/TS - 12m (chart 24m), 10/3
- AO - 24m, 50/9 (Defaults)
- ADX - 12m (chart 24m), 14/10
- TrendAlert, 12m, defaults (1d, 4h)
- MCB: 12m, defaults with Overbought=80, Oversold=20 Trigger 1 = 40, Trigger 2 = -40
- “5MF” = MF moving up 5 in 5 bars (Short Close)
or MF moving down 5 in 5 bars (Long Close)
Entry Trigger:
- [2/25/23] Changed max entries from ‘1 per side’ and ‘2 per coin’ to only ‘1 per label’
- ATR Short or Long
- Retry x 80b (960min)
Trigger Confirmationss:
- AO Red / Green > Signal, TTL 1440, OPBC
- ADX > 20, TTL 1440, OPBC
- TrendAlert, TTL 720, OPBC
- MCB MOM, LtB or DkB > 0 (Long), < 0 (Short), TTL 60, OPM OPBC [3/4/23]
Exit / TP: 100% of position
- ATR/TS; ‘LONG CONDITION’ & ‘SHORT CONDITION’ close opposite trade, OPBC “MCB” exit:
- STO or RSI ≥80% (OPM, TTL 60) +
- MOM (LtB or DkB) ≥ |40| (OPM, TTL 60) +
- 5MF Slope (OPB, TTL 720)
- TrendAlert; Close Long if < 0 & Close Short if > 0
- Max TP programmed into CFB = 10%
SL Adjustment:
-
Manual - future CFB feature will be able to do this
-
Best levels so far are quartiles from backtesting: .55,1.25, 1.80, 3 and 10 is set in opening signal
-
I am doing these manually until forward testing is complete
-
[2/25/23] Webhook message updated to use no less than .001 BTC for “percentToSell” (min ByBit trade allowance) for each “TP” listed above in order to move SL (only way to do this besides manual movement, at least until CFB is updated to allow SL move without a TP). Extra SL move set at .15% as well. YOU must adjust your own “percentToSell” based upon your trade position. I am still using a small test account, so the percentage per TP is likely to be quite different from what you may need to use. I estimated using BTC @ 20,000. Also, be sure to calculate your balancePercent and leverage to your risk tolerance. I personally keep mine between 1-5%, even though these are just paper trades.
-
Safety SL at 1.65%
OPENING SIGNALS
{
"symbol": "BTCUSDT",
"side": "buy",
"entryOrderType": "limit",
"leverage": 15,
"notifyDiscordChannel": true,
"minimumValue": 0,
"minimumAvailableBalancePercent": 0,
"balancePercent": 20,
"extraStopLossMovePercent": 0.15,
"takeProfits": [
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 0.55
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 1.25
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 1.8
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 3
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 5
},
{
"percentToSell": 100,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 10
}
],
"label": "3A-TAM LONG",
"marketStopLossPercent": 1.65,
"requiredIndicators": [
{
"name": "3A-TAM ADX",
"value": "TREND"
},
{
"name": "3A-TAM TRENDALERT",
"value": "LONG"
},
{
"name": "3A-TAM MCB MOM",
"value": "POS"
},
{
"name": "3A-TAM AO",
"value": "LONG"
}
],
"entryOrderTimeoutSeconds": 900,
"retryCount": 160,
"retryDelay": 360,
"maxEntriesPerLabel": 1
}
{
"symbol": "BTCUSDT",
"side": "sell",
"entryOrderType": "limit",
"leverage": 15,
"notifyDiscordChannel": true,
"minimumValue": 0,
"minimumAvailableBalancePercent": 0,
"extraStopLossMovePercent": 0.15,
"takeProfits": [
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 0.55
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 1.25
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 1.8
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 3
},
{
"percentToSell": 0.3,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 5
},
{
"percentToSell": 100,
"skipStopLossMove": false,
"percentAboveOrBelowMarketPrice": 10
}
],
"label": "3A-TAM SHORT",
"marketStopLossPercent": 1.65,
"requiredIndicators": [
{
"name": "3A-TAM ADX",
"value": "TREND"
},
{
"name": "3A-TAM TRENDALERT",
"value": "SHORT"
},
{
"name": "3A-TAM MCB MOM",
"value": "NEG"
},
{
"name": "3A-TAM AO",
"value": "SHORT"
}
],
"balancePercent": 20,
"entryOrderTimeoutSeconds": 900,
"retryCount": 160,
"retryDelay": 360,
"maxEntriesPerLabel": 1
}
OPEN CONFIRMATIONS
CLOSING SIGNALS
{
"symbol": "BTCUSDT",
"side": "buy",
"closeOrderType": "market",
"positionPercent": 100,
"requiredIndicators": [
{
"name": "3A-TAM MCB MOM EXIT",
"value": "CLOSE LONG"
},
{
"name": "3A-TAM MCB RSI EXIT",
"value": "CLOSE LONG"
},
{
"name": "3A-TAM 5MF SLOPE",
"value": "CLOSE LONG"
}
],
"label": "3A-TAM LONG",
"closeByLabel": true
}
{
"symbol": "BTCUSDT",
"side": "sell",
"closeOrderType": "market",
"positionPercent": 100,
"requiredIndicators": [
{
"name": "3A-TAM MCB MOM EXIT",
"value": "CLOSE SHORT"
},
{
"name": "3A-TAM MCB RSI EXIT",
"value": "CLOSE SHORT"
},
{
"name": "3A-TAM 5MF SLOPE",
"value": "CLOSE SHORT"
}
],
"label": "3A-TAM SHORT",
"closeByLabel": true
}
TRENDALERT CLOSES
ATR/TS CLOSES
MCB CLOSE CONFIRMATIONS & MCB SETTINGS