Download MetaTrader 5

MQL4 and MetaTrader 4 - page 426

To post a new topic, please log in or register
Hi, I created a indicator and I put that indicator in a template, so if I apply that template to diferente charts, the indicator runs on all of them. Then, I created a script but, as far as I can see, I have explicitly to apply the scritp to each chart. Is there a faster way, if I want that the...
how to add expiry date with password to one .mq4 formula ??
Hi,I need a trailing stop function that moves the sl by a certain increment: Sell Example: When 10 pips down from entry price, move sl to openprice,then lock in 10 pips after price moved down 20,then lock in 20 when price moved down 30,etc.. If you have such a function or if you can point me to a...
  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...
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
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 ?