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

Buy X contracts......can X be "0"?



PureBytes Links

Trading Reference Links

This is part of a system I am testing
I risk 2% of bankroll per trade...and this number increases with profits and decreases with loses.
It is part of a break-out system.

the problem is that on some markets...like the S+P, Nasdaq, Russell, DJIA...the break-out channel is bigger than the risk. Like right now the 90 day channel on Nasdaq is 60,000...but here I am risking $10,000...BUT the system round UP and BUYS 1 CONTRACT anyways.
Can I make the system but "0" contracts? Or round...but not default to 1?

thanks



input: len(90), bank(500000), risk(.02);
Vars:Mp(0), NewBank(0);
Mp=MarketPosition;
Value0=Highest(High,len);
NewBank=netprofit+bank;
Value3 = (Highest(High,len) - Lowest(Low,len));
Value4 = (NewBank*risk) / (BigPointValue*Value3);

Buy Value4 contracts at Value0 Stop;