I've been trying to figure this out for some time now and i've been searing everything to find a solution. I'm trying to use the Wininet function FtpGetCurrentDirectioryA. According to MSDN C++BOOL FtpGetCurrentDirectory( _In_ HINTERNET hConnect, _Out_ LPTSTR lpszCurrentDirectory...
//+------------------------------------------------------------------+//| Corner.mq4 |//| Copyright 2013, MetaQuotes Software Corp. |//| http://www.metaquotes.net...
int cnt, total; total=OrdersTotal(); for(cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); if( OrderType()==OP_BUY && Bid-OrderOpenPrice() >Point*TakeProfit) { OrderClose(cnt, OrderLots(),Bid, 3, CLR_NONE) ;...
[Deleted]
At the moment I have very large difference between buy and sell. Almost 10 digits. What is yours
Dear all, I want to add external parameters for my EA while adding include files, as shown below: #include <test.mqh>extern int ExtParam1; But with the "#include <test.mqh>" statement, I cannot back test the EA while specifying the "ExtParam1" optimization parameters.I have to divide the...
Hi guys, I have 28 double arrays(one dimentional) how I can code to find the first 8 highest numbers(arrays) and create new two dimentional array that one dimention shows bars history and second shows these 8 values??? thanks,
Ok, first of all, I have read the entire MQL4 manual... (so before I get badgered this time for being ignorant, I have done my homework...) if (direction==0) //--Buy--// { { double bsl=buy_stop_price; double btp=buy_takeprofit_price; LotSize =...
[Deleted]
hi ! I try to search a solution for allowed or not allowed a trade ( Buy or sell ) based on the last order time closed, look like that : OrderCloseTime() + Hours for allow the news trade Help me please :(. ( Sorry for my poor english :s ) I try that but it's not work : extern int...
[Deleted]
Hello everybody, I need help with a simple formula. I need to subtract the current data minus the previous data and I wrote this but with a wrong result: Buffer6[i]=Buffer4[i]-Buffer4[i-1]; Buffer7[i]=Buffer5[i]-Buffer5[i-1]; Thank you,
Hello, The following code always fails on OrderSelect() and the return error code is 0 if (OrderDelete(TicketNum, CLR_NONE) == TRUE){ ... if (OrderSelect(TicketNum, SELECT_BY_TICKET) != TRUE) { Alert("Server failed to select order ticket=", TicketNum, " Err=",...
[Deleted]
Can I transfer my custom indicator from my laptop to my tablet and smartphone which both operate the window system?
[Deleted]
Hello, I am a beginer, trying to run his first script, but when I do I get this error. initialized One-Click Trading plug-in for MetaTrader4. cannot load library 'mt4dll.dll' (error 126) expert stopped I looked in my machine and there is no mt4dll.dll file, I reinstal the soft, but nothing. Can some...
Dear all, I am a newbie in using strategyg tester. My questio1ns are:. 1. What is the meaning of the line and icon generated during the back test? 2. How to display equity curve ? my terminal only shows balance curve. Sorry to apply your help again . Thanks for your time and consideration.
[Deleted]
Hello, i have write a trade copy tool and i have a question, when i have a Order in EURUSD and i want to open in the Metatrader where i receive this signal also a Order in EURUSD, but this Broker have another name for EURUSD, how can i codeing it to open in EURUSD a order? if i make this: OrderSend
New article How to Install and Use OpenCL for Calculations is published at mql5.com: It has been over a year since MQL5 started providing native support for OpenCL. However not many users have seen the true value of using parallel computing in their Expert Advisors, indicators or scripts. This...
Strange thing, an old short piece of code of mine is not working now. i do it on build 482 A simple code to check whether are there open trades, and if there were, then looks for the biggest lot size to double it. In backtesting it does something else: even if there were no trades open, this code...
I got the take profit and stop loss to work but it only executes on one order and is not applied on all the open orders. How do I get the take profit to be applied on all open orders? Any advise?...
baje dos veces la metatrader 4 una de la web fxforextime y la otra de la web ibfx.com .. como no se conectan con su servidor respectivo decidi desintalar e instalar de nuevo.. Ah.. se me olvidaba tambien baje de google la metatrder 5 sera este el problema del porque no conecta la metatrder 4??' en...
Hi, I would like to migrate the indicator attached below to MQL5. Can anyone do it for me? I tried so many methods and followed so many articles. But couldn't do it. Thanks in advance.
-
Hi guys, I have been working on an EA of mine for the past month or so. It works great in the strategy tester, so I decided to try it out on the live demo. However, after a few trades I get this message: "2010.04.26 18:51:58 Memory handler: cannot allocate 164202016 bytes of memory." Also, when I...
Hi all. I'm find in my HD the indicator attached. I remember that i download it from this forum. How i have to construe this indi? Thank you.
[Deleted]
hi guys n gals hopefully someone can advise me whlist using the mt4 in tester mode with an EA in visual mode, i.e. you can see the chart drawing on screen as ea plays, i wish to use a script to return the details of the order which is currently open on the ea tester window, however i can't seem...
Hey Guys. I wrote an expert and have only one problem. He makes 100 trades in few minutes and loose all the money. I want to make a 15min/1h. break after every closed trade. So i wrote: if(OrdersHistoryTotal()>0) { for(int a=0;a<OrdersHistoryTotal();a++) { if(OrderSelect(a...
Hi Does 3DOscillator CI repaints? According to some backtests ive done it seems it does. I m quite suprised since in the code i can only see using iRSI&iCCI. Is there a way to fix this? https://www.mql5.com/en/code
Hi, I process the " optimization results " tab as shown in the tab after an optimization. To do this I pass all this data in a csv file (coma separator). The "save as report" option doesn't work for me as it doesn't save all information as shown in the tab (inputs are not shown). I do a copy and
int init() { ObjectCreate ( "closeprice" , OBJ_ARROW , 0 , Time[ 5 ], Close[ 5 ]); ObjectSet( "closeprice" , OBJPROP_ARROWCODE , 5 ); return ( 0 ); } int start() { //---- double closeprice1, endprice,closeprice; closeprice1=ObjectGet( "closeprice" ,OBJPROP_PRICE1); string
[Deleted]
hi friends i m searching for averaging with multiply method Expert Advisor look the attached statement the EA possible change lot size,averaging gap and multiply also please help me
How to modify OP_BUYSTOP current price / position??? For me OrderModify is not working, don't know why... Maybe doing wrong And on each tick deleting and creating new ticket is not very smart and cool :D
[Deleted]
if (Bar(0) price >200){ OrderSend(Symbol(), OP_BUY, lotSize, Ask,3,stopLoss,magicNumber; lastTrade = Time[0]; return;} else if (Bar(0) price <200){ OrderSend(Symbol(), OP_SELL, lotSize, Bid,3,stopLoss,magicNumber; lastTrade = Time[0]; return; }Is this code totally illogical?...
for example these r my ea's orders. 1 order is long at 1.30000 2. order is long at 1.29700 3. order is short at 1. 2960. 4. order is short at 1.2940 5. order is long at 1.2920 now all five order not close yet. i want write a code that ; when 6. order will open, ea will check 5. orders open price...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.