I would like to create an indicator that will calculate the number of shares (positionSize) based on a dollar amount specified by user input variable (CashValue).
PositionSize = CashValue / close[0]
The purpose for this...
There is no way to define position size based on a specific cash value in the strategy wizard.
I would like to be able to use the value created from the indicator to define the number of shares in my strategy.
I am able to unlock the strategy and hard code this but then no long have access to the strategy builder to work with.
I have limited coding experience and have tried to create and indicator using the wizard and altering an existing indicator with no success.
Is this possible?
Any help would be appreciated.

Comment