Topic: Different "maximum position amount" in collections

I have several collections which I would like to aggregat/compare. Unfortunatelly the initial generation was done with different "maximum position amount". Is there a possibility to change the the maximum position amount of a strategies in a collection or recalculate it with a different maximum position amount?

Re: Different "maximum position amount" in collections

There is no a standard way to do it. However it is possible to make a very short program to do it. The file uses a JSON format, so if you know a little JavaScript you can do it relatively easy.

If you want attach your collection and I'll try to make a short script for overriding different parameters. It will be a good exercise to me because I'm learning Perl 6 now.

Re: Different "maximum position amount" in collections

Thank you for the fast answer. I am not familiar with Java although I have some basics in programming.
Here is the collection file with max. 20 lot which I would like to change to 1 lot.
It would be great if you can help me there. I sure can learn then to use the script myselfe.
Thank you

Post's attachments

DCS_BB_dx5m_od_org_1.coll 252.3 kb, 4 downloads since 2017-07-28 

You don't have the permssions to download the attachments of this post.

Re: Different "maximum position amount" in collections

Actually it was very easy in your case where all initial maxOpenLots are equal to 20. If it was different for the different strategies, it should be necessary to use regular expressions.

Now I just opened the file in NotePad++ and used Ctrl + H to find and replace of all occurrences of
"maxOpenLots":"20"

to

"maxOpenLots":"1"


http://s3.postimg.org/umpsc07cj/screenshot_349.png

The "Replace All" button replaces all value.

http://s3.postimg.org/6k8yh4qpf/screenshot_350.png

Post's attachments

DCS_BB_dx5m_od_org_1.coll 252.27 kb, 2 downloads since 2017-07-28 

You don't have the permssions to download the attachments of this post.

Re: Different "maximum position amount" in collections

Thank you very much, I will try that myselfe now.
Is it correct, that if the "maxOpenLots" are not equal in one collection, then I would have to search for all terms "maxOpenLots" and change them individually?
Thank you

Re: Different "maximum position amount" in collections

Hello Misoslav,
I have tried now myselfe, but the file does not load and gives a fault message.
I compared your and my version but did not find a difference.
Please check my attached file.

Post's attachments

DCS_BB_dx5m_od_org_11.coll 252.27 kb, 1 downloads since 2017-07-28 

You don't have the permssions to download the attachments of this post.

Re: Different "maximum position amount" in collections

Hello Miroslav,
here the fault message:

Post's attachments

c1.jpg
c1.jpg 22.87 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Different "maximum position amount" in collections

Fault message in English might be:
"Object reference not set to an instance to an object"

Re: Different "maximum position amount" in collections

I found the fault myselfe (little proud)
I had "small" letters instead of "capitals"
And I found out that I have to recalculate the collection after modifying to show the proper chart in the collection.
Thank's, and have a nice sunday :-)

Re: Different "maximum position amount" in collections

Good job!

Re: Different "maximum position amount" in collections

Thank you.
And now I even found out how to find any lotsize:
"maxopenlots":"[0-9]{0,9}[0-9]"
:-))