How do I use OrderSend to open a pending order (an order to execute if the price hits a certain amount in the future)?
For example, if it's EURUSD and the price is currently 1.0000, I want to open a sell when the price drops 10 pips. Here's my attempt:
However, I get an Error 130. I've verified that all my TP/SL/etc. values are prices (not pips; though SL is zero, because I don't use stoploss).
Also, this is RIGHT after executing a buy trade.
For example, if it's EURUSD and the price is currently 1.0000, I want to open a sell when the price drops 10 pips. Here's my attempt:
Inserted Code
OrderSend(Symbol(), OP_SELLLIMIT, 1, Bid - (Point * 10), 3, 0, Bid - (10 * Point), "Sell(#" + MagicNumber + ")", MagicNumber, 0, DeepPink);
Also, this is RIGHT after executing a buy trade.