PosSize results incorrect
Author: inrodwetrust
Creation Date: 7/4/2010 1:04 AM
profile picture

inrodwetrust

#1
Hi
I am getting incorrect PosSize values eg. when using Raw Profit Mode & possize @ $10k
CODE:
Please log in to see this code.

I don't understand why the pos size is nowhere near the $10k I set .....Any ideas anyone?
It seems like something hasn't been initialized or needs to be cleared.
It occurs in Raw Profit Mode & Portfolio Simulation Mode.
It's not just the odd one but 13/29 are wrong for this stock & other stocks are have similar results.
No Commission or slippage options set

Regards



profile picture

Eugene

#2
What's "PRT"? Are you limiting a position's quantity to a percentage of the bar's volume?
profile picture

inrodwetrust

#3
Your a genius!!

QUOTE:
Are you limiting a position's quantity to a percentage of the bar's volume?

That was it!

PRT ... just a standard stock ticker.

Never thought of that! I used a similar option on another package ... that won't take the trade if no of shares is > 10% vol. Must have had that in mind when I set it either that or I'm dyslectic!!

Thanks for the prompt response.

This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).