Expert Advisors and Automated Trading - page 209

To post a new topic, please log in or register
class CTrade  {private:   MqlTradeRequest   request; MqlTradeResult    result; // ADD SL TP Point Conversion   public: bool openPosition (ENUM_ORDER_TYPE pType, double pVolume, string pSymbol, double pStopLoss = 0, double...
Hello there, Today I am cleaning some OOP code written in MQL5 syntax! Right now I am pretty sure that you can write something like the following in compiled languages such as Java and C: class CGraphic   {      public:         string pair;         CSymbolInfo symbol;         ENUM_TIMEFRAMES...
Has anybody tried this expert? if so, what was your outcome?
Hi,   I am looking for a function in a script that opens a window with some information (that I pass as a string) and has to buttons to select "OK" and "Cancel". If "Cancle" is chosen, I would like to exit the script.    Thank you.   Best, Chris 
hello everybody I'm trying to backtest and forward test some advisors I've downloaded, unfortunately some of them don't trade, they take some minutes to run the test and then I've zero trades in the report. it there any debugger other then print()? or do you know which are the main causes for this...
I have got two different platform of Meta Trader 5. I want to capture the price of EURUSD spot from one platform and use that price as an input for the second platform. How can i do that? Is it possible to handle a price from a one exchange and use it in another exchange? Is that possible?
Hi, I use the ExpertMAMA in mt5, I have optimized this expert and I use it with automated trading (demo for the moment). It buy or sell only with 0.01 as volume, how to modify this volume by 4.00? Thank you for your help. Bruno
Are there any examples available of connecting MQL5 to Microsoft SQL Server Integration Services to execute SSIS packages?
I'm very new to MQL5. I am trying to migrate an indicator to mql5 from mql4. While using iStochastic I'm getting following errors. Error: 'MODE_MAIN' - undeclared identifier BFS_Stoc.mq5 107 87 'iStochastic' - wrong parameters count BFS_Stoc.mq5 107...
Hello there, I'm modelling a graphic in a MQL5 struct like this: struct bar  {   datetime time;   // ...     };struct graphic  {   CSymbolInfo symbol;   ENUM_TIMEFRAMES timeframe;   bar bars[];  }; This is because later I want to define properties of type graphic in any class, for instance: // .....
Hello I am running a optimization for my EA that took a bunch of hours already. I used the Cloud network for it too. Since the update came out i cant use the cloud service anymore. i guess i need to restart mt5 to use it. my question is..... do I have to start my optimization from the beginning if...
Hi everyone Im fairly new to the metatrader 5 application and started writing my own EA. The strategy Tester is a powerful tool helping me with this. But since i tested some random downloaded EA, almost all my dropdown menus disappeared. Ive been struggling for quite a time to get them back, but i...
Dear MetaQuotes, Since you have just introduced new event handling function OnTradeTransaction(), could you please clarify - does this function completely enhance the old OnTrade() function? What I mean is - is there a point in using OnTrade() any longer when writing EAs from scratch? (e.g. if...
Hi First Sorry For Bad English !!! I Need an expert that alert me when an indicator (For example: RSI, MFI Or ...) crossing any value that we send it (in parameter) For example : when RSI Cross 30 or MFI Cross 70 I don't know any thing about MQL5 and i'm beginner in this software please help me...
If you call a custom indicator from EA, is there a way to know if the indicator initialized successfully? In my experience, iCustom() always returns valid handle, regardless of result of custom indicators OnInit(). This is also valid for putting custom indicator on chart: initialization fails,...
I need to write and implement an automated strategy that will perform the following: Go Long when SMA 10 crosses above SMA 30 and Go Short when it crosses below. It should not re-enter a trade prior to 1 hour before close. HERE is a video http://screencast.com/t/dOXBSytiCC illustrating my...
Hello, I am not new to programming, however I am new to mql5 and the metatrader. When I use the MetaEditor to write a new version of my EA all my changes are not used, MT is using an old version of my EA. Does anyone know what I am missing? Thanks a lot in advance
Hi,  I try to program  a simple script.  My question: How do I get the value of the ATR (average true range) indicator in a script? I've found the function "iATR" (https://www.mql5.com/en/docs/indicators/iatr) but it does not return the current ATR value. Any ideas?   Thank you. Best, Chris 
hello guys during testing I'd like to get the full list of trades, somthing like this: trade n p/l pips p/l in $ p/l % 1 200 1400$ 0.2% 2 -300 -2100$ -0.3% someone know whether it's possible in meta trader?
Hi all How can I attach a script to chart within the init-part of an EA? I've always a coresponding script to each EA I need to attach. Thanks for help. Best Regards, FX_TA
Hello all, Here is the result when running strategy tester with ExpertMAPSARSizeOptimized.ex5 on EURUSD market between 01-05 to 12-05 : Initial deposit : 1000€ Net total profit : 3577.02€ Brut profit : 5215.98€ Brut loss : -1638.96€ Don't you think that is awesome ? Thanks
Good day, I am new to the forum. I have a very good binary options system that I would like to have automated. However I am in the process of reading the necessary information on this site before proceeding. I would like to know if anyone can direct me to a " Non -Disclosure Form"  for...
have any functions? any suggestion? thanx phil
chandra100
Which MT5 functions to use for Call and Put kind of trades in Futures ?
Hi, new in this just made my first EA on stoch and RSI with a free EA builder, It seems to work fine on quiet market hours on 1min time frame just scalping small moves . But if market start moving fast in one direction my EA will still enter the market as my indicators will still be over or...
Hi, am a complete novice, (but literate, and a fast learner). I wish to find a successful trader / developer of mechanical systems, that would be prepared to take me under his/her wing for the next period and teach me the basics and advanced. Maybee follow there trades, spend a day a week with...
hi, somebody have some idea how can i resolve this problem? phil
Is there ready made DLL that can be called from outside software from witch one can send parameters for trade performing and from the other side to recive confirmation on that trade ? and if there is no ready DLL, what is the right direction for that subject ? I'm new for mql5 and appreciate...
I wonder why this function exist and how it can be used for an useful task ? There is often confusion among programmers between this function and ArrayGetAsSeries, even in some good articles. Maybe there is historical reason or I miss something.