Forum

MQL5 code for Maximum price

I got maximum or minimum price of selected bars in MQL4. here int highesht_bar=iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,15,1); int lowest_bar=iLowest(_Symbol,PERIOD_CURRENT,MODE_LOW,15,1); And for highest or lowest price. high=High[iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,bar_count,1)];

How to select first order?

I can select last opened order using <decompiled code removed >. But I can't select first Ticket. I have tried more time but failed to do. Give me any suggestion please