Different result price distribution chart

Posted By: KadigunFx

Different result price distribution chart - 05/27/18 07:48

For test, I run Distribution.c script in strategy folder.
the output result plot is not equal with plot in help file.

help file > main topics > trading strategies > EURUSD|EURCHF chart


what is the reason?
Posted By: jcl

Re: Different result price distribution chart - 05/28/18 20:48

What is different?
Posted By: KadigunFx

Re: Different result price distribution chart - 05/29/18 04:31

Distributin EURUSD and EURCHF are different.
I get history from zorro download page and not change anything.

please see this URL (result and image from help file)

https://imgur.com/a/NbDz3UL

Posted By: jcl

Re: Different result price distribution chart - 05/29/18 08:05

The CHF cap referred to in that image was lifted in 2015. Google: Swiss Franc Cap.
Posted By: KadigunFx

Re: Different result price distribution chart - 05/29/18 08:30

Why Distribution.c script Does not give the same result in the help file?
for example see Max EURCHF (red bar) in two image(https://imgur.com/a/NbDz3UL) .

help file(first image) Max is : 850
result(second image) run Distribution.c script Max is: 1400

My question is how can we get the same result.
Posted By: jcl

Re: Different result price distribution chart - 05/29/18 11:06

You get the same result as in an old histogram when you set up the start and end dates, and the asset parameters accordingly for replicating the old market situation.
Posted By: KadigunFx

Re: Different result price distribution chart - 05/29/18 11:43

If it is possible for you, share the data required for set up an old histogram.

in my test :

Code:
StartDate = 20110920; // First day of the CHF price cap
EndDate = 20150114; // Last day of the CHF price cap

EUR/CHF,1.07962,0.00004,0.08,-0.26,0.0001,0.09263,75,0,1000,0.8,  
EUR/USD,1.13795,0.00005,-0.02,0.01,0.0001,0.0871,10,0,1000,0.6,

Posted By: jcl

Re: Different result price distribution chart - 05/29/18 14:37

Afraid I don't remember the date of that image, but it was certainly long before January 2015. You must experiment a bit.
Posted By: KadigunFx

Re: Different result price distribution chart - 05/29/18 18:17

Yes that's right, it seems that EndDate is not January 2015.
Thanks,
© 2024 lite-C Forums