Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score as mainObjective #51

Open
123qweas opened this issue Sep 2, 2018 · 2 comments
Open

Score as mainObjective #51

123qweas opened this issue Sep 2, 2018 · 2 comments

Comments

@123qweas
Copy link

123qweas commented Sep 2, 2018

When I try to run the GA with Score as mainObjective I get a wierd output:

No previous run data, starting from scratch!
Starting GA with epoch populations of 10, running 5 units at a time!

--------------------------------------------------------------

Epoch number: 1
Time it took (seconds): 19.318
Max score: 1
Max profit: 183.8186868776 EUR
Max sharpe: 38.20463404372513
Max profit position: 1
Max parameters:
{ SMA_long: 1090,
BULL_RSI: 5,
BEAR_RSI: 24,
SMA_short: 40,
candleSize: 27,
historySize: 1440,
BULL_RSI_low: 55,
BEAR_RSI_low: 21,
BULL_RSI_high: 85,
BEAR_RSI_high: 47 }
Other metrics:
{ balance: 283.8186868776,
profit: 183.8186868776,
sharpe: 38.20463404372513,
market: 191.22174455692692,
relativeProfit: 183.8186868776,
yearlyProfit: 309.40244473350873,
relativeYearlyProfit: 309.40244473350873,
startPrice: 0.28844,
endPrice: 0.84,
trades: 140 }

--------------------------------------------------------------

Global Maximums:
Score: 1
Profit: 183.8186868776 EUR
Sharpe: 38.20463404372513
parameters:
{ SMA_long: 1090,
BULL_RSI: 5,
BEAR_RSI: 24,
SMA_short: 40,
candleSize: 27,
historySize: 1440,
BULL_RSI_low: 55,
BEAR_RSI_low: 21,
BULL_RSI_high: 85,
BEAR_RSI_high: 47 }
Global maximum so far:
{ balance: 283.8186868776,
profit: 183.8186868776,
sharpe: 38.20463404372513,
market: 191.22174455692692,
relativeProfit: 183.8186868776,
yearlyProfit: 309.40244473350873,
relativeYearlyProfit: 309.40244473350873,
startPrice: 0.28844,
endPrice: 0.84,
trades: 140 }

--------------------------------------------------------------

Epoch number: 2
Time it took (seconds): 25.181
Max score: 1
Max profit: 188.75188774256122 EUR
Max sharpe: 41.33514192426096
Max profit position: 2
Max parameters:
{ SMA_long: 480,
BULL_RSI: 5,
BEAR_RSI: 11,
SMA_short: 150,
candleSize: 15,
historySize: 1440,
BULL_RSI_low: 51,
BEAR_RSI_low: 17,
BULL_RSI_high: 89,
BEAR_RSI_high: 43 }
Other metrics:
{ balance: 288.7518877425612,
profit: 188.75188774256122,
sharpe: 41.33514192426096,
market: 208.05020108168077,
relativeProfit: 188.75188774256122,
yearlyProfit: 317.72733031425787,
relativeYearlyProfit: 317.72733031425787,
startPrice: 0.28844,
endPrice: 0.88854,
trades: 219 }


So as max score, I get always a 1. Profit or sharpe aren't improving ether. It's just a coincidence that the profit from epoch 2 is higher than epoch 1.

Am I doing something wrong?

@123qweas
Copy link
Author

123qweas commented Sep 2, 2018

Is there maybe a way to just use sharpe as mainObjective?

@123qweas
Copy link
Author

123qweas commented Sep 2, 2018

I'm using v0.6.3 but I also tried it with v0.5.14 and had the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant