Spaces:
Sleeping
Sleeping
Commit ·
607d7e5
1
Parent(s): 33a2f10
UI: Shorten status labels and optimize font size
Browse files- forex_macd_dashboard.html +3 -1
- forex_macd_strategy.py +2 -2
forex_macd_dashboard.html
CHANGED
|
@@ -141,7 +141,9 @@
|
|
| 141 |
|
| 142 |
.tf-value {
|
| 143 |
font-weight: 700;
|
| 144 |
-
font-size:
|
|
|
|
|
|
|
| 145 |
}
|
| 146 |
|
| 147 |
.tf-detail {
|
|
|
|
| 141 |
|
| 142 |
.tf-value {
|
| 143 |
font-weight: 700;
|
| 144 |
+
font-size: 0.9rem;
|
| 145 |
+
word-wrap: break-word;
|
| 146 |
+
line-height: 1.2;
|
| 147 |
}
|
| 148 |
|
| 149 |
.tf-detail {
|
forex_macd_strategy.py
CHANGED
|
@@ -143,9 +143,9 @@ def analyze_instrument(instrument: Dict) -> Dict:
|
|
| 143 |
elif h1_prev['Histogram'] > 0 and h1_last['Histogram'] < 0:
|
| 144 |
h1_signal = "SELL_CROSS"
|
| 145 |
elif h1_last['Histogram'] > 0:
|
| 146 |
-
h1_signal = "
|
| 147 |
else:
|
| 148 |
-
h1_signal = "
|
| 149 |
|
| 150 |
# 4. Check for active signal and validate
|
| 151 |
# current_price is already set above
|
|
|
|
| 143 |
elif h1_prev['Histogram'] > 0 and h1_last['Histogram'] < 0:
|
| 144 |
h1_signal = "SELL_CROSS"
|
| 145 |
elif h1_last['Histogram'] > 0:
|
| 146 |
+
h1_signal = "BULLISH_MOM"
|
| 147 |
else:
|
| 148 |
+
h1_signal = "BEARISH_MOM"
|
| 149 |
|
| 150 |
# 4. Check for active signal and validate
|
| 151 |
# current_price is already set above
|