Understanding log file

Posted By: kujo

Understanding log file - 12/20/17 16:56

Hello, I'm trying to understand a log file

Quote:

V 1.665 on Wed 17-12-20 12:34:56
Lookback set to 301 bars
Test: Workshop4 EUR/USD 2015..2016
[1: Fri 15-01-02 06:00] (1.20534)
[2: Fri 15-01-02 07:00] (1.20525)
[3: Fri 15-01-02 08:00] (1.20550)


For bar #1, the date and time (Fri 15-01-02 06:00) is it a start time of the bar?

(1.20534) is it an average price for the bar? It equals Mean of (High+Low)/2 of all minute ticks for this hour bar?

Thank you!
Posted By: kujo

Re: Understanding log file - 12/20/17 17:48

Also, a question about profit/loss calculation
Quote:

[831: Fri 15-02-20 17:00] -6.7719 -1.39 0/2 (1.13703)
[832: Fri 15-02-20 18:00] -6.7719 -3.34 0/2 (1.13705)
[EUR/USD::S2201] Reverse 1@1.13929: -3.34 at 18:00:00
[EUR/USD::L3201] Long 1@1.13929 Risk 7$ at 18:00:00

[833: Fri 15-02-20 19:00] -10.12 -0.55646205 0/3 (1.13929)
[834: Sun 15-02-22 23:00] -10.12 -1.01 0/3 (1.13877)
[835: Mon 15-02-23 00:00] -10.12 -1.18 0/3 (1.13825)
[836: Mon 15-02-23 01:00] -10.12 -1.40 0/3 (1.13806)
[837: Mon 15-02-23 02:00] -10.12 -1.42 0/3 (1.13781)
[838: Mon 15-02-23 03:00] -10.12 -0.68235999 0/3 (1.13778)
[839: Mon 15-02-23 04:00] -10.12 -0.88275439 0/3 (1.13863)
[840: Mon 15-02-23 05:00] -10.12 -1.01 0/3 (1.13840)
[841: Mon 15-02-23 06:00] -10.12 -1.43 0/3 (1.13825)
[842: Mon 15-02-23 07:00] -10.12 -1.61 0/3 (1.13777)
[843: Mon 15-02-23 08:00] -10.12 -3.18 0/3 (1.13756)
[844: Mon 15-02-23 09:00] -10.12 -4.22 0/3 (1.13576)
[EUR/USD::L3201] Reverse 1@1.13457: -4.22 at 09:00:00
[EUR/USD::S4401] Short 1@1.13457 Risk 7$ at 09:00:00

[845: Mon 15-02-23 10:00] -14.33 +2.74 1/3 (1.13457)
[846: Mon 15-02-23 11:00] -14.33 +3.93 1/3 (1.13130)


I set Slippage = 0 as well as Spread = RollLong = RollShort = Commisssion = 0, Leverage = 1.
The Long trade opens and closes at the price of the next bar: Long 1@1.13929 and Reverse 1@1.13457. Loss should be: (1.13457 - 1.13929) * 1000 = -4.72, where 1000 is LotAmount.
I wonder why it's -4.22 instead of -4.72 ?
Posted By: jcl

Re: Understanding log file - 12/21/17 07:25

I did not understand the loss calculation - it's a bit more involved, you'll find the formula in the manual - but as to the first question, the time is the bar end and the price is the price at that time.
Posted By: kujo

Re: Understanding log file - 12/21/17 13:59

Thanks, got it!
I figured out how loss is calculated.
As to the bars, yes, time is the bar end and the price in brackets is the bar open price.
© 2024 lite-C Forums