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

monthly date issue



PureBytes Links

Trading Reference Links

On  monthly charts this is my attempt to buy a fix % of real  equity :

if year(date) = 108 then 
if month(date) = 10 then equity = 0.012 * 1990000; { this is for the numbers of contracts to buy in november}
if month(date) = 11 then equity = 0.012 * 2223612; { this is for the numbers of contracts to buy in december}
if month(date) = 12 then equity = 0.012 * 2157348; { this is supposed to be for january contracts but  it does not work and i dont know how to fix it , sigh!}

if year(date) = 109 then 
if month(date) = 1 THEN  EQUITY = 0.012 * 99990000; 
. . . - - - . . .       . . . - - - . . .  
  
Please help  :)
thanks
marriot