Guides / How EdgeForge works out your Edge Score and Mental Score
How EdgeForge works out your Edge Score and Mental Score
EdgeForge shows two headline numbers: the Edge Score on the Dashboard and the Mental Performance Score on the Psychology page. Neither is a mystery or a prediction. Each is a plain weighted sum of things you logged, and this page gives the whole method so you can check it against your own journal. Everything here is taken from the journal's own code; the function behind each part is named in the table at the bottom.
What the scores are, and are not. They describe how consistent and controlled your logged trading has been. They do not predict profit, they do not compare you with anyone else, and they are only as honest as what you log. A score of 80 means your records look disciplined, not that the next trade will win.
Edge Score (0 to 100)
The Edge Score uses all the closed trades in the account you are viewing. It has four parts:
| Part | Weight | What it counts |
|---|---|---|
| Win rate | 35% | Winning trades (profit above zero) divided by closed trades, as a percentage. |
| Consistency | 30% | The share of your trading days that ended in profit. A trading day is a calendar date with at least one closed trade, and its result is the sum of that day's trades. This needs at least 5 trading days; before that, your win rate is used in its place. |
| Sample size | 15% | Two points per closed trade, capped at 100, so it reaches full marks at 50 trades. |
| Psychology | 20% | Out of the trades where you logged anything about your state (a psychology issue, emotions, mood before or after, an execution rating, or whether you were prepared), the share with no issue recorded. An issue of "None", or none chosen, counts as clean. |
Formula: Edge Score = 35% × win rate + 30% × consistency + 15% × sample size + 20% × psychology, rounded to a whole number.
- If you have logged no psychology at all, that part is left out and the other three are scaled up to fill 100: (35% × win rate + 30% × consistency + 15% × sample size) ÷ 0.8.
- Minimum sample: the score is hidden until you have 10 closed trades. Until then the card tells you how many more it needs.
- Open trades are not counted.
A worked example from the sample journal
The sample journal has 80 fictional closed trades. Its Edge Score is 63, worked out like this:
| Part | The sample's figures | Value | Weight | Contribution |
|---|---|---|---|---|
| Win rate | 38 winners out of 80 trades | 47.5 | 35% | 16.63 |
| Consistency | 33 profitable days out of 62 trading days | 53.23 | 30% | 15.97 |
| Sample size | 80 trades × 2, capped at 100 | 100 | 15% | 15.00 |
| Psychology | 19 of 80 trades with an issue, so 61 clean | 76.25 | 20% | 15.25 |
16.63 + 15.97 + 15.00 + 15.25 = 62.84, which rounds to 63.
Mental Performance Score (0 to 100)
The Mental Performance Score looks at a window of recent trades: the Trade sample setting on the Psychology page, which starts at the last 20 closed trades and can be changed to the last 90 days, all trades or another number. The Market filter on that page applies too. The page always says which trades it used.
It has up to five parts. A part only counts if you logged the information for it, and the weights of the parts present are re-balanced to add up to 100.
| Part | Weight | What it counts |
|---|---|---|
| Emotional discipline | 35 | Of the trades where you logged a mood, an emotion, a psychology issue, or an execution, confidence or discipline rating, the share with no issue recorded. |
| Preparation | 20 | Of the trades where you recorded whether you were prepared, the share where you were. |
| Execution control | 20 | Your average execution rating (1 to 10) on the trades you rated, multiplied by 10. |
| Rule adherence | 15 | Of the trades saved while at least one Rule Guard rule was switched on, the share with no rule broken. Trades saved with Rule Guard off are not counted, so a journal that does not use Rule Guard simply has no rule part. |
| Loss recovery | 10 | After each losing trade, was the next trade controlled? A controlled next trade has no psychology issue, no rule broken, no revenge tag or issue, is not marked unprepared, and has an execution rating of 7 or more. A next trade with no execution rating is not counted as controlled. This part only appears when at least one other part does. |
Why a few trades cannot swing it
Each part is pulled toward 50 when it rests on few trades, as if it had three extra neutral observations: adjusted value = (value × n + 50 × 3) ÷ (n + 3), where n is the number of trades behind that part. One clean trade out of one scores 62.5, not 100. Twenty trades at 70% become 67.4. The more you log, the less the adjustment matters. There is no minimum number of trades for the Mental Performance Score, so a very small window gives a modest, cautious number rather than an error.
Score = the weighted average of the adjusted parts, using only the parts present, rounded to a whole number. It is described as Controlled at 75 and above, Developing from 55 to 74, and At risk below 55. The Psychology page also shows how the last 10 trades compare with the 10 before.
A worked example from the sample journal
Looking at the sample's last 20 trades (of 80), the Mental Performance Score is 55. The sample does not use Rule Guard, so there is no rule part, and the weights present add up to 85.
| Part | Trades (n) | Observed | Adjusted | Weight | Adjusted × weight |
|---|---|---|---|---|---|
| Emotional discipline | 20 | 70% (14 clean of 20) | 67.39 | 35 | 2,358.7 |
| Preparation | 20 | 45% (9 prepared of 20) | 45.65 | 20 | 913.0 |
| Execution control | 20 | 55 (average rating 5.5) | 54.35 | 20 | 1,087.0 |
| Loss recovery | 11 | 27.3% (3 controlled of 11) | 32.14 | 10 | 321.4 |
For example, emotional discipline: (70 × 20 + 50 × 3) ÷ 23 = 67.39. Then 2,358.7 + 913.0 + 1,087.0 + 321.4 = 4,680.1, and 4,680.1 ÷ 85 = 55.06, which rounds to 55, or "Developing".
Good to know
- The inputs are yours. Both scores rest on what you choose to log. Skipping the psychology fields does not hurt the Edge Score unfairly: that part is dropped. But it does mean the score says less.
- Data coverage on the Psychology page shows how many of the trades in the window have a mood or a rating, so you can see how much of the picture the score is built on.
- Not advice. The scores are a way to look at your own habits. They are not financial advice and not a measure of skill.
Where each rule lives in the code
For anyone who wants to check the method against the program itself, here are the functions in the journal's code (the single file served at /app/) that implement each rule.
| Rule | Function or constant |
|---|---|
| Edge Score parts and formula | efEdgeParts() |
| Edge Score in-app explanation | efEdgeExplain(), efEdgeNote() |
| 10-trade minimum | EF_EDGE_MIN |
| 5-trading-day rule for consistency | EF_CONS_MIN_DAYS |
| What counts as logged psychology (Edge) | efHasPsychData() |
| Mental Score parts and weights | psychCore() |
| What counts as logged psychology (Mental) | efPsychLoggedT() |
| Loss recovery | recoveryStats() |
| Pull toward 50 | EF_PSY_K (3), applied in psychCore() |
| Which trades the window uses | filteredPsychTrades(), psychScope() |
| Labels: Controlled, Developing, At risk | renderPsychOverview() |
| Rule Guard trades only | efRuleGuarded() |
Want to see the scores on real-looking data? Open the sample journal and look at the Dashboard and the Psychology page.
View sample journal