Expert Advisors and Automated Trading - page 367

Hi, Is there any keyword or function to identify the session start time of the Symbol. Please help Thanks!!
To call a Custom Moving Average  ............................ int avg=iCustom(NULL,pPeriodo,Indicator_Directory_And_Name,                          3,         // Period                          0,          // Offset                          MODE_SMA,   // Calculation...
hello can someone help me to limit my order per signal  im using zigzag as signal.       //input from indi      double zh=iCustom(Symbol(),0,"ZigZag.ex4",depth,deviation,backstep,1,0);      double zl=iCustom(Symbol(),0,"ZigZag.ex4",depth,deviation,backstep,2,0);      double zz=iCustom(Symbol(),0...
I need to force indicator calculate values for indicators with buffer array of quotes customized. This link show how can I export basic information of all  quote and symbols of metatrader, https://www.mql5.com/en/articles/502 but this example only show how I can export a basic data like Open, close,...
Hi guys, I'm trying to download some files by WebRequest(). The code works well to some kind of files, but when I try to download DLLs the function FileClose() clears the content of the file. It's very clear, FileOpen() creates a file with size 0kB, then FileWriteArray() fills up the file with the...
Hi everybody, I'm new to metatrader, and I had developed a EA and run a strategy tester, and all run fine until there but now, I changed an input param value to an custom indicator I use on this EA but when I click over run/debug button, strategy tester starts with the old value!!! I had looked for...
Hi guys, i need some help or script for Buystop and sellstop. i mean is when the price is move, the order of buy stop or sell stop are move too. Sorry im newbie here. Thanks
Say I have a stop loss and take profit strategy, to label the training set (historical prices) as buy or sell or do nothing, am I right that I need to know whether that historical price would lead to loss or take profit according to the stop loss and take profit strategy, and use that to label the...
i wondering aboout how to make an EA , if the order have hit a tp , it will make a same order and same tp with increases a lot . If u have a coding about this , can u shared it with me
Is there a size limit for EX5 files?
Hi all, first of all, thanks to anyone reading this that replied to my previous topic. This time I'm struggling with time management: I need to check (every 60 seconds) if the trade has reached TP or SL. For this I'm using the TimeLocal(); function: each tick I store the new value in a variable...
I have wrote a EA in mql5 void onTick part, I used Ctrade library for opening positions, the EA recognize the condition correctly but it opens alot of positions at same time on one bar! How can I set the max positions to be opened at a same time? I want it ti open like 5 open positions Please help
  EA script...?  (1)
I have created my indicator and it will show two possible outcomes on chart 'Buy or Sell'. Is there a default EA script I can use and insert my indicator using iCustom..>?
Ive tried to load this indicator to my EA: https://www.mql5.com/en/code/575 But i need some help..  Before I was using MQL4 and just switched to MQL5 and MT5. In mql4 I just could access the values like this. double valuechart = iCustom(NULL,0,"value_chart",3,0);//value 3 and current candle Now I...
Hi, do you know an indicator that allows me to close all the trade at a certain time? For example, it has to close everything at 18:00 on 15/05/2017 ...
Hi, my name is Enrico. I've been asked to develop an MQL5 EA and it has been hard so far as I've never been involved in this field. I'd like to ask one simple question: I'd like to know how to actually open a trade. I need to open the first trade on a random position between Long or Short. So I...
Hi It looked verry easy to my but now i get error: TimeToStruct ( TimeCurrent (),myTime); if (myTime.day_of_week!= 5 ) { // HERAUSFINDEN WIE DATUM VOM FOLGENDE FREITAG GEHT request.type_time= ORDER_TIME_SPECIFIED_DAY ;
Hi, do you know an expert that allows me to close all the trade at a certain time? For example, it has to close everything at 18:00 on 15/05/2017 ...
I've written a version of the MACD indicator and am storing some price values in an array. i will be passing the values to an EA to trade. The problem is when i add the price values to an array, the MACD axis changes so that the max axis value is equal to price. this completely flattens the MACD
Hi guys ; is any body here have  any idea about code countig open orders at certain price ; sorry for my weak english and regards
Hi, I finalized my first EA on XAUUSD and after run some back-testing to check the validity of my strategy I'd like to optimize my input variables. Is suggested to use a small time window (2/3 months) vs back testing to be adherence with last market conditions or not? Thanks Giovanni
Once my trade takes profit it closes. Is it possible to make an EA that would immediately re-open the exact same trade? And this would keep happening until I manually stop it. Thanks for any suggestions.
  Take-Profit  (2)
Hi, what instruction, can you use, to move the take-profit? example: Price 1.09660 takeprofit +20 pips Second position 1.09710 takeprofit + 20pips. The first position changes the take-profit, on the level of the second take-profit
Hello, I see this strange behavior, I created my EA and if I change the file name and run back test the result is different from the previous file. Why the results are different if change only the name of file (profit, trades, etc)? The above charts is relative to original file and below is the copy...
I am a beginner in coding. I can make two function to open two trades. However, I want to make it so that first trade is open, then a second trade would come in. And if the second trade is closed while the first trade is still open, it would not open a second trade again until the first trade has...
Hello guys,  i need a exact simple code in order to close positions opened after 2 candles or 3 , where meet a condition also. i dont have any knowledge in programming would appreciate your help ! 
Hello, because I have a lot of problems with Metatrader5 installed on Ubuntu 16.04 LTS, through the last updates of Wine, I'd want to ask if it is possible to directly use the Webterminal of Metatrader5 also with the expert advisors, those I find on the market or that I develop by myself. If...
Mql5 CopyTime reference website tells me this: "The function gets to time_array history data of bar opening time for the specified symbol-period pair in the specified quantity. It should be noted that elements ordering is from present to past, i.e., starting position of 0 means the current bar." So...
  EA Loss Recovery  (1)
So I have seen on the mql market with some different GRID systems, that during backtesting, the EA can be used manually with a buy/sell/close button. Once the button is hit, the EA takes over and places the orders and acts properly.  Im curious if the same thing could be done with a Loss Recovery EA...
  ExpertMoney.mqh  (2)
Hi All, I tried to understand ExpertMoney.mqh. Is there someone who can explain this part of that class? Even if we are using a derivated class and if we are surcharging CheckopenLong and checkOpenClose, according to me the end of thoses functions should be : .... if(lot<m_symbol...