Download MetaTrader 5

MQL4 and MetaTrader 4 - page 587

To post a new topic, please log in or register
Hi, I am at a 5digits broker. When I Print(High[1]-Low[1]) the result has everytime only 4 digits! Why? I also tried this way Print((High[1]*100-Low[1]*100)/100); An even if I Print(Bid) the value has 4 digits!
i want one that uses the macd slow ema crosses the 0.00000 line from the bottom to go long and to go short when going from top to bottom i thank you if you can do this for me i am not good at programing but i trade live this way on a 4 hour chart and it works well or at least point me to one that i...
I'm using libmysql.dll library to connect to my database from metatrader4. I managed to connect and things are going almost fine. I use mysql_real_connect and mysql_errno for connecting and capturing possible errors. Im using Innodb and STRICT_TRANS_TABLES in sql mode. It updates fine the ticks. The...
I wonder if anybody could help. My colleague has tried to program up Pascal Willeim's effective volume indicator (from Alexander Eldar's 'Come into My Trading Room'). Basically what it does is to split the volume into first effective volume (if you look in the zip file on the next post this is...
Hello all, i have written a snippet of code to add to my EA but i'm not sure that i am taking the best approach.I was wandering if someone can help me make it cleaner and/or faster. The goal of this function is to update the StopLoss value to the location of the last parabolic sar. The problem is...
Can somebody help me to write code for Alert when fast Hull Moving Average crossing slow Hull MA. hull MA i use is in attached file. thank you for HELP. It means a lot to me.
i have been having serious problem siting with my system trading fx due to the medical report on my back pain. i need someone to help me develop expert advisor using my strategies . the attached files is my method easy to understand. my email kunlsal@gmail.com thanks anybody can help
Hi, I am able to get live data from mt4 to metastock using dde chartupdater.But the data seems to disappear each day.At any point I have data only for one day.For example..I started the DDECHARTUPDATER activity on 21/5/12.But today(26/5/12) i have metastock tick data only for 25/5/12. Is there any...
Hello Guys i am a demo MT4 account with Forex.com and i need to know how it's the long period of meta account can still open. (60days or 90days) and how can i change that and Increase this period? help me on that :) thnx
hi when i wrote: for(i=0;i<10;i++) { macd[i]=iCustom(Symbol(),0,"MACD",5,13,1,0,i) } if(macd[0]>macd[1]) Print("yes"); the result is 'if' - too complex expression what should i do of that? please help, thanks.
hello anyone.. i need help, please put sound alert on this fibo indicator so that we alert when the price in area fibo 38.2 and 23.6. i dont know how to put this indicator here so i copy code only:- #property copyright "Copyright © 2009, Julien Loutre"#property link      "http://www.forexcomm...
forexparvenu
  can i use these () {} so much ?? (67   1 2 3 4 5 6 7)
//+------------------------------------------------------------------+//|                                                        xxxxx.mq4 |//|                                              Copyright 2012...
Hello, I was told that when optimization of a forex robot is in effect you can only have one file in the tester/history. But it would appear that another one has been created, do i need to remove that new one? I was told only one file can be in this location at one time, other wise it confuses the...
Hi, ever since i started trading forex i always had such a problem. My EA was set to trigger position every 80 pips. If 1st buy position was 1.20000, it should trigger second buy at 1.19200. However it does not open new position. When i realize it should open a position but never. i would normally...
Cannot modify Inputs. Line gets a blue highlight, but the value does not allow a change. I have been changing values for years. Until now. What circumstance would prevent changing an Input value? Help, help! And thanks. Bob
  StackSize (6)
Hi All, When setting the compilation options there is a setting for stack size. I'm quite familiar with the concept of stack size (I'm from a technology background) but am surprised to find no posts about this on the forum and documentation gives nothing meaningful. Any ideas as to when we may need...
Hi. The break-even scrip (that I want to insert into my EA) works for the buy orders, but doesn't work for the sell orders. Can anyone tell me why? Did I miss something? // Breakeven / stoploss void TrP() { double pb,pa,pp; pp=MarketInfo(OrderSymbol(),MODE_POINT); if(OrderType()==OP_BUY)...
Hello all please help me how to set text (trendline description) to my trendline?? this is my code: ObjectCreate("myObject", OBJ_TREND, 0, StartDate, price, EndDate, price); ObjectSet("myObject", OBJPROP_WIDTH, 1); ObjectSet("myObject", OBJPROP_COLOR, Red); ObjectSet("myObject",...
Hello! i am having problems getting my EA to add a stoploss that is very close to the entry price, for example when trading live I cannot get my EA to add a stoploss if it is under the broker minimum is there a limitation on the platform that stops an EA from re-adding a stop loss if at first it...
Greetings, (Lots of questions lately... ) Anyway, I like the system that MT4 paints the price tab in red or green 10 pips before it takes an action (SL, TP or buy/sell if pending) It works fine with currencies like EURUSD, but in some commodities like FT_GOLD, it paints these tabs "too late". I...
When the EA quited, It stores its value till next run (session) of the EA, or reseted by initial value at the beginning of next session ? Thanks for help.
Hi, Normally to replace squiggly lines on indicators to histogram bars I simply replace the text in the code DRAW_LINE with DRAW_HISTOGRAM. In the attached code, DRAW_LINE is missing so I was hoping that someone could explain how I can amend it to display bars instead. I've been searching for...
Greetings, I would like to calculate the value of one 1 lot (in US dollars) of each pair or commodity that I trade on, and to place that value at the corner of my screen. Is there such script already ? James
New article A Few Tips for First-Time Customers is published at mql5.com: A proverbial wisdom often attributed to various famous people says: "He who makes no mistakes never makes anything." Unless you consider idleness itself a mistake, this statement is hard to argue with. But you can always...
properkhunt
Does anybody know of a script that allows applying trailing stops to all open positions of the same currency/commodity rather than one at a time? Is there another DragDrop like with T/P and S/L?
Hi all, I am just a newbie in coding EA. I heard much about kinds of EA programs. My problem is: How to choose the best for my favorite ? I don't believe there is an EA that works well with any pair, or/and with any timeframe. I think an EA must be intended for a certain pair on a certain timeframe,...
  Please help to build an EA (51   1 2 3 4 5 6)
I have coded the EA already. But its showing error. I need to open two pending buy & sell order on the support & resistance level which will get counted. Sl 10pip TP 70pips on daily chart Order will get expired within the day if price didn't reach Support or Resistance. Formula for Support &...
hi, how can I get EA code to descript the various shape of bars or MACD? such as double bottom, head and shoulder? some examples for reference? Thanks.
Nowadays, expert advisors have become more & more sophisticated with more variables. The expert property window in normal and optimization mode cannot be resize and the height is quite short for an expert advisor with common variables. I used to mod the window but not able to do it now since the...
is they any way to change mt4 password by EA or dll, i want to implement auto log out mechanism to overcome revenge mentality
1...580581582583584585586587588589590591592593594...1244