Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Understanding log file #470050
12/20/17 16:56
12/20/17 16:56
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
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!

Last edited by kujo; 12/20/17 17:37.
Re: Understanding log file [Re: kujo] #470052
12/20/17 17:48
12/20/17 17:48
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
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 ?

Last edited by kujo; 12/20/17 18:17.
Re: Understanding log file [Re: kujo] #470065
12/21/17 07:25
12/21/17 07:25
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.

Re: Understanding log file [Re: jcl] #470074
12/21/17 13:59
12/21/17 13:59
Joined: Dec 2017
Posts: 129
Halifax, NS
K
kujo Offline OP
Member
kujo  Offline OP
Member
K

Joined: Dec 2017
Posts: 129
Halifax, NS
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1