Holds BTC while its 50-day average is above its 200-day average and the price is above the 50-day average; stays in cash otherwise. No shorts.
{
"benchmark": "BTCUSDT",
"costs": {
"feeBps": 10,
"slippageBps": 5
},
"kind": "rule",
"leverage": 1,
"rebalance": {
"everyDays": 1
},
"rule": {
"entryLong": {
"all": [
{
"left": {
"indicator": "sma",
"lookback": 50
},
"op": ">",
"right": {
"indicator": "sma",
"lookback": 200
}
},
{
"left": {
"indicator": "close"
},
"op": ">",
"right": {
"indicator": "sma",
"lookback": 50
}
}
]
},
"exitLong": {
"any": [
{
"left": {
"indicator": "close"
},
"op": "crosses_below",
"right": {
"indicator": "sma",
"lookback": 50
}
},
{
"left": {
"indicator": "sma",
"lookback": 50
},
"op": "<",
"right": {
"indicator": "sma",
"lookback": 200
}
}
]
},
"symbol": "BTCUSDT"
},
"schema": 1,
"start": "2021-01-01",
"timeframe": "1d",
"universe": {
"symbols": [
"BTCUSDT"
],
"type": "list"
}
}Each marker is a past date on which this strategy's rules entered or exited a position in BTCUSDT, at the average fill price. It is a record of that day, not a price to act at.
27 closed positions.