double BuyPendingPrice=iHighest(NULL,0,MODE_HIGH,90,1); double SellPendingPrice=iLowest(NULL,0,MODE_LOW,90,1);Read the documentation. iHighest returns an int iHighest - MQL4 Documentation
Okay thank you. Would you know how to get the highest price and lowest price a certain amount of candles back respectively?
double BuyPendingPrice=High[iHighest(NULL,0,MODE_HIGH,90,1)] + some_point*Point;
ffoorr:
Thank you kindly. Pretty obvious indeed.
@Stefano Diamante #:Hi Dean, So did it solve your code?
Yes, he did. Read the thread (and the documentation referenced).

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi guys,
I have the below code for pending orders. I want it to place a buy stop X points above the highest point in the last few candles, and X amount below the lowest point in the last few candles. The orders aren't being sent at all, and I get OrderSend() 130; not sure why..? Please help.