mirror of
https://github.com/Sabermrddz/QuantCore-FX.git
synced 2026-08-18 05:08:07 +00:00
layer one v4
This commit is contained in:
@@ -338,51 +338,3 @@ def validate_scores(scores: Dict[str, Dict]) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
# Example usage (for testing)
|
||||
if __name__ == "__main__":
|
||||
# Mock data
|
||||
test_rates = {
|
||||
"USD": 5.25,
|
||||
"EUR": 4.50,
|
||||
"GBP": 5.25,
|
||||
"JPY": 0.10,
|
||||
"AUD": 4.35,
|
||||
"CAD": 5.00,
|
||||
"CHF": 1.75,
|
||||
"NZD": 5.50,
|
||||
}
|
||||
|
||||
test_cpi = {
|
||||
"USD": 3.2,
|
||||
"EUR": 2.6,
|
||||
"GBP": 3.4,
|
||||
"JPY": 2.8,
|
||||
"AUD": 3.8,
|
||||
"CAD": 2.8,
|
||||
"CHF": 1.8,
|
||||
"NZD": 3.5,
|
||||
}
|
||||
|
||||
test_pmi = {
|
||||
"USD": 54.2,
|
||||
"EUR": 48.9,
|
||||
"GBP": 52.1,
|
||||
"JPY": 51.4,
|
||||
"AUD": 46.2,
|
||||
"CAD": 49.2,
|
||||
"CHF": 49.8,
|
||||
"NZD": 47.1,
|
||||
}
|
||||
|
||||
# Score all currencies
|
||||
scores = score_all_currencies(test_rates, test_cpi, test_pmi)
|
||||
|
||||
print("Scores:")
|
||||
for currency, score_data in sorted(scores.items(), key=lambda x: x[1]['rank']):
|
||||
print(f" {currency}: {score_data}")
|
||||
|
||||
# Generate signal
|
||||
signal, status, gap_desc = generate_signal(scores)
|
||||
print(f"\nSignal: {signal}")
|
||||
print(f"Status: {status}")
|
||||
print(f"Gap: {gap_desc}")
|
||||
|
||||
Reference in New Issue
Block a user