- Joined
- 7 June 2007
- Posts
- 28
- Reactions
- 0
Hi all,
I am using a pretty standard position size setup as follows:
maxpos = 4; // maximum number of open positions
SetOption("InitialEquity", 100000 ); // set initial equity = 100K
SetOption( "MaxOpenPositions", maxpos );
SetPositionSize( 100 / maxpos, spsPercentOfEquity );
What I want to do is control trade size so that each trade is no more than 8% of daily volume. I know this can be done in the back test settings and saved in an .apx. Can it be done in the AFL though?
So something like this:
MaxPosValue = C * V * (8/ 100);
but how to incorporate that into the position sizing is the question?
TIA.
Steve c
I am using a pretty standard position size setup as follows:
maxpos = 4; // maximum number of open positions
SetOption("InitialEquity", 100000 ); // set initial equity = 100K
SetOption( "MaxOpenPositions", maxpos );
SetPositionSize( 100 / maxpos, spsPercentOfEquity );
What I want to do is control trade size so that each trade is no more than 8% of daily volume. I know this can be done in the back test settings and saved in an .apx. Can it be done in the AFL though?
So something like this:
MaxPosValue = C * V * (8/ 100);
but how to incorporate that into the position sizing is the question?
TIA.
Steve c