MQL4 and MetaTrader 4 - page 607

Hi iam beginner at coding And iam working on hedge ea  I will give an example for what I need : I have an open sell order , I need to set a buy stop order above it with 30 pips  So I need to get my sell order open price then add 30 pips on it  And the result will be my buy stop entry price...
Hi im pretty new to trading in General and Metatrader4. I was wondering if there is a way to get live OTC charts on the weekend with a Demo account? thanks
What is the good way to detect if a symbol is existing?  E.g. How to detect if "EurUsd.Pro" is existing or not? 
Hi all, I'm coding an EA. I have a global scoped variable. The pseudo code looks like: bool hasDoneSomething = false;int OnInit(){blah blah}void OnTick(){  if(! hasDoneSomething) {    hasDoneSomething = true;    callAnotherFunction();  }} I loaded the EA on the chart, it works fine and...
[Deleted]
Hi, Since the update of the MT4 Build 920 version all my EA crash MT4. I use Windows 7 (64 bits). Could you check this problem with this version of Windows and fix the problem? I have an other computer with Windows Vista Professionnel (32 bits) with MT4 Build 920 and the EA work fine. I think there
Dear everyone,   Anyone know what is wrong with the following statement?  Comment(Symbol());   When I compiled, it says "Symbol'-ambiguous call to overloaded function with the same parameters.". Or is there a way to write code to store the value of Symbol()?   Thanks you in advance.
[Deleted]
Since installing build 920 my .hst files are being corrupted every 2 or 3 strategy tester back test (5 yr.) runs, and I have to re-import the .hst files. This happens even with the PC disconnected from the internet.
In the following code im trying to create an indicator that writes the previous days close, high and lows so as it displays all previous days on chart at once instead of only one at a time.  The code below writes close, high and low okay but its only for the previous day.  I cant figure out how to...
Hello Everybody, At the last few months i am experiencing a lot of problems with my MQL4 codes, EAs and indicators, each time metaqoutes releases an update. The first time i post a comment in the forum and in the help desk but it didn't help at all, so the second time i didn't make the effort. Now...
Hi, I would like to make an EA from an Indicator, and my problem is: the indicator paint an arrow and make alert, how can I capture the paint arrow. I tried iCustom, but unluncky, not got results. Anybody can tell me with example how can I capture the arrow paint?
Hi, short question to appreciate, i usually use: double d_someValue = 0.0; for initialisation. is that equivalent to double d_someValue = 0.; ??
[Deleted]
Greetings everyone, in a few of my previous posts I've managed to slander a bit on the built-in strategy tester in MT4 platform. I decided that before I continue in doing that, I'd like to first give it a very good tryout so I started it up and was about to let it run an EA of mine. That's when I...
Hi hope someone might be able to help. Can you suggest a fix for the attached indicator please.   I want it to draw a Histogram for: SetIndexBuffer(6,HeikenAshi_tenkansen); SetIndexStyle(6,DRAW_HISTOGRAM); It will not do this. However if I set it to draw and arrow with extra setindexarrow function...
  sound problems  (1)
My computer (system 7) sounds fine until i turn on mt4 (version 4.00 Build 920)  Was fine until a couple days ago. Sounds when MT4 is on work but are very distorted like something got corrupted.  As far as i know nothing got changed.  Any ideas? Thanks! Andre 
#property version   "1.00"#property strict#property indicator_chart_window#property indicator_buffers 1//+------------------------------------------------------------------+//| Custom indicator initialization function...
[Deleted]
A link would be appreciated.  Thank you.
[Deleted]
  EA DLL Problem  (2)
I just create a EA that contain a .DLL created by my self. The EA work fine when I put it in one symbol (anyone), but when I try to run the EA in more that one symbol, it crash. I made a copy of the EA without calling the DLL and everything work fine, so I'm assuming that the problem is when each EA...
[Deleted]
Hi... anyone knows how to replicate the drag and drop order to a graph in expert? (Closed order) I have a code that send me an email with graph when an order close (tp or sl) but i'd like to show the symbols (arrow of open and close and line between both) Sorry for bad english... Regards!!!
[Deleted]
Hi and thanks for looking... I'm trying to get an Expert Advisor to work and have done the following: Downloaded the EA from the net and unzipped it.I opened my data folder from MT4 and copied the EA to it.Restarted MT4.My EA (Overlay Chart) appears in the Navigator window.Confirmed that the .mq4...
Hi, I hope you can help, I have an indicator that I am working on and want to draw a trendline however I am having trouble in where I should declare the anchor points. Any suggestions would be appreciated..... 
Betting system with non-negative expectation Let there be two mutually exclusive events A and B with corresponding probabilities: p(A) = 1 - p(B). Rules of the game: if a player bets on an event and this event falls out, his winnings are equal to the bet. If the event does not fall, his loss equals
[Deleted]
How can i got a alert when a trade is close? hmm. I mean, then i start a trade, but maybe then i load mt4 again i see its close because hit the profit or stoploss point. But i never got any alert about that. Only know when i re-open my mt4 app again. So i want to know how can i got a notification...
where should i insert this cord to protect the indicator please be specific thanks int start(){    string char[256]; int i;  for (i = 0; i < 256; i++) char[i] = CharToStr(i);  // Account number, on which expert is allowed to work  int    AllowedAccountNo = StrToInteger(/* 49153 */...
[Deleted]
Hi, I want to get GMT offset automatically in my expert, i tried using this code but i ain't sure its working like it should be... double ServerGmtOffsetHours=(TimeCurrent()-TimeGMT())/3600;  Print(DoubleToStr(ServerGmtOffsetHours));    I don't think this is correct, please how do i get the correct...
Hello everybody, I noticed that my strategy based on CCI does enter the position in the right time. Here is the picture of example:   You can clearly see, that the numbers dont fit at all. Do you know why is this happening? anybody had similar experience?   Thank you for any advice. 
i use an indicator which sends push notifications, but this week for the first time i started to see the following:   2015.11.25 10:13:14.864 Notifications: failed read data (notify.mql5.com:443 failed) 2015.11.25 10:13:14.864 Notifications: failed send request (notify.mql5.com:443 failed)   this...
After the last uptade, metatrader automatically close in seconds when platform is working. I had done no chages in it, the close is automatic. Before the last update metatrader were working properly. This is the inform: Firma con problemas: Nombre del evento de problema: BEX Nombre de la
Hi, after a reboot of my VPS I opened my MT4 and want to start trading. Normally I can use the one click trading option without any problems. This time, the "accept eula dialog" pop ups again. I don't know exactly what happened, maybe I clicked "cancel" or missed the "ok" button, but since this time...
Any suggestions as to why would be appreciated. regards ........ 
  input by default  (3)
Hello I want this EA launches with default with Type = NO_ORDER, but each time it launches with the last parameter used. Is it possible? Thank you #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict