MQL4 and MetaTrader 4 - page 845

[Deleted]
  coding problem  (14   1 2)
hi, i'm trying to code a indicator that will spot wide spread candle. Like 2 ATR on the same window of a chart, the first showing average range and the 2nd the actual candle's range, and when the actual candle spread is higher than the average it would alert me. (there are others conditions, but...
Hi, everybody! I've been developing an EA and one of the new requisites is to send an e-mail informing that a withdrawal must be carried out. I configured my MT4 platform to work with a gmail account (sender), by using hMailServer application, and the manually configured test e-mail is...
Just now, I have made an EA and test it by MT4's strategy tester, and I trade the pair--USDJPY, then I have found some questions as below: 1.ordersend() OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-stop_loss*Point,0,0,0,0,0) I should set " stop_loss" at least 100 in this EA which should be tested by...
Hi guys, This question is simple but I couldn't find an answer to it. I built and indicator and I want to use it's return value in my robot. // indicator codeint start (){   ... // a lot of calculations   return (3);} How can I use iCustom or any other method to get this value ? For what I was...
A:bool isFirst = true;datetime  time_current;int init(){   if(isFirst)    { isFirst = false;     time_current=TimeCurrent();    } B:extern bool isFirst = true;extern datetime  time_current;int init(){   if(isFirst)    { isFirst = false;     time_current=TimeCurrent();    } Regarding codes 'A' and...
Hi guys i am trying to code EA, which is suppose to help me only with the SL. 1 Trade and initial SL triggered manually 2. EA triggered: EA should do following: For long trade: 1. EA is triggered after 5 bars. Counting starts at Entry Bar. 2. Before ThreeBarStop is started we check If the 5th bar is
[Deleted]
pls somebody maybe can help me, i want to make this indicator become EA, the condition is : - open posisition when dot appear, -if profit target reached will not open new position until opposite dot appear/or if not, becoz candle reverse, will open new position until new dot appear -have
According to my understanding, "IndicatorCounted()" will return "-1" when it was loaded at the first time and will return the mount of "effective bars" from the second loaded or executed. But when I run below codes, I see that the parameter , "counted_bars", always is -1 and constant repeatly. I
I mean when I have made an indicator in which I have set many parameters computed from some value. Now I want to send orders according to these parameters which is produced in this indicator. How shall I use these parameters in EA? the indicator's main code is as below: double start()  {...
  Stop a script  (4)
Hi, I created my first scipt with a no end loop and now I cant stopped it. How can I stop it ? Thanks
[Deleted]
Hi, Sorry if this is a dumb question, but I moved funds from BTC-e to MetaTrader 4 on Nov 20th, and they never showed up in my account. Can't seem to get an answer from BTC-e, and can't seem to find out how to contact anyone at MetaTrader. Anyone know who I could talk to in order to get to the...
I've been testing code for months now, just letting it run. Must be on month 7 already. Was rock solid, then in the last week I've suddenly developed "terminated by timeout" issues. Didn't change anything my side. Anyone else having issues ?
just now I read a segment code as below: double myMain= iCustom ( Symbol (), 0 , "Stochastic" ,KPeriod,DPeriod,Slowing, 0 , 0 ); In this codes, “KPeriod” and “DPeriod” belong to " Stochastic " 's parameters, then I can;'t understand how "iCumtom()" can realized 'KPeriod' and 'DPeriod' and how these
Hi i want to know the full asset list of all the stock, currency, commodities and indices in MetaTrader 4. I need to know the full list i wish this was available on the website. Can some one please post a full list of stock, currency, commodities and indices that's in MetaTrader 4.
[Deleted]
hello ...im using tablet android version 4.2.2 ... when i try to login, only got 1 demo server .. i hope you guyz can fix it... tq
[Deleted]
Is it possible to change the smiling head? For example to replace it with mickey mouse head
  Code controle  (1)
Hi, I need to give online parameter information in my code. I tryed MessageBox function but it didnt open a question box. I there any function that reads a keyboard information or mouse selection ? Thanks
Hi, I am trying to optimize an EA - so I set various parameters to be changed. During the optimization his EA seems to be caught in an endless loop - no further progress :( So I think I just write in init() some code to print the parameter setup of the actual variation: sPara1 =
Hello. I am looking for the volume indicator in which volume bar color should be red if candle is red and volume color should be green if candle is green. plz help. Thanks
Hello Everyone, I'm new to MT4 and was trying to figure out how to apply the Moving Average indicator (exponential) to the lowest asking price. I see options for High, Low, Open, Close, etc., But I don't see asking price as an option. Maybe I'm not understanding it correctly. Any help offered...
[Deleted]
when i enter a key word to search something,for example," moving average ", the result always empty, especially "code base", why? I hope the administrator can response
Hello, I have system that I want make like automat... I tried if the system works in ninjatrader... That is very easy to create automated strategy, but in metatrader seems to be impossible. I don't have any experience with programing and mql programing. I was hoping that I would find help or...
I want to import some data from an Excel file. In the first column are some ticker symbols, the second column of the CSV-file contains some numbers. How can I import this data and process it in an EA? Thanks for your help
Below code comes from an indicator's code, and I think the red codes and blue codes are the same, but in the fact very different. i=Bars-MAPeriod-1;   if(counted_bars>=MAPeriod) i=Bars-counted_bars-1;   while(i>=0)    {   ind_buffer[i]=iMA(NULL,0,MAPeriod,0,MODE_SMA,PRICE_CLOSE...
Just now I test an EA on USDJPY history data. when I select 'optimization', I will get the complain in 'Journal' that "There were 1 passes done during optimization, 1 results have been discarded as insignificant"; but if I never select 'optimization', all is normal and OK. so i don;t know what has...
[Deleted]
hello coders, i wonder if its possible in mt4 with a script/tool to make usage of the alert/alarm window... ( looks kinda like this: http://newyork.wyfxco.com/wyfx-nitro-metatrader-alert-wyfx.png ) what i would love to have is a possibility to click on like the pair it alerts me when it pops up and
New article Lite_EXPERT2.mqh: Expert Advisor Implementation Examples has been published: In this article, the author continues to familiarize the readers with the Lite_EXPERT2.mqh functions using real Expert Advisor implementation examples. The article deals with the idea of using floating pending...
When I go through a list of currency pairs in MT4 (broker FXDD) inserting S/R lines, the lines appear on some of the other pairs. For example, when I inserted the lines as shown below on the NZDUSD chart: They also appear in the USDCHF chart as below: Both lines have the same titles i.e. Horizontal...
1. a question about adding text on "K" line chart by text tool--"A" on MT4 when I add the text--"Words on Test" on "M15" line chart as below: then I change to "H1" line chart, and I get the below image: in the fact, I add "Word on Test" on "M15" line chart and just want these words showed on...
Hi i`m curious how the MT4 compiles the raw data into candlesticks.And by that i mean how it merges M1 data and makes H1 from it.What are the logical and programming details about candlestick merging?