Expert Advisors and Automated Trading - page 87

To post a new topic, please log in or register
Hello, please i am looking for a way to click any part of my screen with x and y co-ordinate, i have seen the PostMessageA function but i can only find commands that affect the MetaTrader platform i will like the click to affect the window on display, if my browser is showing and the EA clicks, it...
  About trailing stop (16   1 2)
Can anybody please upload a code section on how to modify a position e.g. trailing stop. I tried different variants and it does not work. Please help. Thank You.
Hello I own this robot mt5 forex robot and have dealt with a company WVC But when you open an account with a company FXDD Start opens up losing positions and closes trades below the point I want this robot to set a profit two or three points Does anyone know the settings of this robot Presently pay...
Hello, Have been running an EA on USDCHF/EURGBP/USDJPY/EURJPY/USDCAD/GBPJPY since 26/6/16 logging results on Excel daily. Total gain for above currencies is £147.82 (26/6/16 - 16/7/17). Actual data - demo account. Ran a backtest for each currency and total for period 26/6/16 - 16/7/17 shows a loss...
Hi guys, I want to make indicator to print on chart the price when yesterday Europe session close. (I mean to print close price around 18.00 (mine is GMT+2) of previous day) Now, Im stuck at getting the closing bar and put them to them program. Any help? Thank you guys :)
is there a code to execute (especially test) an EA at certain (user defined) intervals  of incomings ticks instead of each tick (with OnTick)? for hints, thanks in advance
Hello, Im trying to understand ObjectCreate function for couple of days now. I just don't understand the 2 or more last parameters: priceN and timeN. What are they?  At the beggining I thought that the are the coordinate of the object but then I saw the:OBJPROP_TIME,OBJPROP_YDISTANCE,OBJPROP_XSIZE...
Hi, I am trying to create a custom indicator which uses tick data (Ask and bid price) to show it as a graph in a separate window. How can I plot the values of historical tick data and keep adding to it the new tick data at real time? I am using OnCalculate function to get the current tick data but...
I could have sworn I saw in the notes from a recent release that function pointers had been added to the language, and now I can't find it anywhere. I didn't imagine this, did I? ‌‌Thanks!
does anyone have the idea for a (complete)code part, which makes sure, an EA (alternatively) an indicator is executed only at certain time intervals, let's say every 30 seconds etc.? for eventual hints thanks a lot in advance
Hey all newb here again Using a hedging account, I want to open an order when at an EMA cross with stop loss and take profit. I also however, want the order to close if the opposite cross happens before a stop loss or take profit has been triggered. About 8 hours into this problem and I'm lost as to...
dear members, can anybody help or suggest me the most profitable e.a. for trading in markets, maybe grid e.a or any scalping e.a, with less drawdown
Good afternoon! Does anyone help me find my mistake here? It compiles, but does not separate the orders according to the ENUM: Buy, Sell and Buy_Sell ... In the 3 configurations it buys and sells ... //| Class=CPriceAction...
I need an idea (or a piece of code to starts it), about making my EA open an order if it catches de stop loss level, in the new direction. Coudn't find anything that helps on my searches. Thanks in advance!
Hi I am confusing in coding a simple EA, plz help The problem is : If a fast MA cross a slow MA that produce a golden cross condition, then I want it to buy when the tick(price) equal or below the slow moving average value after confirming the golden cross condition, and if the price does not equal...
Ok so I stared experimenting with EA's and testing and so on. I understand the basics of programming and realize that if this was written in OOP style it would be a bit easier to navigate. However, I just wanted to start out and see if I could get an EA going with all the parameters I'm after. It's...
hi all, i'm trying to create my own expert adviser. However, i don't know the coding (mql5) that for close the opened position by (OrderType() == OP_BUY) or (OrderType() == OP_SELL). It is so much different with mql4. Kindly share a sample coding (mql5) for the below situation. if condition A, then...
Hi there, I have installed a few EA into MT4 and then drag it to the chart to let it start auto trading to try some demo. I can see a smiley face at the top right hand corner but i opened it for a few days, there is no single trade done? Why is it? I have no touch any setting and just want to see if...
// I would like to access that chart that opens AFTER the backtest is complete.   // Not the one created for the visual mode, this one: https://youtu.be/VqyxCRXdCls    // That one that shows all the orders / deals outside strategy tester   // I would like to automaticaly access it as soon as the...
How many metatraders can run on one desktop PC concurrently? Thanks.
Im a MT5 user trading futures and I'm seeking an option on MT5 where whenever I place an order, there will be a take profit amount set to the number of ticks I want my order to close (take profit) is met. So I place an order (sell or buy), and my TP is set to 2 ticks, my order will close once the...
We know FileWrite can used in EA and Indicators , But when I use Strategy Tester to output something in file , I find FileWrite can not used. Anyone used FileWrite in Strategy Tester? Do you find it can't use? for example: void OnTick()  {    int fileHandle=FileOpen("My.csv"...
Is it possible to send a new trade order to a terminal by email?
pvrego
I am trying to download the signal history using WebRequest function and the following function bool SavePageFromInternet(string url, string filename){   string cookie=NULL,headers;    char post[],result[];    int res;   bool returnResponse = true;   ResetLastError();    int timeout=5000;...
i want to build communication between two MT5 via share memory, i try to call windows API, but i faced GetLastError() =6 error, invalid handle a part code as follow: #define INVALID_HANDLE_VALUE            -1#define BUF_SIZE                       256#define FILE_MAP_READ                    4#define...
I am currently looking for a utility or EA that closes all the open positions when the equity of the account has made profit above the above the balance.   Example EA automatically closes all orders on the account when it reaches amount of profit on the equity and restarts trading of the original EA...
Suppose a situation where the EA places an order with lot 2. If this order is partially executed then a full execution should produce two deals. The first one is notified in the OnTrade() method as being related to an order with status ORDER_STATE_PARTIAL. What about the second one? Will it be...
i m using mt5 and the in the exchange execution i m facing very weird problem. can any one see the issue in my code it make in and out in and out 2 or times to close the position void CloseTradesifNoVolume(string symbol ,double &volume[] ,string &ArrFileSymbol[]){double masterbuylots=0; double...
Hello everyone I want to save time by testing an expert advisor Can you tell me how to test an expert advisor with all the symbols in parallel. What is the mql4 code and the mql5 code to test an expert advisor with all the symbols of the strategy tester? Or What is the website to test an expert...
Even when zooming ... the red arrow is the re-entry but why is the blue one shifted ?