Portfolio Fixed Size

Questions about MultiCharts and user contributed studies.
mcjohn

Portfolio Fixed Size

Postby mcjohn » 26 Apr 2015

Is it not possible to trade a fixed contract size per position in the Portfolio Trader? I use the same script that assigns a fixed value to the trade size, and also in the Signal Format > Properties section I use Fixed Shares/Contracts. The results do not provide fixed shares per trades.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Portfolio Fixed Size

Postby Henry MultiСharts » 27 Apr 2015

Hello mcjohn,

We were unable to replicate this behavior on our end.
Please send us (support@multicharts.com) the following information for analysis:
- Portfolio workspace you are using;
- in QuoteManager select the symbols you are using, make a right click on the selection->Export data->Export instrument (with data). Attach the Qmd export file;
- in PowerLanguage editor->File->Export->export with dependent functions the studies you are using in the workspaces you are providing. Attach the study export file.
- screenshots demonstrating this behavior with detailed description.

mcjohn

Re: Portfolio Fixed Size

Postby mcjohn » 27 Apr 2015

Is there another way? I cannot send my study. When I don't use the Portfolio Trader everything works as planned. I have the trade size set as i.e. Buy ("LE") 25,000 contracts next bar market, and it works without fail. When I run the same study in the Portfolio Trader it works as if it the trade size relates to available margin. I have no type of code in my study that would cause this, it only trades fixed lots. I did send images to support@multicharts.com as well.

User avatar
fbertram
Posts: 166
Joined: 16 Oct 2014
Location: Seattle, USA
Has thanked: 36 times
Been thanked: 76 times
Contact:

Re: Portfolio Fixed Size

Postby fbertram » 30 Apr 2015

as a workaround: can you create a MM signal and call pmms_strategy_set_entry_contracts for all strategies there? Maybe like this:

variables: portfolioStrategies(0);
once begin
portfolioStrategies = pmms_strategies_count();
end;

for idx = 1 to portfolioStrategies begin
pmms_strategy_set_entry_contracts(idx - 1, 25000);
end;


Cheers, Felix


Return to “MultiCharts”