MQL4 and MetaTrader 4 - page 464

To post a new topic, please log in or register
I have searched for downloads, I have downloaded a standard (509) from Metaquotes and opened an account with them and then changed server to demo.metaquotes.net:443 "No connection" Any other chioces?
I wrote simple indicator for pais trading showing in separate window ratio e.g silver/gold, basing on close prices. Do you have an idea how to draw same ratio but represented by bars instead of a line?
I use a windows application to get ticks from another server and update every one minute it to the history(BTC_Mini.hst) file inside folder "C:\Program Files (x86)\Ava MetaTrader\history\TEST". Now I login with server name as "TEST" and there's this journal : 'username': connect failed [No...
I use an expert advisor to automatically make trades for me. My computer runs metatrader pretty much 24/7 except when the Forex markets are closed. So I woke up this morning I noticed that my expert advisor wasn't making any trades. I differently had a internet connection and MetaTrader was...
Hello everyone, Happy New year to you all and all the best for 2014!!! I have been working on the code for the high or low level of the market when the Moving Averages cross up or down, but it keeps recalculating the code for the previous bar when watching live. But when I refresh the chart by...
Hi forum,     I guess my problem could be solved pretty easy but I just can't find a way or function.. All I want to do is to get the total profit (or loss) pips on an open trade.    Thanks in advance 
  HELP PLEASE (2)
How to write a code in mq4 for an EA to make a line (TrendLine) between two points( 2 buffers of-Fractal-indicator) for every new buffer of Fractals ? I speak about the last Upper Fractal Buffer and the last Down Fractal Buffer?
How to make a code into my EA to draw one trend line between last Up/ Down Fractal from begining of actual tren to the last Up/ Down Fractal ? Thenk's!
10265293
Hi All, how to get profit in pips? OrderProfit() just for amount deposit, how do we get the profit in Pips? i tried to use MathRound(OrderProfit()-OrderSwap())/(OrderLots()*MarketInfo(OrderSymbol(),MODE_TICKVALUE)), but not so accurate!!!!! PLease help, thanks.
Hello,im kinda new in this are and wanted some help if possible. In this code ive tryed to implement a formula, but charts doesnt show what i wanted :( the grey dashed lines when they overlap from next point should start a more thick line,but instead of that the line from the start becomes all thick...
OrderSend(Symbol(),OP_BUY,1,Ask,3,0,0,"My order #2",16384,0,Green); Here's my code.and i always get the error 129. Version:4.00 Build:509
Hello, my sell orders are set to tp=50 ticket=OrderSend(symbol,OP_SELL,price,Bid,3,0,Bid-tp*Point,"my order",111, 0, Purple); but someties it close the order when the profit is negative and it says it reached 50 pips# # time type order size price s/l...
I am new to making indicators and the code. More used to EA'S. Here is an example of a relatively simple line indicator for Trend Reversal I put together. I can't figure out how to get rid of the Gaps and maybe have the third color work also. I know there are different ways of doing this from what...
Hi, by using kernel32.dll I as normal user who started the mt4 that creates a file which at the end is set read-only: SetFileAttributesA(TerminalPath() + "\\experts\\files\\" + fileName, FILE_ATTRIBUTE_READONLY); But if I click on the Attributes of the file I see that for the users: SYSTEM: FULL...
What does this function return... It seems some, if not all, brokers have different leverage for the various symbols. Typically metals & commodities tend to have different leverage from fx products...
2014.01.09 22:29:11 Expert 'CurrencyChart' is an indicator and cannot be executed Hi All I am tryin to execute my first mql. it compiles successfull but when i try to attch it to a chart i get error 2014.01.09 22:29:11 Expert 'CurrencyChart' is an indicator and cannot be executed Please help.
Hey guys, i am new to Ubuntu Server 12.04, i were using Ubuntu Desktop before, an i've installed with wine the metatrader4. In Ubuntu Server, it seems not to be possible, or that easy (only terminal). So my question: Is it possible to install mt4 on Ubuntu Server, and somehow to let an EA trade on...
  GetLastError()=0 (11   1 2)
Hi When my EA is supposed to make an order but it does not, I found out that GetLastError() returns 0, which means there is no error? So why doesn't my EA make the order then? Is there anyway to rectify this? Thanks
Hi I was fascinated by the discussion provoked by phy on "What is a tick?" Basically, if a tick is an event, how can it have a size? What is the difference between MODE_TICKSIZE and MODE_POINT? I use this to calculate postiion/order size:...
Hi, Can signal run on Multi Terminal with a lot of account with same broker and same signal provider?? Hope next build can see "Signal" tab on multiterminal... :) Thanks..
  Spread recording fail (18   1 2)
Hi I use this indicator Spread_Recorder.mq4 http://www.forexfactory.com/showthread.php?t=195290 It has worked perfect with different brokers, but i just opened a new account with another broker and id stops to work.? I says: invalid filename for FileOpen function And i allso have created a folder...
Can anyone show me how to adjust the time setting in mT4. My time is show 1 hour behid what it should show, for the uk. Thanks
now I have make an Indicator, besides the indicator line, also drawing another line -- x. the code as below: when I attached to the chart. the line x will not be drawn(Expert complain unknown window), but if I compile the code again, the line x will shown. Then I want to know get some explanation...
hello I need the suggestions of you, I have this portion of code where I close orders if I gain, besides that let profits run with a difference of 10 percent. I do this because my broker has long takeprofit and I want to close faster. this extern double MinProfit=1.30;extern double...
Hi just a quick question If I have created tickdata-files for backtesting I created fxt-files in ..\tester\history. Does it work if I send s.o. just these fxt-files for him to do the same backtest. (The results may differ due to another broker e.g.) gooly
  After Angle Formula (31   1 2 3 4)
Hi I have question about predicting future highs and lows. Say for example I have highs and lows of the past and its high 100 and low 10 and the angle of the trend is moving 45degrees up and after 20 bars of 5minute data the highs are 120 and low 30... My question is do you know a mathematical...
//---- input parametersextern int       TP           = 300;// take profitextern int       TP_Increment   = 200;// take profit incressementextern int       SL           = 500; // stop lossextern int       RangePoint   = 0; // rangeextern int       AddPoint     = 0;// add point to place stop...
Hello! Im new in MQL4, I'm creating a CI but I note that every time I switch from one chart to another the trends Im crating began from zero, there is a way to keep the local history in a chart? Best Regards
Hi all, Does anyone of you know if there is a way to tell the MetaTrader tester that we just want to terminate a test. For example, let's say that I want to run a test on a 5 years time frame and that after 3 months a condition is triggered on which I would like to stop the test. The only way I have...
Hi everyone, Do you have any example, rough codes on how to update existing data on MySQL Database? I have used this code https://www.mql5.com/en/forum/112333 but it only fetching the data on the database. Thank you very much