Spaces:
Running
Running
Update utils/model_inference.py
Browse files- utils/model_inference.py +3 -2
utils/model_inference.py
CHANGED
|
@@ -31,8 +31,9 @@ def generate_forex_signals(trading_capital, market_risk, timezone):
|
|
| 31 |
indicators = calculate_technical_indicators(data)
|
| 32 |
|
| 33 |
# Generate trade signal
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
|
| 37 |
roi = np.random.uniform(10, 20) # Random ROI between 10% and 20%
|
| 38 |
signal_strength = np.random.uniform(80, 100) # Random signal strength (80%-100%)
|
|
|
|
| 31 |
indicators = calculate_technical_indicators(data)
|
| 32 |
|
| 33 |
# Generate trade signal
|
| 34 |
+
current_time = datetime.datetime.now() # Get current date and time
|
| 35 |
+
entry_time = current_time
|
| 36 |
+
exit_time = current_time + datetime.timedelta(minutes=15)
|
| 37 |
|
| 38 |
roi = np.random.uniform(10, 20) # Random ROI between 10% and 20%
|
| 39 |
signal_strength = np.random.uniform(80, 100) # Random signal strength (80%-100%)
|