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:
Pan Long 2018-06-22 19:16:48 +05:30 committed by GitHub
parent fb49d706d0
commit e759a90b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>;
```