MQL4 and MetaTrader 4 - page 53

The SymbolInfoSessionTrade() function seems to, somehow, help to find these values by comparing them. But the MQL4 documentation provides no examples in order to understand better how to execute it. The other MARKET_INFO ou Symbol_Properties also give no options to get the session beginning and end
[Deleted]
Hey fellas, is there any option to tell MT4 only to connect to a specific server? I have read some posts on various forums about this issue. My Broker offers me 4 different servers, but i would like to use only one specific. Aftere a reconnect MT4 always changes the server. best regards
  Change cid  (3)
Hello guys, is there a system to Change the cid? I have buy a different indicator and bot active by cid. but i would like use different vps. Is there a way to Change the cid? Thanks
hi anyone know why this expert not work and not give error ? int isPositionOpen = 0 ; // Variabile per tenere traccia dello stato della posizione int entryArrow, exitArrow; // ID degli oggetti grafici void OnTick () { if (DayOfWeek() == MONDAY && Hour() == 23 && Minute() == 58 ) { //
i have EA newsfiler and this EA news filter stop trade before news .. i wana to modify this EA that can be open trade before news if some one have idea plz hlep #property copyright "Copyright © 2016 Tor" #property link " http://einvestor.ru/ " #property version "1.0" #property description
Dear Friends, I am reaching out for assistance with an issue I've been experiencing while using the WebRequest function in an MQL4 script/Expert Advisor. I keep receiving an "Invalid URL" error, with the error code 5200, despite my checks indicating that all settings are correct. Here's a brief
I use the web trader https://trade.mql5.com/trade and use my MT4 account with Xbtfx. When placing a new order, if I omit the stop loss and leave it as 0, the majority of the time it automatically sets a stop loss that is just a pip or two from the entry price, and causes immediate loss. I have lost
Hi My investor's PC appears to be creating trades OK, SL/TP drawn, but not the actually order line itself.  See the attached pic. I've worked with mt4 and mql4 for about 6 years now and not ever seen this and wouldn't know where to look. Google not returning anything useful either.  Has anyone else...
Hi there guys, fast issue, if i try "MarketInfo(Symbol(), MODE_LOTSTEP);" it returns the lotstep correctly, BUT, if i send ANY other symbol (which is not the one in the chart with the EA or strategy tester ) it returns 0, por example: In US500 chart both "MarketInfo(Symbol(), MODE_LOTSTEP);" AND
Hi! With help from some clever people, I've written a simple, but efficient tutorial for any newbie-ish programmer who wants to include C# projects in their MT4 EA. https://github.com/DennisGundersen/MT4_To_CSharp_Bridge Enjoy! Re Dennis
Hello all, anyone can help me with the idea of writing each pair closing price for each candle in one column only per pair. like column number one, first sell have the name of the pair and the below 30 cells have the closing price for 30 candles, i need it to overwrite the csv for a specific period
Hello, I searched but didn't find this specific question on the forums. I understand that it is possible to trade cryptocurrency pairs on MT4, but the account I have linked to it is only listing forex pairs when I attempt to open a trade. My broker claims I can trade crypto pairs with MT4 and with
I would like to display only the specified bars by RSI in order to lighten the indicator, but it is not displayed well. How to display RSI for only specified of bars? //+------------------------------------------------------------------+ //|
hello I'm looking for a way to retrieve the price for s specific time or timeframe. For example, the price, M1, between 4pm and 4:20pm on january 4th ?   Anyway to do that ?   Thanks Nicolas 
Hello, I was moving the entire Windows 10 system from 1TB SSD to a larger 2TB SSD (using Windows disk-image to transfer the entire thing). After doing so, the MT4 was like "reset to a new starting date" and I have lost access to all the messages originally existing in the Mailbox. The messages are
Hi guys I want to convert pinescript v4 indicator to mql4 .. But I am not very good at Mql4.can you help.. #property indicator_chart_window #property indicator_buffers 7 #property indicator_plots 7 #include <MovingAverages.mqh> double spike[]; double ma1[]; double ma2[]; double hullma[]; double
Hello, Has anyone tried backtesting from the command line ? In order to save resources I would like to know if it is possible with a command type : mt4 --backtest --datafile "EURUSDM5.fxt" --expert myEa.ex4 --config "presetEa.set" Thanks for your response Best regards
Hello, Im having some trouble building trend lines around a RSI indicator - what seems to be the problem is the "time" coordinate for setting  lines. The result is :    This is the first time i build such indicator ! Hope you can help ! The code is below :    int limit;   int...
I try to write an indicator which shows the direction of Highs and Lows. It should return 1 for higher values and -1 for lower ones. In the case of equal highs or equal lows it should neither return 0 (zero), nor EMPTY_VALUEs, but instead return the previous direction (the direction when the highs
Hello Guys , i want to Create a personal panel for trading buy but I have a problem... im new in Programming and The problem I have now is that : i want Calculate Position Size with My account Balance and my risk buy i dont know how to do that ... My stoploss is not fixed and I consider it according
  MACD EA Issues  (3)
I wrote a macd EA. I need the EA trade on the close of the histogram (candle), but seems not be working. I have tried using: Volume [1] Open [1] < Close [1] and Open [1] > Close [1] time. And a combination of all three. But its not working. What other way can it be done? On the image attached
Hi can anybody tell : why all function in different object behave like they have the same static variable ? the result is only : div thank you in advanced class sweep { protected : private : public : sweep() {} ; ~sweep() {}; bool
Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners has " MetaTrader 5 — Trading systems " in the title of the article so I reckon it is the instructions for writing an EA using Metatrader 5. What is the equivalent guide for how to write an EA using Metatrader 4
HI all, I'm trying to load the attached file. When I select it from Browse in History Center the window remains empty. Where is the problem? Thank you
Hi! I am struggling to make a simple indicator, probably by the lack of coding experience. My excuses for my silly mistakes! I am trying to get a indicator, similar to the AO, to show a bar of a different timeframe. So for example: I have the chart on a daily timeframe. But I want the indicator to
please whats the possible solution for this two error message on mt4 when i load my EA on my chart 1. Gobal Initialization failed 2. Invalid Ex4 file (7)
New article A Quick Start Or a Short Guide for Beginners is published at MQL5.community: Hello dear reader! In this article, I will try to explain and show you how you can easily and quickly get the hang of the principles of creating Expert Advisors, working with indicators, etc. It is...
I have 5 vps previously and I closed down 2 vps last week.  My EA (5 licenses) was used up in all previous 5 vps.  If I have new vps in future, how do I deactivate my EA licenses from previous 2 vps, and activate at new vps? Please advise.  Marcus Lee 
I was told by my broker that Metatrader in the latest update did not include the MINI TERMINAL, one click open positions & one click close all positions. I sure miss this feature and would like it back !! As now, it takes 2 clicks to open, and many many more clicks when you have more then one...