Expert Advisors and Automated Trading - page 459

Is there a possibilyty to add pending order expiration date in the tester log file ? I have big doubt they are not respected..
  NormalizeDouble  (1)
Dear MQL5 Developers, in MQL4 there is an annoying thing: every time I work with doubles, I have to use NormalizeDouble function to compare them, and before I set as parameter of a trading function. Is it possible to use double variables without every time normalizing (for example compare them)...
Hi, Currently building a new EA based on 4 indicators. AS MT5 doesn't appear to have a visual mode as of yet, I'd like to be ableto add the referenced indicators to the debug chart so I can visually see theentry / exit points and confirm them. Referring to the Indicators and returning the values...
Debuggin on Metatrader 5 is realy useful, congratulations to the developers. Just one question about it. How can I debug using historical data? Thanks
Hello, please tell us when to use POSITION_MAGIC, ORDER_MAGIC, DEAL_MAGIC? Could you give some examples? Thank you
Ive been working with mql5 code for a while now, appreciating the wonders of the object oriented world :) however I have hit a brick wall. Basically I have coded an algorithm (highly computationally intensive) which all classes have been tested and debugged using scripts. The functions execute...
Hi Coders! I'm working on my EA. I would like to get the handle for the Moving Average indicator: maHandle=iMA(_Symbol,_Period,MA_Period,0,MODE_EMA,PRICE_CLOSE); It works well on Strategy Tester on EURUSD M1 chart. But I would like to get the handle for the Moving Average indicator from the...
Please can some people help me. I have created an EA, but I have problem with follow: My EA occuppies two indicator (MA and CCI) CCi_Period = 14 MA_Period = 50 In Orther parameters I have created it (handle) int cciHandle; int maHandle; After in: int OnInit() //--- Get handle for CCI indicator
  OrdersTotal()  (2)
I have opened an buy-order, confirmed by the server and running. int x = OrdersTotal(); x = 1 x = 0 x = 0 ........ OrdersTotal() returns first 1, then 0, although there is an open position.
I am new here, so this may be a silly question anyway... Is it possible to chart my Account History, onto the same chart with live data. So that any sell trades that have been completed show up as a red line. And any buy trades that have been completed show up as a blue line.
The expert advisor was compiled without errors and warnings, indeed it appears in the navigator list, but when I try to attach it to a chart, I’m afraid it doesn’t work. I checked a topic in the forum about a similar situation, there were suggestions like uninstall the program, so I already tried
Please help me anybody. I created my first EA in MQ5. It seems to me my EA is working fine in real time but if I want use strategy tester i get such shit: 2010.06.18 19:12:02    Tester    Loading of C:\Program Files (x86)\MetaTrader 5\MQL5\Experts\new.ex5 failed
Hi, For debug purpose, when working with Expert, what is the best way to show all the indicators on the chart? in MQL4 i use temple with the same name but this function is not working in MQL5 (debug mode / tester). Today i am loading all the indicators manually, i am looking for automatic way...
Sorry for the silly Q :P but I'm wondering... how do you close all positions? I can't seem to figure out how to code it into my EA :( Thanks
  Order problems  (9)
Hey there, I'm experiencing some order problems. Let me explain. When a condition is met, a order is placed. Lets say it is a sell order. Now, when a buy condition is met, while the previous order is still open, and a buy order is executed, it cancels out the previous order(it closes the...
Is there any way to know that SL was hit? I can use OnTrade(), but I won't be able to know the reason why the order closed or am I missing something?
When I set a breakpoint in MetaEditor and click "debug" menu, a message box will be popped saying "specified symbol is not selected". And I can't find a way to go on. How to use the debugger in MT5? Is there any available document about how to debug? If I stop at function OnCalculate,when next...
need an example of buy 1.8 LOT EURUSD SL 35 pip TP 70 pip comment = kelly thankyou
how can i find a specific magic_nub order by not using loop(for) //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ int GetOrdersTotalByMagic(long const magic_number) { long order_ticket; int total=0; //--- selection through the entire history HistorySelect(0...
how to code multi-currency EA? what is the sentence? do I need to do something special ? THANKS
my EA is simple , and the  functions in my EA do not have relationship, can i coded a mql5 EA which is no Class,  inheritance and no Polymorphism , without any error? thanks 
what is the aim of mql5?   i feel lots of disadvantages of mql5, such as difficult to learn, although it being more flexible(compare with mql4) , but  Predefined variables also need to code yourself , e.g. High[3]   and the history data will not be check before backtesting, e.g. low[3] is higher...
Anybody successfully demo test MT5 with good profits??? If you are PROFITABLE and NOT secretive, what indicators and strategies do you use?
I really enjoy the new Experts list.  It makes it easy to update all EA settings in one place, but if you could add the chart to the properties title bar.  It would help to remember which EA and chart is on when updating several EA settings.  Also make a double click go to the Properties, not exit....
hello i see standard trailing stop loss 15 pips ! What is the speed of the system to check prices ? Idea is to build a new trailing ea with trailing order and trailing stop loss ! Can the system check price by seconds and how many times by seconds ? Is it possible to reduce the trailing to 1...
'Create' - no one of the overloads can be applied to the function call   only can't pass compile at CiStochastic    if (m_MACD = new CiMACD)      {        m_MACD.Create(NULL, 0, 12, 26, 9, PRICE_CLOSE);        m_MACD.BuffSize(2);      }    if (m_MA = new CiMA)      {        m_MA.Create(NULL, 0, 20...
dll file ================================ library TestDll; uses ShareMem, SysUtils, Classes; function TestDll_A(i: integer): integer; stdcall; begin Result := i * 100; end; function TestDll_B(aStr: PChar): integer; stdcall; begin // StrCopy(aStr, PChar('123'));...
because my indicaotor cannot draw object under MT5, so I change to expert, so can I place 2 or more experts on the chart? thanks hongbin.fei
I cannot place a correct order using my function and the server returns a code not defined in https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes 2010.02.04 09:38:45 CheckSymbolInfo (EURUSD,H1) PlaceMarketOrder() return code: 10027 2010.02.04 09:38:45...
My robot run on H1, I want  place an indicator to other chart(h4,D1) by this expert(robot), may I use indicatorcreate?  thanks for help.