Download MetaTrader 5

MQL4 and MetaTrader 4 - page 245

To post a new topic, please log in or register
How to jump to a past date on the chart with an MQL4 code. I want this to be done by my indicator, with MQL4 code, for example if i write into my indicator to jump to 2010.1.1, then the indicator should move the chart to that date. Is it possible, if yes, then please tell me how :)
GregorAnton
I am looking for a multi colored Moving Average like the one in the picture that changes the color dynamically but not permanently, based on whatever conditions coded.    For example in the picture the MA line is red and then turns blue, red again, and so on.     
Hello. How are you? I am having this problem: when I run the BackTesting, it does not show any trade. The message is this: 2014.11.27 16:45:50.975    GBPUSD,H1: 4427965 tick events (3566 bars, 4428966 bar states) processed within 12808 ms (total time 18174 ms) 2014.11.27 16:45:38.168    Pruebas_MM...
I ma trying to use FFCal.mq4 and change one setting and then recompile it but when I try to compile it I get this error: 'TimeGMT' - override system function    FFCal.mq4    1363    10 1. what can I do to solve this? 2. How did the creators compile this indicator without getting this error?
I'm uninstalling MT4 , but when I try in program files, I get a box with a red "x" saying "The server returned a reference " and does nothing (do not uninstall) . When I try to uninstall it from control panel, leaves a message saying I do not have sufficient permissions to uninstall the program,...
Hello, I found a statement of interesting trades performed on rice, tin, lead, soybean, soyoil, soymeal, nickel, wheat and zinc in the period March-April 2008 on M1 interval. I tried with different mt4 brokers by rolling back the chart, but I can get only something above 65 000 candles (like 65 969)...
Does anyone have any code to write out the currently open trades to a text file? Or anything similar that I could modify? thanks 
Hello, do you use different versions of one EA for Backtest and Livetrading? I noticed that some functions arent needed for backtest but in Livetrading the EA works wrong. If i Backtest with this LiveEA the Backtest isnt fast as the other.
I don't know if this is good,bad or ugly I'm finally to the point where I can actually create an EA that does what I want so now I'm back testing and really don't know what to make of my testing. NOTE: I know martingale features are risky and generally stink, but this EA makes a profit and only had...
I would like to Enter the trade and then have the 1st Pyramid order occur at the next Bid with a multiple of 20pips.  Example:  Entry 1.3315 then (Pyramid at next Bid with  20pip multiple after entry) 1st Pyramid occurs at 1.3320    (5 Pips from Entry in this example , but varies depending on when...
Online Trading. Many have heard about Internet trading. Those who never met him, thinking that it is selling or buying anything online. This notion clearly indicates the currency market or the stock market. Internet Trading - so when people operate on buying or selling currency securities via the...
Day trading refers to the buying and selling of financial instruments like currencies, stocks or futures contracts, on the same trading day. This type of stock investment involves a lot of risk. Day traders carry out day trading by purchasing and selling stocks rapidly on the same day. Securing...
I know that the function "WindowHandle" exists. But what if I have multiple same Currency-Period charts? It will return one of these, but I would like to get the one were my EA is running from. How could I achieve that?   Thanks! 
Hi all, I found that MT4(Build 745) is compulsory requiring enum type variable to have a default value, which is very confused. Below is my code segment. enum LineType{   UP_TRENDLINE,   DN_TRENDLINE};class FractalLine{   private:      datetime    left,...
hi everyone, I made a custom indicator for myself a couple of days ago n i wanted to use it in an expert advisor. The indicator is something like the RSI of MACD which i hope will be a good tool for scalping. I'm currently trying to make my own scalping system with Bollinger Bands  MACD and Probably...
New article Freelance Jobs on MQL5.com - Developer's Favorite Place has been published: Developers of trading robots no longer need to market their services to traders that require Expert Advisors - as now they will find you. Already, thousands of traders place orders to MQL5 freelance developers,...
MathPower() seems fairly straight forward I'm getting "empty controlled statement found" if(mlots >= MathPow(LotSize,3));
Hello dear coders, This way can work only if there only one trade at a time and the tp can be hit only by one trade at a time: if(OrdersHistoryTotal() > prevhistorytotal)   {      for(int i=OrdersHistoryTotal()-1; i>=0; i--)      {         OrderSelect(i, SELECT_BY_POS, MODE_HISTORY);...
Hi everybody, Can someone tell me if there is any way to test MT4 experts in cloud network? MT5 strategy tester is very powerful... especially for multicurrency tests and cloud network... and my problem is not translate mql4 to mql5, but is the history and only single cpu-core utilize. So, many...
Hi guys: I would need to create an indicator for my MT4 that gives me an alert when price crosses a selected moving average. I do not have any idea about how to prepare the files to be included in the computer, reason why I am asking for your kind assistance. Any one can help me? Thanks a million in...
Chartopen() is not able to open offline charts. Is there a programmatic way to open offline charts ?
I know that there are many many moving averages in existence but, is there one that moves tight with the price when the price is very flat then far away when the market trends? I see that a simple moving average will almost do this but it will not catch up to the next flat part after a rally. i have...
Hello everybody. My first time in this forum. I would like modify standard ZIGZAG indicator in order that indicator sends me a email EVERY time ZIGZAG is drawn (and redrawn). Can someone help me? Thanks a lot in advance!!
looking for daily advanced camarilla indicator which extend to h8 & l8 i only found daily camarilla extend to h5 and l5 but i want h8 and l8
Hi all Please forgive the long SRC code Disregard most of these functions and variables they are not used and just stuff I wrote for learning. My Maclosetrade() function is not closeing trades when using Close[1] condition. However it does close when using other indicator comparisons like MA crosses...
  why -1 and i-- insead of (11   1 2)
for(int i = OrdersTotal()-1; i >= 0 ; i--) IMO it seems to miss the latest order everytime wouldn't it ? If OrdersTotal() were 4 lets say (4-1)=3 so the (i) would be 3 and the selected order would be -1 of the OrdersTotal or even OrdersHistoryTotal(). This confuses me. The documents suggest:...
New article Liquid Chart has been published at mql5.com: Would you like to see an hourly chart with bars opening from the second and the fifth minute of the hour? What does a redrawn chart look like when the opening time of bars is changing every minute? What advantages does trading on such charts...
Hi, i'm try to code an ea and make it work on period converter Offline Chart. I try to hardcode the Symbol but don't work. It's seems that the Ea don't receive the feed from the offline chart. On the contrary the ea work fine in offline chart like Renko or Range. Can someone give me a solution for...
HiCan we change the time format in mql4 from 2013.09.09 13:15 to 30130909 1315 Any help is appreciated and thnx in advance
I created an EA which uses external dlls..But metaquotes is allowing only ex4 files but not any external dlls to place EA in the market. Is there any way so that  I can load external dlls from a server ?
1...238239240241242243244245246247248249250251252...1245