From e759a90b2df010446f2fab3fd3c8d72c80310d28 Mon Sep 17 00:00:00 2001 From: Pan Long Date: Fri, 22 Jun 2018 19:16:48 +0530 Subject: [PATCH] Update doc for manually fix trade The profit should be close_rate/open_rate-1 not close_rate/open_rate --- docs/sql_cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql_cheatsheet.md b/docs/sql_cheatsheet.md index ba26f1707..ff0b92347 100644 --- a/docs/sql_cheatsheet.md +++ b/docs/sql_cheatsheet.md @@ -59,7 +59,7 @@ SELECT * FROM trades; ```sql UPDATE trades -SET is_open=0, close_date=, close_rate=, close_profit=close_rate/open_rate +SET is_open=0, close_date=, close_rate=, close_profit=close_rate/open_rate-1 WHERE id=; ```