Update doc for manually fix trade
The profit should be close_rate/open_rate-1 not close_rate/open_rate
This commit is contained in:
parent
fb49d706d0
commit
e759a90b2d
@ -59,7 +59,7 @@ SELECT * FROM trades;
|
||||
|
||||
```sql
|
||||
UPDATE trades
|
||||
SET is_open=0, close_date=<close_date>, close_rate=<close_rate>, close_profit=close_rate/open_rate
|
||||
SET is_open=0, close_date=<close_date>, close_rate=<close_rate>, close_profit=close_rate/open_rate-1
|
||||
WHERE id=<trade_ID_to_update>;
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user