MQL4 and MetaTrader 4 - page 481

To post a new topic, please log in or register
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
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 two...
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.
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
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...
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...
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...
Help: In a code for chart window indicator, is possible to change the size of an arrow ?
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?
I was making the candlestick price pattern indicator, but the text (supposed to be created by ObjectCreate) didn't show while back testing. (it does show when I simply apply on the chart.) I also noticed my indicator doesn't really update by just compiling. (The other indicators, I can see the...
  Delete Sunday candles (12   1 2)
Hi, I created a simple EA that works on high & lows of candle shift 1 but here in Italy my mt4 make a little candle every sunday night at 11 pm. How can I delete this candle to make my EA work monday without consider the sunday candle? The strin I founded here in documentation doesn't work. thank...
I want to copy trades from one of my account from other broker to other account.So i need a auto trade EA or VPS or any type of web sites. Can anyone suggest me.
Hello. I am researching about Trading Volume these days. I understand that the volume provided in mt4 is TICK VOLUME not ACTUAL VOLUME but both volume are near about similar. But still I want to look for daily ACTUAL VOLUME for pairs like EURUSD, GBPUSD as well as Dowjones 30/US 30. So, is anyone...
Hi, I'm trying to refer to a piece of data just once every minute. Something like if time>time[1] ... In mql4 how would I write that condition? I've tried multiple ways and can't get it to work. I've looked through the documentation all morning (and searched the internet) and cannot find this...
any pyramid ea any one know