Expert Advisors and Automated Trading - page 196

To post a new topic, please log in or register
hello see title ... i try to modify (examples)controls.mq5 in my own directory (robotB) but i can't : compile errors i certainly forget an include but what ? thank's 'CPoint' - declaration without type     Rect...
Is candlestick indicator useful for an EA creation? Do you have any experience with candlestick indicator
Hello all, weeks ago I had a C-programming training. Now I will start to learn MQL5. I read some tutorials but I don`t know how I can get the maximum and minimum of bars to copy them into an own array. Concretely I would like to create an array (e.g. double array_maximum[20]) and safe the maxima of...
hello! :-)  I would like to automate my backtests, so they will run at night or on weekends  Can I program it with MQL5?  best regards
  No. of Lots (2)
Hi, Here I am trying to find out how many 0.1 (SYMBOL_VOLUME_MIN) lots are there in a position. I am using below given code to find it. Only BUY-Instant orders are used here. Lot Size is maintained as 0.1 while opening, adding and closing of the position. Position Volume is working good...
hello ! my EA seed several same orders (generated by onTick() ) although my first lines are : if (PositionSelect(_SYMBOL)==true){   Modify_Order();}else{   Send__Order();}   i think it's a problem of waiting time on the queue server. may i treat my first order in OntradeTransaction event? an other...
Hi, Right now I am back-testing my EA. In EURUSD I find a gap or data-missing. I have attached the screenshot. Is there any way to will it up? or Will that gap disturb while back-testing? If I want to test from 2004 means what should I do? I am using MQL5.com's demo. With Regards, Krishna
I want to be able to run an external app like : notepad.exe using ShellExecuteW() and send an argument like : c:\sample.txt to that. I mean: notepad.exe c:\sample.txt How can I send arguments to that? I use: #import "shell32.dll" and : int ShellExecuteW(int hWnd,int lpVerb,string lpFile...
every time my computer hangs strategies instead of resuming open positions just start all over again. Is it possible to make them resume work or to program EA in such way so it would resume the activity instead of reseting it every single time. This is most annoying thing for me in both...
Hi everybody, i've been looking for a script that allows me to set pending BuyStop, BuyLimit, SellStop and SellLimit orders at a specified distance from a candle opening price in pips. E.g. i want to place pending orders every hour at "opening price +200 pips". There are some scripts out there,...
Hello , I need to know how does GetTickCount function behave in Strategy Tester if we using it to deciding on the trades? Thank you
Hello, I need to return multiple values from a method. Actually I'm already using a struct but it doesn't work properly (sometimes it returns true value but sometimes returns EMPTY_VALUE). struct orderValue  {...
Lema_Carl
Hello, I have been using a file loaded with values to optimize certain parameters of my experts and it was working fine. All i had to do was save the file into the testers temporary files folder but since i recently installed one of the terminals updates, the tester deletes the file without...
I want to have the total of milliseconds past from the start of the current day in the server's time. Please help me with the code. Give an example code please. Thanks
Hello everyone, I'm trying to iterate in a checkgroup control but I can't get the count of items in it. how can i do that? Thank you in advance
Hey there I am quite new to mql5 but i already programmed in c++/java/php. I am not sure why my code isnt executed, thats why i am asking here: void OnTick()  { MqlTick last_tick;//--- if(SymbolInfoTick(Symbol(),last_tick))     { Print(last_tick.time,": Bid...
Hi Guys, Sorry new here, i was just wondering whether other people are having problems with EA coding ? I have someone writing up code for me through the jobs section however he says that it works on his system and it dosent for me on build 600 and 610. he said there were errors...
when I place a pending order in MT5, is it necessary to have my terminal of MT5 runnin to execute those orders? or can I disconnect from the internet and shutdown my PC? I mean, if I shutdown my PC and disconnect from the Internet, will the server of MT5 continue to execute my orders when my own...
I want to know if there are 5 seconds until for example 8:00 am. I have to use the TimeTradeServer() datetime as the source of my current time. please give an example. Thanks
hello, I need to manage several MT5 accounts. Should I install several MT5? Is there an alternative? best regards
Hello I need to know if an order is stopped by a stoploss or take profit. by the server. I think it is possible in the event OnTradeTransaction () but I can not find the right syntax and magic ticket and order ticket = 0? Does anyone has an example or a tutorial ? thank you for your help
Yes, right now! Yes, in the near future. Yes, but just in the distant future. No, maybe in the future. No, never!
i need a ea for opening two pending order at a fixed time. in that time the the order will open with the different of current market price. i want to used the TP AND SL and Lot.
Date="+SymbolInfoInteger(_Symbol,SYMBOL_TIME)+" returns the date in that format : Date=1392399002 did i miss something ?
Hi All, I am a novice in the area of metaquotes and mql5. I need to know if it is possible to have a script or Expert Adviser developed to generate signals on my market symbols. I have a customized version of meta-trader 5 with my market symbols already present in the system. I don't need an...
Is it possible in MQL5? ma_temp=iCustom(NULL, 0, "Market/NameOfTheIndicator.ex5",2,true); ? That way few methods could be combined creating betting trading systems.
  Trailing stop (1)
Hi, I have one small problem with trailing stop programing. if(OrderStopLoss()<Bid-Point*TrailingStop){ bool res1=OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(Bid-Point*TrailingStop,Digits),OrderTakeProfit(),0,Blue);&nbsp;&nbsp; } What I want then...
Hi Guys I can't figure out how to calculate the second Monday of each month. I have an ea that performs a check on the second Monday of each month. I want to run this ea at any time during the month, before or after the second Monday but it must perform a certain check on the second Monday. What...
An user of my MT5 EA has written: I have questions ... This report appear : 2014.02.11 02:01:45.356 grid_harvester_mt5 (GBPJPY.e,M1) CTrade::OrderSend: market buy 0.02 GBPJPY.e [unknown retcode 10001] is it normal?? my TP is 10 pip, when that report appear and the profit reached 12pip++ the...
Many of my potential customers are people speaking Russian. Do i have to release separate language version for them or is it possible to do it in 1 version? I haven't googled anything out :/    Maybe you should add 1-click translate to MT5 EA options like on mql5 page using very good translator used...