Take a look at the code below - it should always buy the number of contracts that the users enters into the input box. But, what it does is always buys 2 contracts because that is the default that's in the code.
Code: Select all
Inputs:
___MoneyMgtS___("***Money Mangement Start***"),
pContractsToTrade(2),
___MoneyMgtE___("***Money Mangement End***");
Variables: contractstotrade(0);
contractstotrade = pContractsToTrade ;
buy contractstotrade contracts next bar at market ;
Code: Select all
Inputs:
___MoneyMgtS___("***Money Mangement Start***"),
pContractsToTrade(2),
___MoneyMgtE___("***Money Mangement End***");
buy pcontractstotrade contracts next bar at market ;
-eLindy