Farhad1 / Publications
Forum
Value of Moving Average
What is the code to get the Moving Average indicator value
Please Help me for create a simple field
Hello. I have been reading dozens of articles for three days, but reading those articles just gave me a headache. I just want to do something simple. Create a simple field on the chart where the user enters a value as a string and then I can enter that value into the variable. Please, without
Convert OrderSend() code from mql4 to mql5
I want to convert this code from mql4 to mql5. Please write the code for me. OrderSend(Symbol(),OP_BUY,0.1,Ask,5,Ask-(50*Point),Ask+(TP*Point),"My Comment",00018,0,clrGreen);
How do I get the profit amount of an order in history?
How do I get the profit amount of an order in history
convert string to enum function
I want to create a function that takes the string and returns the enum, but this function gives the following error. how can i convert string to enum? error: begining bracket expected enum TIMEFRAME( string timeframe) { if (timeframe== "H1" ) return ( PERIOD_H1 ); else if (timeframe==
Close Position By Ticket
How can i to close position by ticket? this code close position by Symbol() #include <Trade\Trade.mqh> CTrade m_trade; onticket() { m_trade.PositionClose( Symbol ()); }
Position Close
I want to Close a Position by Select by PositionSelect() . this code does not close position. Pleas help me. MqlTradeRequest request; MqlTradeResult result; if ( PositionSelect ( _Symbol )) { request.action = TRADE_ACTION_CLOSE_BY ; request.type = ORDER_TYPE_CLOSE_BY ; request.symbol =