Dear GP
your posts are a great help...
I am trying to convert an AFL into a DLL File using VC++, I have been successfully do the same except for the below mentioned two codes which I am not getting. Will be very greatfull to you if you Can kindly help with a code to get these two.
1. PreviousDayClose = TimeFrameGetPrice( "C", inDaily, -1 ); // Function in AFL
2. NewDay = Day()!= Ref(Day(), -1);
FDH = HHV( H, NewDay);
Thankyou & Best Regards
VC++ Codes..
AmiVar args7[3];
args7[0].type=VAR_FLOAT;
args7[0].val=sa.Close;
args7[1].type=VAR_STRING;
args7[1].string="inDaily" ;
args7[2].type=VAR_FLOAT;
args7[2].val= -1;
AmiVar PDC;
PDC=gSite.CallFunction("TimeFrameGetPrice",3,args7);
gSite.SetVariable("PDC", PDC);
Getting ERROR ::
How to solve this problem.
Today = gSite.CallFunction("day",0,NULL);
AmiVar ref_Today=gSite.AllocArrayResult();;
ref_Today=VRef(-1,Today.array);
gSite.SetVariable("ref_Today",ref_Today);
BOOL NewD ;
NewD = Today.array != ref_Today.array;
FDH1 = Vhhv(sa.High, NewD);
gSite.SetVariable("FDH1", FDH1);
Getting ERROR
your posts are a great help...
I am trying to convert an AFL into a DLL File using VC++, I have been successfully do the same except for the below mentioned two codes which I am not getting. Will be very greatfull to you if you Can kindly help with a code to get these two.
1. PreviousDayClose = TimeFrameGetPrice( "C", inDaily, -1 ); // Function in AFL
2. NewDay = Day()!= Ref(Day(), -1);
FDH = HHV( H, NewDay);
Thankyou & Best Regards
VC++ Codes..
AmiVar args7[3];
args7[0].type=VAR_FLOAT;
args7[0].val=sa.Close;
args7[1].type=VAR_STRING;
args7[1].string="inDaily" ;
args7[2].type=VAR_FLOAT;
args7[2].val= -1;
AmiVar PDC;
PDC=gSite.CallFunction("TimeFrameGetPrice",3,args7);
gSite.SetVariable("PDC", PDC);
Getting ERROR ::
How to solve this problem.
Today = gSite.CallFunction("day",0,NULL);
AmiVar ref_Today=gSite.AllocArrayResult();;
ref_Today=VRef(-1,Today.array);
gSite.SetVariable("ref_Today",ref_Today);
BOOL NewD ;
NewD = Today.array != ref_Today.array;
FDH1 = Vhhv(sa.High, NewD);
gSite.SetVariable("FDH1", FDH1);
Getting ERROR