Hi all
can any one please tell me what is wrong withe wight part in this code

weight = IIf( Name() == "elsh", 5,
IIf( Name() == "unit", 4,
IIf( Name() == "elka", 6,
IIf( Name() == "ocdi", 7,
IIf( Name() == "arei", 3,
IIf( Name() == "mnhd", 3,
IIf( Name() == "heli", 2,
0 ) ) ) ))));

AddToComposite( Close, "~housing", "X" );
AddToComposite( V , "~housing", "V" );
AddToComposite( 1, "~housing", "I" );

Buy = 0;
Graph0 = Foreign( "~housing", "C" )/Foreign( "~housing", "I" );

this code produces zero , but when i remove the weight part everything 
is ok and i get my curve
thanks in advance
Waleed

Reply via email to