OrderTakeProfit是一个价格,你的order要关闭
I'm trying to modify an order, but I keep Error modifying order!, error#130. I'm using an ECN broker, so I need to modify the order to set a stoploss/takeprofit. What I am doing wrong? int digits = MarketInfo( Symbol(), MODE_DIGITS ); if ( digits == 2 || digits == 3 )...
OrderTakeProfit() does not show the actual take profit price if you modify the take profit value of the order, it shows the original value (it was
ProfitHistoryPool: public HistoryPool { public: bool matches() const {return Order::Profit()>0;} }; void OnStart() { ProfitHistoryPool profitPool; // the foreachorder macro can iterate order pools for you // and take care of order filtering // both pointers and references are accepted...
The macro distinguish between programs with and without input parameters. Here is a simple script without any input parameter: #include<Mql/Lang/Script.mqh>classMyScript:publicScript{public://OnStart is now mainvoidmain() {Print("Hello");} ...
Returns profit of the currently selected order Trade Functions OrderSelect The function selects an order for further processing Trade Functions OrderSend The main function used to open an order or place a pending order Trade Functions OrdersHistoryTotal Returns the number of closed orders in...
Click Done and gain profit! We have created an Expert Advisor without writing a single line of code. Let's take a closer look and conduct a small analysis of the sources. Head of the table and attributes - everything is familiar. Then comes the inclusion of library ...
OrderTakeProfit Returns take profit value of the currently selected order. doubleOrderTakeProfit(); Returned value Take profit value of the currently selected order. Note The order must be previously selected by theOrderSelect()function. Example:...
A pending order implies the requested order open price other than the current market price. To place pending orders, use function OrderSend(). Use function OrderDelete() to delete a pending order. Pending orders SellLimit and BuyStop are placed at a price that is higher than the current mark...
If the trader doesn't intervene into the operations of the EA (i.e., he or she doesn't place orders manually), then only one market order of one type or another may be available in trading. However, if the trader has additionally placed one or several market orders on his or her ow...