Expert Advisors and Automated Trading - page 106

To post a new topic, please log in or register
Dear all, I am writing a trading panel. Pressing a button it creates two CiMA objects. Both indicators are then displayed as red lines. Could somebody give me a hint at where the documentation shows how to change the colors of indicators created this way? Thanks in advance! Thomas 
Hello I would like to change the size of the windows from the program. ! It is not about the subwindows of the indicators ! For example, there four open chart with different symbols (EURUSD, GBPUSD etc.). I would like to control the size and position of the chart-windows within the big MT5 windows.....
Hello, im starting to MQL5 and trying to create a custom indicator but for some reason the debug stopped to print the values:   //+------------------------------------------------------------------+ //|                                                      MIN_MAX.mq5 |...
Hi I think i get type conversion warning because ulong has no negative value possible, but the calculation could finish negative... (For understanding the fSpot is a double with the actual price witch is turned in his one magicnumber by multiplying it with 1000000) ...i know it will not, but how to...
  graphic (1)
The graph scrolls to the starting point as I get rid of this configuration to flow back without continuing to do it again. we can remove for free movement of the graphic? 
Hi. I would like to check my subscribed Signal provider's Balance from EA, and find 'SignalBaseGetDouble' with SIGNAL_BASE_BALANCE. So I tried SignalBaseGetDouble(SIGNAL_BASE_BALANCE), and it returns 0.8 when my signal provider has now $12,600 on MQL5 signal page.  Could somebody tell me what I am...
Hello there , i got a ea where he takes MG on the next candle if the strategy dont work. but now i want the EA to stop after 3 or 4 losses and take loss. But my Ea keep doing the MG on the next candle. Does some one know the code for stopping The ea after 4 x taking a MG ?   thx you very much....
Hi I code a trailingfunktion below one of the last candles. But this code returns the lowest Bid price - fine so far but i need the Ask price.   double   lowest = 0;   int      TrailingCandles = 2; int minIdx;    //-- Tiefpreis aus X(TrainilgCandles) Candels          double low[];...
However the MQL5 Reference  /  Timeseries and Indicators Access / IndicatorCreate states: You can pass no more than 256 parameters Receive a fault message with 65 elements: 2016.12.08 13:52:46.474 Core 1 2010.01.01 00:00:00   E086400203 LokForTreFil_01 (20160201).mqh CForTreFil_01::InitCustomInd...
Hi, I am currently migratingsome of my tools from mq4 to mq5 and I am struggling to get the pip/tick countof closed orders. My only issue is toget the ENTRY PRICE of closed orders. Here is the piece ofcode that I am using          datetime    deal_close_time = 0;...
Dear Coders Lately I have found that MQL5.com introduced some automatic Validation for their product page when people submitted ex4 or ex5 files. I am just curious if this means that MQL5.com can read source code inside our ex4 or ex5 file ? Can someone clarify this  ? If they can't what is the...
I have been testing new code on one of my EAs and I believe it created some kind of bug. I changed the name of the EA while it was still attached to a chart. When I turn the new EA on it doesn't open any trades. I did try manual trading and it opens fine, but closes the manual trading as if the EA...
How do I get the values from the previous candlestick of a given timeframe in MT5?
Hi All, I have been looking at code, which imports calendar events from the following link:  http://www.forexfactory.com/ffcal_week_this.xml   I was just wondering if anybody was aware of an xml link that provides news data, (not calendar data).   I have tried the following, but the link doesn't...
Dear all, I created a ComboBox object in an indicator subwindow(by the code attached), But when I click the drop-down arrow next to the control, nothing was pop out. What is wrong with my code? Many thanks for your time and efforts...
hi, in order to complete my own EA, I need the open,close,high and low prices of last 4 candles. which function is used to get these different prices(each candle's ) in MQL5? I'm not using any Indicators.. just following candlestick patterns what will be the code to get the following 1. candle...
Hi, I'm new to this and would like to know if it is possible to install an EA on the WebTerminal, I'll appreciate some help.   Regards 
I'm wondering if there is a script (or EA available that I may be able to get some ideas regarding the code here) that will place orders based on fib levels. What I'm hoping for is something like this: Draw the fibo or use auto fibo Place an order at 61.8 Does such a script exist or can someone give...
Sorry, newbie here: I have the NQ futures contract back to August in a daily chart. I'm trying to program an EA. I only get 6 out of the 101 daily bars in the strategy test:   2016.12.06 08:22:47.037 Core 1 connecting to 127.0.0.1:3000 2016.12.06 08:22:47.039 Core 1 connected 2016.12.06 08:22:47...
Hi, Why is it that the RR tool I purchased via the MT4 platform only works with the EURUSD? On all other pairs it will appear but it will not display the RR...  Does anyone know? (please see screenshots in annex) Many thanks in advance,   Jürgen  
Hi guys, I am trying to learn to create a robot/EA for Forex. I find it quite difficult. Can somebody help me out? This is what i am looking for. - open a trade right at the opening price of the day (is it possible anyways? or a solutution to this?) - close the trade at a certain price/pips/points -...
MQL5 should state how long the signal has been on MQL5! If they do already, it's not prominent. It should be shown on the left of the screen with the rest of the basic information concerning the signal. I subscribed to this signal "My Stable Profit" for a couple of weeks. Based on past performance,...
hello , With simpler EA for moving average cross , when i make the shift of MA negative (-5) , all deals are wrong  is there a solution for the negative shift ??? 
Hello everybody can someone tell me, why the ea on MT4 (backtest) is not working all the time? Thank you. JonAM 
Hi, I downloaded a lot of EA based on candelstick and oscillator (RSI, Stocastic). For example: https://www.mql5.com/en/code/301 https://www.mql5.com/en/code/316 https://www.mql5.com/en/code/307 https://www.mql5.com/en/code/320 Etc.. I think they work very good but i wanna ask something: 1) Is There...
Dear Experts .... I need MT4  EA for manually drawn horizontal line ... * 6 Horizontal lines have to be drawn MANUALLY .. in which one is for buy , second is for Target and third is for Stop loss and  Same vise versa for Sell side . * Option needed in properties to select BUY side alone or SELL...
I create a new script using the wizard and save and compile it but it doesn't show from the insert, scripts dropdowns on the charts. Some others that I have made are there however. Does anyone know why?  Thanks.  
Hi.. possible loss of data due to type conversion   ,,,being the Mt5 compile warning message  Also the Ea compiles and works in mt4,But mt5 compile has 0 errors and many warnings all with ihigh , ihighest ,low,lowest. There is a variable inserted, being ""cntT"" in this particular example."...
Because the webrequest function does not support the port, so I would like to import lubcurl dll   Please 
Hello,   i have the problem on Position Ticket bcs i want to change the position ticket in an object,  for this i create an object, and now i want to change the open and pending tickets with +/- as example i show you object     where i use this code for for the objects    ButtonCreate(0,"+Ticket",0...