Page 1 of 1

AccountTradeLog

PostPosted: Wed Nov 21, 2018 9:04 am
by Apprentice
Based on TS2/Lua version.
viewtopic.php?f=31&t=64933
AccountTradeLog.mq4
(12.11 KiB) Downloaded 609 times

Re: AccountTradeLog

PostPosted: Thu Dec 13, 2018 6:53 am
by conjure
Hi Apprentice .
Thank you for converting the code.
I only found one problem.
The strategy does not show the pips okey.
Code: Select all
Symbol,  Amount, S/B,  P/L,            Gross P/L,  Limit,       Stop
EURGBP,  0.01,     S,   -1428166.1,    -0.15,        0.00000,   0.00000
EURUSD,  0.01,     B,    1425522.2,    -0.16,        0.00000,   0.00000


Code: Select all
trades[arraySize - 1].PLPips = (Bid - OrderOpenPrice()) / _pipSize;


I think that pip size is different for each instrument.
Can you fix it?

Re: AccountTradeLog

PostPosted: Fri Dec 14, 2018 1:09 pm
by Apprentice
Fixed.