[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help please with maxsharesheld syntax



PureBytes Links

Trading Reference Links

At 6:01 PM -0500 1/27/02, tedclimo wrote:

>I want to backtest a particular strategy with $100,000 initial investment
>100% of account balance used in each trade.   I thought the proper language
>was:
>
>example... If C > O then buy maxsharesheld shares this bar at close; (with
>$100K put in the default section of Format Strategies tab).
>
>This however, only serves to stop the entire strategy from functioning.
>HELP!

Try:

Var: Num(0);

Num = 100000 / (Close * BigPointValue);
if ... then Buy Num shares ...

Bob Fulks