The fastest foreign outflow from Brazilian stocks in five years is a classic cap
Created
Thesis
The fastest foreign outflow from Brazilian stocks in five years is a classic capitulation signal — when everyone rushes for the exits at once, prices often overshoot to the downside and create bargain entry points. The timing is ideal because US inflation just came in soft, which takes the pressure off the Fed to keep raising rates. When the Fed stops hiking, the US dollar typically weakens, and a weaker dollar is a direct tailwind for emerging market stocks priced in local currencies. You are buying a hated, washed-out market right when the macro backdrop is shifting in its favor.
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: BB/WILLIAMSR/MACD Crossover Long (EWZ@1d) (4 conditions)
- Entry: BB/WILLIAMSR/MACD Crossover Long (FLBR@1d) (4 conditions)
- Entry: BB/WILLIAMSR/MACD Crossover Long (EWZ@1d) (3 conditions)
- Entry: BB/WILLIAMSR/MACD Crossover Long (FLBR@1d) (3 conditions)
- Entry: Long Entry Signal (EWZ@1d) (2 conditions)
- Entry: Long Entry Signal (FLBR@1d) (2 conditions)
- Exit: MACD Crosses Below Exit (EWZ@1d) (3 conditions)
- Exit: MACD Crosses Below Exit (FLBR@1d) (3 conditions)
- Exit: TP: Fib Extension 127.2% (EWZ@1d) (1 condition)
- Exit: TP: Fib Extension 127.2% (FLBR@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (EWZ@1d) (1 condition)
- Exit: SL: Fib Retracement 78.6% (FLBR@1d) (1 condition)
- Exit: Stop Loss at 2.0% (1 condition)
- Exit: Take Profit at 4.0% (1 condition)
Shared strategy rules
Rule configuration
{
"data_dependencies": [
{
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
{
"symbol": "STOCK:FLBR",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ewz",
"name": "BB/WILLIAMSR/MACD Crossover Long (EWZ@1d)",
"priority": 1,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_flbr",
"name": "BB/WILLIAMSR/MACD Crossover Long (FLBR@1d)",
"priority": 2,
"trade_symbol": "STOCK:FLBR"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_ewz",
"name": "BB/WILLIAMSR/MACD Crossover Long (EWZ@1d)",
"priority": 2,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_flbr",
"name": "BB/WILLIAMSR/MACD Crossover Long (FLBR@1d)",
"priority": 3,
"trade_symbol": "STOCK:FLBR"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_ewz",
"name": "Long Entry Signal (EWZ@1d)",
"priority": 2,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_flbr",
"name": "Long Entry Signal (FLBR@1d)",
"priority": 3,
"trade_symbol": "STOCK:FLBR"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_below",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 60
}
}
],
"enabled": true,
"id": "exit_1_ewz",
"name": "MACD Crosses Below Exit (EWZ@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_below",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 60
}
}
],
"enabled": true,
"id": "exit_1_flbr",
"name": "MACD Crosses Below Exit (FLBR@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_ewz",
"name": "TP: Fib Extension 127.2% (EWZ@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_flbr",
"name": "TP: Fib Extension 127.2% (FLBR@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_ewz",
"name": "SL: Fib Retracement 78.6% (EWZ@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_flbr",
"name": "SL: Fib Retracement 78.6% (FLBR@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.0%",
"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": 4
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 4.0%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Indicator configuration
{
"indicators": [
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"name": "williams_r",
"period": 14
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
{
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
{
"name": "williams_r",
"period": 14
},
{
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
}
]
}Parsed strategy
{
"data_dependencies": [
{
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
{
"symbol": "STOCK:FLBR",
"timeframe": "1d"
}
],
"entry_rules": [
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_ewz",
"name": "BB/WILLIAMSR/MACD Crossover Long (EWZ@1d)",
"priority": 1,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_1_flbr",
"name": "BB/WILLIAMSR/MACD Crossover Long (FLBR@1d)",
"priority": 2,
"trade_symbol": "STOCK:FLBR"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_ewz",
"name": "BB/WILLIAMSR/MACD Crossover Long (EWZ@1d)",
"priority": 2,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "less_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "lower",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"indicator": {
"name": "williams_r",
"period": 14
},
"type": "indicator"
},
"operator": "less_than",
"right": {
"type": "constant",
"value": -80
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_2_flbr",
"name": "BB/WILLIAMSR/MACD Crossover Long (FLBR@1d)",
"priority": 3,
"trade_symbol": "STOCK:FLBR"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_ewz",
"name": "Long Entry Signal (EWZ@1d)",
"priority": 2,
"trade_symbol": "STOCK:EWZ"
},
{
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "low",
"type": "price"
},
"operator": "less_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 618,
"type": "fibonacci_retracement"
}
}
],
"direction": "long",
"enabled": true,
"id": "entry_3_flbr",
"name": "Long Entry Signal (FLBR@1d)",
"priority": 3,
"trade_symbol": "STOCK:FLBR"
}
],
"exit_rules": [
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_below",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 60
}
}
],
"enabled": true,
"id": "exit_1_ewz",
"name": "MACD Crosses Below Exit (EWZ@1d)",
"priority": 1,
"purpose": "signal",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "upper",
"indicator": {
"name": "bollinger_bands",
"period": 20,
"std_dev": 2
},
"type": "indicator"
}
},
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "line",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
},
"operator": "crossed_below",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "signal",
"indicator": {
"fast": 12,
"name": "macd",
"signal": 9,
"slow": 26
},
"type": "indicator"
}
},
{
"left": {
"field": "holding_period_bars",
"type": "position"
},
"operator": "greater_than_or_equal",
"right": {
"type": "constant",
"value": 60
}
}
],
"enabled": true,
"id": "exit_1_flbr",
"name": "MACD Crosses Below Exit (FLBR@1d)",
"priority": 2,
"purpose": "signal",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_ewz",
"name": "TP: Fib Extension 127.2% (EWZ@1d)",
"priority": 96,
"purpose": "take_profit",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "greater_than_or_equal",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 1272,
"type": "fibonacci_extension"
}
}
],
"enabled": true,
"id": "exit_2_flbr",
"name": "TP: Fib Extension 127.2% (FLBR@1d)",
"priority": 97,
"purpose": "take_profit",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:EWZ",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_ewz",
"name": "SL: Fib Retracement 78.6% (EWZ@1d)",
"priority": 100,
"purpose": "stop_loss",
"target_symbol": "STOCK:EWZ"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"field": "close",
"type": "price"
},
"operator": "crossed_above",
"right": {
"chart_ref": {
"symbol": "STOCK:FLBR",
"timeframe": "1d"
},
"ratio": 786,
"type": "fibonacci_retracement"
}
}
],
"enabled": true,
"id": "exit_3_flbr",
"name": "SL: Fib Retracement 78.6% (FLBR@1d)",
"priority": 101,
"purpose": "stop_loss",
"target_symbol": "STOCK:FLBR"
},
{
"applies_to": "both",
"conditions": [
{
"left": {
"field": "unrealized_pnl_percent",
"type": "position"
},
"operator": "less_than_or_equal",
"right": {
"type": "constant",
"value": -2
}
}
],
"enabled": true,
"id": "exit_4",
"name": "Stop Loss at 2.0%",
"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": 4
}
}
],
"enabled": true,
"id": "exit_5",
"name": "Take Profit at 4.0%",
"priority": 100,
"purpose": "take_profit"
}
],
"position_sizing": {
"max_position_percent": 25,
"method": {
"fib_stop_ratio": 786,
"risk_percent": 2,
"type": "fixed_risk"
},
"min_position_value": 100
},
"trigger_timeframe": "1d",
"version": 1
}Strategy instructions
Trading agent generated from recommendation idea 'The fastest foreign outflow from Brazilian stocks in five years is a classic capitulation signal — when everyone rushes for the exits at once, prices often overshoot to the downside and create bargain entry points. The timing is ideal because US inflation'. Thesis: The fastest foreign outflow from Brazilian stocks in five years is a classic capitulation signal — when everyone rushes for the exits at once, prices often overshoot to the downside and create bargain entry points. The timing is ideal because US inflation just came in soft, which takes the pressure off the Fed to keep raising rates. When the Fed stops hiking, the US dollar typically weakens, and a weaker dollar is a direct tailwind for emerging market stocks priced in local currencies. You are buying a hated, washed-out market right when the macro backdrop is shifting in its favor.
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