Big banks just passed their stress tests with flying colors while tech wobbles —
Created
Thesis
The Federal Reserve gave every major bank a passing grade on its stress tests, allowing giants like JPMorgan and Goldman Sachs to unleash $50 billion in stock buybacks and dividend hikes. While the broader S&P 500 sits at a dangerous technical cliff and tech stocks sell off, the banking sector is flush with cash and returning it to shareholders. Additionally, Trump's recent backing off of the Fed chairman suggests potential rate cuts ahead, which usually helps banks' profit margins.
Strategy approach
Build a relative-strength rotation strategy on XLF vs QQQ using the D1 timeframe. Enter long XLF when its 20-day price performance is positive while QQQ's 20-day performance is negative. Exit when QQQ's 20-day performance crosses back above XLF's performance, or after a 30-day hold.
Markets and timeframes
Entry and exit at a glance
These are the named rules in the shared configuration. Review the full conditions below before using a strategy.
- Entry: ROC/ADX/EMA Crossover Long (GS@1d) (4 conditions)
- Entry: ROC/ADX/EMA Crossover Long (JPM@1d) (4 conditions)
- Entry: ROC/ADX/EMA Crossover Long (XLF@1d) (4 conditions)
- Entry: ROC/ADX/EMA Crossover Long (MS@1d) (4 conditions)
- Entry: ROC/ADX/EMA Crossover Long (BAC@1d) (4 conditions)
- Entry: ROC/ADX/EMA Signal Long (GS@1d) (3 conditions)
- Entry: ROC/ADX/EMA Signal Long (JPM@1d) (3 conditions)
- Entry: ROC/ADX/EMA Signal Long (XLF@1d) (3 conditions)
- Entry: ROC/ADX/EMA Signal Long (MS@1d) (3 conditions)
- Entry: ROC/ADX/EMA Signal Long (BAC@1d) (3 conditions)
- Entry: Crossover Long (GS@1d) (1 condition)
- Entry: Crossover Long (JPM@1d) (1 condition)
- Entry: Crossover Long (XLF@1d) (1 condition)
- Entry: Crossover Long (MS@1d) (1 condition)
- Entry: Crossover Long (BAC@1d) (1 condition)
- Exit: TP: Near Resistance[2] (GS@1d) (1 condition)
- Exit: TP: Near Resistance[2] (JPM@1d) (1 condition)
- Exit: TP: Near Resistance[2] (XLF@1d) (1 condition)
- Exit: TP: Near Resistance[2] (MS@1d) (1 condition)
- Exit: TP: Near Resistance[2] (BAC@1d) (1 condition)
- Exit: SL: Below Support[1] (GS@1d) (1 condition)
- Exit: SL: Below Support[1] (JPM@1d) (1 condition)
- Exit: SL: Below Support[1] (XLF@1d) (1 condition)
- Exit: SL: Below Support[1] (MS@1d) (1 condition)
- Exit: SL: Below Support[1] (BAC@1d) (1 condition)
- Exit: Stop Loss at 2.6% (1 condition)
- Exit: Take Profit at 5.2% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "GS",
"timeframe": "1d"
},
{
"symbol": "JPM",
"timeframe": "1d"
},
{
"symbol": "XLF",
"timeframe": "1d"
},
{
"symbol": "MS",
"timeframe": "1d"
},
{
"symbol": "BAC",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_gs",
"name": "ROC/ADX/EMA Crossover Long (GS@1d)",
"priority": 1,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_jpm",
"name": "ROC/ADX/EMA Crossover Long (JPM@1d)",
"priority": 2,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_xlf",
"name": "ROC/ADX/EMA Crossover Long (XLF@1d)",
"priority": 3,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ms",
"name": "ROC/ADX/EMA Crossover Long (MS@1d)",
"priority": 4,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_bac",
"name": "ROC/ADX/EMA Crossover Long (BAC@1d)",
"priority": 5,
"trade_symbol": "BAC"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_gs",
"name": "ROC/ADX/EMA Signal Long (GS@1d)",
"priority": 2,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_jpm",
"name": "ROC/ADX/EMA Signal Long (JPM@1d)",
"priority": 3,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_xlf",
"name": "ROC/ADX/EMA Signal Long (XLF@1d)",
"priority": 4,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_ms",
"name": "ROC/ADX/EMA Signal Long (MS@1d)",
"priority": 5,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_bac",
"name": "ROC/ADX/EMA Signal Long (BAC@1d)",
"priority": 6,
"trade_symbol": "BAC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_gs",
"name": "Crossover Long (GS@1d)",
"priority": 2,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_jpm",
"name": "Crossover Long (JPM@1d)",
"priority": 3,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_xlf",
"name": "Crossover Long (XLF@1d)",
"priority": 4,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_ms",
"name": "Crossover Long (MS@1d)",
"priority": 5,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_bac",
"name": "Crossover Long (BAC@1d)",
"priority": 6,
"trade_symbol": "BAC"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_gs",
"name": "TP: Near Resistance[2] (GS@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "GS"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_jpm",
"name": "TP: Near Resistance[2] (JPM@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "JPM"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_xlf",
"name": "TP: Near Resistance[2] (XLF@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "XLF"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_ms",
"name": "TP: Near Resistance[2] (MS@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "MS"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_bac",
"name": "TP: Near Resistance[2] (BAC@1d)",
"priority": 100,
"purpose": "take_profit",
"target_symbol": "BAC"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_gs",
"name": "SL: Below Support[1] (GS@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "GS"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_jpm",
"name": "SL: Below Support[1] (JPM@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "JPM"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_xlf",
"name": "SL: Below Support[1] (XLF@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "XLF"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_ms",
"name": "SL: Below Support[1] (MS@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "MS"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_bac",
"name": "SL: Below Support[1] (BAC@1d)",
"priority": 104,
"purpose": "stop_loss",
"target_symbol": "BAC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.603266666666667
}
}
],
"enabled": true,
"id": "exit_3",
"name": "Stop Loss at 2.6%",
"priority": 100,
"purpose": "stop_loss"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 5.206533333333334
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Take Profit at 5.2%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 20,
"method": {
"risk_percent": 2.603266666666667,
"support_stop_rank": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "roc",
"period": 20
},
{
"name": "ema",
"period": 20
},
{
"name": "adx",
"period": 14
},
{
"name": "roc",
"period": 20
},
{
"name": "ema",
"period": 20
},
{
"name": "adx",
"period": 14
},
{
"name": "roc",
"period": 20
},
{
"name": "ema",
"period": 20
},
{
"name": "adx",
"period": 14
},
{
"name": "roc",
"period": 20
},
{
"name": "ema",
"period": 20
},
{
"name": "adx",
"period": 14
},
{
"name": "roc",
"period": 20
},
{
"name": "ema",
"period": 20
},
{
"name": "adx",
"period": 14
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "GS",
"timeframe": "1d"
},
{
"symbol": "JPM",
"timeframe": "1d"
},
{
"symbol": "XLF",
"timeframe": "1d"
},
{
"symbol": "MS",
"timeframe": "1d"
},
{
"symbol": "BAC",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_gs",
"name": "ROC/ADX/EMA Crossover Long (GS@1d)",
"priority": 1,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_jpm",
"name": "ROC/ADX/EMA Crossover Long (JPM@1d)",
"priority": 2,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_xlf",
"name": "ROC/ADX/EMA Crossover Long (XLF@1d)",
"priority": 3,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ms",
"name": "ROC/ADX/EMA Crossover Long (MS@1d)",
"priority": 4,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_bac",
"name": "ROC/ADX/EMA Crossover Long (BAC@1d)",
"priority": 5,
"trade_symbol": "BAC"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "GS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_gs",
"name": "ROC/ADX/EMA Signal Long (GS@1d)",
"priority": 2,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "JPM",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_jpm",
"name": "ROC/ADX/EMA Signal Long (JPM@1d)",
"priority": 3,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "XLF",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_xlf",
"name": "ROC/ADX/EMA Signal Long (XLF@1d)",
"priority": 4,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "MS",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_ms",
"name": "ROC/ADX/EMA Signal Long (MS@1d)",
"priority": 5,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "roc",
"period": 20
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 0
}
},
{
"left": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"field": "adx",
"indicator": {
"name": "adx",
"period": 14
},
"type": "indicator"
},
"operator": "greater_than",
"right": {
"type": "constant",
"value": 25
}
},
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "BAC",
"timeframe": "1d"
},
"indicator": {
"name": "ema",
"period": 20
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_bac",
"name": "ROC/ADX/EMA Signal Long (BAC@1d)",
"priority": 6,
"trade_symbol": "BAC"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_gs",
"name": "Crossover Long (GS@1d)",
"priority": 2,
"trade_symbol": "GS"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_jpm",
"name": "Crossover Long (JPM@1d)",
"priority": 3,
"trade_symbol": "JPM"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_xlf",
"name": "Crossover Long (XLF@1d)",
"priority": 4,
"trade_symbol": "XLF"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_ms",
"name": "Crossover Long (MS@1d)",
"priority": 5,
"trade_symbol": "MS"
},
{
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"rank": 1,
"type": "resistance_level"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_bac",
"name": "Crossover Long (BAC@1d)",
"priority": 6,
"trade_symbol": "BAC"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_gs",
"name": "TP: Near Resistance[2] (GS@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "GS"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_jpm",
"name": "TP: Near Resistance[2] (JPM@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "JPM"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_xlf",
"name": "TP: Near Resistance[2] (XLF@1d)",
"priority": 98,
"purpose": "take_profit",
"target_symbol": "XLF"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_ms",
"name": "TP: Near Resistance[2] (MS@1d)",
"priority": 99,
"purpose": "take_profit",
"target_symbol": "MS"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"rank": 2,
"type": "resistance_level"
}
}
],
"enabled": true,
"id": "exit_1_bac",
"name": "TP: Near Resistance[2] (BAC@1d)",
"priority": 100,
"purpose": "take_profit",
"target_symbol": "BAC"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_gs",
"name": "SL: Below Support[1] (GS@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "GS"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_jpm",
"name": "SL: Below Support[1] (JPM@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "JPM"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_xlf",
"name": "SL: Below Support[1] (XLF@1d)",
"priority": 102,
"purpose": "stop_loss",
"target_symbol": "XLF"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_ms",
"name": "SL: Below Support[1] (MS@1d)",
"priority": 103,
"purpose": "stop_loss",
"target_symbol": "MS"
},
{
"applies_to": "long",
"conditions": [
{
"left": {
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"rank": 1,
"type": "support_level"
}
}
],
"enabled": true,
"id": "exit_2_bac",
"name": "SL: Below Support[1] (BAC@1d)",
"priority": 104,
"purpose": "stop_loss",
"target_symbol": "BAC"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2.603266666666667
}
}
],
"enabled": true,
"id": "exit_3",
"name": "Stop Loss at 2.6%",
"priority": 100,
"purpose": "stop_loss"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 5.206533333333334
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Take Profit at 5.2%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 20,
"method": {
"risk_percent": 2.603266666666667,
"support_stop_rank": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'Big banks just passed their stress tests with flying colors while tech wobbles — rotate into JPMorgan and Goldman'. Thesis: The Federal Reserve gave every major bank a passing grade on its stress tests, allowing giants like JPMorgan and Goldman Sachs to unleash $50 billion in stock buybacks and dividend hikes. While the broader S&P 500 sits at a dangerous technical cliff and tech stocks sell off, the banking sector is flush with cash and returning it to shareholders. Additionally, Trump's recent backing off of the Fed chairman suggests potential rate cuts ahead, which usually helps banks' profit margins.
Performance
No trade count, win rate, or realized P&L figures are provided in this public preview. The thesis and shared rules do not establish a performance record.
What this public preview can establish
- The thesis and strategy approach describe a market view. They do not show whether an entry or exit condition is currently met.
- Technical strategy fields are shared above. Inspect the actual conditions and check when they were evaluated before relying on them.
- No trade count, win rate, or P&L figure is published in this preview. It cannot establish a performance record.
Explore
How CommonQuant researches and tests strategies · Public paper-trading record and its limits · Discover public strategies