I have created the below function that would look for the value of peak points and trying to store its value in an array but for some reason, it did not work
can anyone help me?
//--------------------------------------------------
Function
thanks for your help
can anyone help me?
Inserted Code
double Recent_TD_Point[];
Function
Inserted Code
double High_TD_Point_Value(int CandleRef){ if(High[CandleRef]>High[CandleRef-1]&& High[CandleRef>High[CandleRef+1]]) { return (High[CandleRef]); } else { return (0); } }
Inserted Code
for(int i=0;i<3000;i++) {if(High_TD_Point_Value(i)>0){ Recent_TD_Point[i]=High_TD_Point_Value(i); Print(Recent_TD_Point[i]); } }
thanks for your help