# BAD_OBJECTIVE

objective names a way to rank results that Forge does not have, or custom without a score method.

## What happened

`objective` names a way to rank results that Forge does not have, or is `custom` while the strategy has no `score` method.

## What to do

Use the name of an objective Forge has, such as `"sharpe"`, or `None`. For `custom`, add a `score` method.

## Example

```text
strategy.py, line 11: objective must be the name of a way to rank results, like "sharpe", or None. [BAD_OBJECTIVE]
```

The wording of the message depends on your file, and the code does not. An error stops the file from loading.
