Hi all,
I have a code for count number of Long trade/
This code count the "long"
$count_long_trades = $db->getQueryCount('tbl_trades','lg_short_trade',' AND lg_short_trade="Long" AND num_bot_trade="'.$_REQUEST['editId'].'"');
It works perfectly.
Now i need to add a criteria and i'm totally lost
I have try this but not works
The same code but with the count of only the positive PnL
$count_long_trades_pos = $db->getQueryCount('tbl_trades','lg_short_trade',' AND lg_short_trade="Long" ','pnl_trade',' AND pnl_trade > 0 AND num_bot_trade="'.$_REQUEST['editId'].'"');
Thanks by advance for your help.
Have a good day