Portfolio Fixed Size
Portfolio Fixed Size
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.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2958 times
Re: Portfolio Fixed Size
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.
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.
Re: Portfolio Fixed Size
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.
- fbertram
- Posts: 166
- Joined: 16 Oct 2014
- Location: Seattle, USA
- Has thanked: 36 times
- Been thanked: 76 times
- Contact:
Re: Portfolio Fixed Size
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
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