Drawing Custom Indicator - Highest High value since last order

 

Hi,

It is my first post.



I want to ask, how I can draw line that shows highest for example High value since last order.

I calculate this value in EA this way:


double max_high()
{
double val = 0;
datetime dt = OrderOpenTime();
int higst = 0;

int shift = iBarShift(NULL,sh+0, dt );
higst = iHighest(NULL,0,MODE_HIGH,shift,sh+1);
val=High[higst];
FileWrite( handle, " ", "Date: ", dt, " shift: ", shift, " iHighest: ", higst, " val: ", val );
return (val);
}

It is possible to draw line that shows max_high values?



Miso

Reason: