MQL4 and MetaTrader 4 - page 83

To post a new topic, please log in or register
Hi I amlearning how to program expert advisors. So far, it worked quite well. Last week,I started to create programs including orders. First Iwanted to test my program in the strategy tester which is included in MT4. Icould place Buy orders including SL and TP which worked fine. But the programalso...
Does MT4 has a function can convert upper case to lower case and vice versa? Itcould be very handy. cheers.
Hey everyone, can someone please guide me on how to put this indicator in ea. //+------------------------------------------------------------------+ //|                                                   AMA&AMAsig.mq4 |...
i want to open buylimit or sellimit orders but at specific time only . example : set buy limit order 1.10001 from 6 am to 9 am only after that cancel the order . please check the code and give me the right code or correct it , please . if((D'6:00:00'<= Time[0]<=D'9:00:00') == true)      {...
Hello everyone, I wrote the code below that, in my mind, should move the endpoint of the trend line to the high of the highest bar, or the low of the lowest bar, but it doesn't. The end of the trend line is moved to the correct level, but not to the right bar, instead it is moved to the most recent...
Hi everyone. I need to use one fuction, but with a varible numbers of parameters, the quntity of parameters is known in advance. In C++ for example, you use kind of void func(int a, int b, ...) and it's simple. But unfortunately I havent found any information about it in MQL4. Any tips, how to do it...
Hi,  Can someone please send a list of brokers or your broker who uses GMT+0 time server?  Requirements MT4 offered by broker, Server is GMT+0 time I have searched sites that refine the search of brokers based on server time however the data is inaccurate. thanks
Hello, i have a Simple MACD Trend-follow-bot programmed but every Time if he made a Trade, he made it more than once. input bool MACDAktivieren = False;double MACDTakeProfit;double MACDStopLoss;int OffsetHunderterEMA;int TimeframeMACD;int buyticketMACDBuy;int buyticketMACDSell;bool...
Hi Forgive me but I'm new to MQL4 and need to know how you can place a text label on a chart that automatically updates as the price changes. For example, if you had a low time frame price channel on a chart that was changing pretty much constantly, how do you associate a text label with it? A brief...
Put a stop(loss) to typing in your trades manually. Use visual aids to place and manage your trades according to your personal trading plan. Put any number of trades simultaneously with a click of a button.Visual trade manager will place stoploss and profit targets according to your custom settings....
Hello, i've looked online for this type of indicator but cannot seem to find it anywhere. It's quite simple to code i think, hopefully one of you coders can help me out, i have no idea how to code it. The idea is this: 1. When a candlestick closes within the top or bottom 25 % percent of the...
Hello everyone, is it possible in MQL4 to insert a website inside a object window? void ControlPanel(){   string ControlPaint="Paint",        SecondPaint="Paint1";   if(ObjectFind(0,ControlPaint)<0)      {               ObjectCreate    (0,ControlPaint,OBJ_RECTANGLE_LABEL,0,0...
Is it possible to hide account holder name ( for example display "private"  etc.) on html statement generated by client MT4 terminal. Is there a feature on server side that broker can possibly accommodate such request ? Anybody with this experience
Hi, I hope that there is a moderator from the technical stuff of the Metaquotes who watches the questions and gives correct answer when there is no good answer from the other users. I couldn't find answer to the question described in the subject. With other words: Is there a supported way to open a...
Hi, I'm trying to use a bitmap arrow in my indicator but the background of my arrow hide the prices candle and the back color : Is there any way to make white as transparent ? Thank you for your help, Ghen.
  Take Profit/Stop Loss (16   1 2)
If I send and open an order with a Take Profit setting and a Stop Loss setting. Is it then guaranteed that these will be adhered to? (assuming that the SL is not closer than the STOPS level of course) A big issue is this - I have noticed that connectivity between my metatrader and the broker...
I am trying to find something similar here in the forum but so far found nothing. My problem is to calculate a Take Profit that allow me to get what I traded so, if I risk US$ 100,00 (converted to the LOT SIZE and taking care of the Margin) on a trade I would like to get the US$ 200,00 in return. I...
I want to use the value of another indicator in my own indicator, but from the indicator window I see that the two lines do not coincide. As you can see from the image above, the dark blue and light blue lines are similar, but not identical. This is my code: #property copyright "Nicola Peluchetti"...
mar5
Hi guys, I made a similar posting a couple of months ago but this one is simplified and right to the point. I have two indicators. One creates a button and if the button is clicked an alert is shown. The second indicator comes into play when a horizontal line is drawn. It just changes the state of...
Hi Can anyone tell me why everytime I test a specific week on mt4 strategy tester and save the results, then I return to the same week ,same pairs, same ea the results are never the same but yet they should be as they are supposed to be genuine results in the past, this is so annoying, how will we...
Hello Everyone, I believe I have basic understanding of Trailing order's and how does it work but there is still one gap in my understanding and would like to fill it with my question. Kindly note: my question belongs to each and every financial instrument as well as each and every, out of hundreds,...
  Last Order (3)
Hello, i will check, if i have open an order at the actual bar. My idea is, just ask OrderOpentime() and Time[0] with an Order Select    RefreshRates();      bool setOrder = false;      for(int j=0;j<OrdersTotal();j++)        {         Ticket=OrderSelect(j,SELECT_BY_POS,MODE_TRADES);...
Hey there, I have a strange problem in my MT4.. I connected my terminal with myfxbook via FTP publishing. Myfxbook recognized my Terminal and the connection is working. It work's, but only when i go to Tools -> Settings -> FTP -> and click on "Test"  then it uploads data (in Journal i see position...
mar5
Hi coders, I made two scipts. One changes the timeframe of all open charts to the timeframe where the script is dragged to. The other script changes the template of all open charts to a template named "test". Both work fine. But now I added one chart which should not be affected by the scripts. Now...
  Helweg/Stendahl value charts ... (374   1 2 3 4 5 ... 37 38)
Helweg / Stendahl value charts (from "Dynamic trading indicators" book) I guess this one was not made for metatrader yet since it was not possible to draw histograms with one end not being zero. With metatrader 5 that is possible, so here it is (it is metatrader 5 version only since some of the...
Hi All, Im trying to add this indicator to a chart in MT4 but it just wont load.  I think it may be a build issue. Does anyone know how i can fix this? (sorry am a bit of a novice - i have tried editor/compiling but no idea how to fix the errors). Thanks
Hi everyone, I am playing around with buttons on the chart and I thought it would be good to have a button that moves the stoploss to breakeven. What I want to do: I want to make an indicator that plots a button on my chart. When I push the button it triggers a script that moves my stop to break...
Hey everyone, am trying to learn the language of MQL4 (I'll get to MQL5 later) have an issue with one of the programs in the book. https://book.mql4.com/programm/samples the program possible.mq4 has a floating-point type "double" in it. But when running it, it only gives 4 digits after the dot,...
Hello mql 4, Is Macd 2009-2014 available for live account? Or is this expired 2014 for live,,,,,,,,,,,, and only for demo  available? regards balduin
What are the top 3 Development Languages or Frameworks to start a solid MQL coding career? Is it C++, Python, or what? what are the Top 3