Send actual preditions instead of signals
This commit is contained in:
@@ -64,19 +64,10 @@ def Predict():
|
||||
# Set the movement indicator
|
||||
movement_indicator = 0
|
||||
averagePrediction = np.mean(flat_predictions) + predictionTrend
|
||||
if (averagePrediction > 0.3): # as in 3% swing up
|
||||
movement_indicator = 1
|
||||
elif (averagePrediction < -0.3): # as in 3% swing down
|
||||
movement_indicator = -1
|
||||
else:
|
||||
movement_indicator = 0
|
||||
|
||||
# Debug data
|
||||
print(f"averagePrediction: {averagePrediction}")
|
||||
|
||||
# Return to C# via stdout
|
||||
print(f"---RESULT_START---")
|
||||
print(movement_indicator)
|
||||
print(averagePrediction)
|
||||
print(f"---RESULT_END---")
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user