MQL4 and MetaTrader 4 - page 1218

To post a new topic, please log in or register
Hello, I want to have multiple sound alerts on a certain condition. I try to, but it seems failed. Here is the code : if(condition_is_meet() and once_a_candle()) {    Repetition=10;    Alert("Arrow down");    Sleep(10);       for(int s=Repetition-2;s>=0;s--)     {       PlaySound("Alert.wav");...
Please,help me,i found it difficult to enter into a position with positive sign while using stochastic oscillator.
  EA problem (2)
Does anyone know, how to put takeprofit in code of this EA?
Am I doing something wrong? I have a demo account and I can't make a new trade in any of the three ways I have read about in the documentation. The window to allow a trade does not appear though the button "depresses" to show I have clicked it properly. What have I missed?
Hi, I am new to coding in MQL4 and I am reading the book portion of this website. I have gotten so far into the book and I have found that some of the book pics are not displaying in either my Explorer or Firefox browser. check page https://book.mql4.com/programm/structure This is really frustrating...
I am new to metatrader, I used to use Intellichart which is a pay per month package. I find metatrader to be a very good package especialy as its free. But I do miss its ability to show the cross hair accross several time frames on the same currency pair, It would have been even better over several...
hi guys? is it true that trailing stop will stop working if my computer goes off or if my internet connection is distrupted?
why comment( 2 / 1) display 2 but comment(1 / 2) display 0? it's strange
Can someone please point me to some example of how to detect a mouse down event, dragging of the mouse, and the relesae of the mouse button. I want to be able to capture the initial mousedown point and draw a line from the mousedown point to the mousebutton release point Thanks
How do pratice find 5,13,62 EMA Crosing Up or Down ?
  Point Pivot (1)
Hello, I would like to know Point Pivot value for each day. I read all code bases but I don't know how to extract value PP of each day. Have you got any idea how to make this ? I would like know this to calculate the main trend of 3 and 5 days. Thank you !
Hello, I would like import informations like interest rates in an indicator or expert... What is the way to make this ? Thank you...
I am programming an EA where an order to buy is given when the 14SMA > 50SMA. Now the problem is that it does it every time that that occurs, which could even be right before it crosses back. I only want it to happen when it crosses, or better, just after it crossed and when the market is bullish....
Can someone suggest what they think might be the best books, articles, websites to read in order to get started in trading? I'm new to forex and understand the very basics, but the terminology has got me lost. I feel like I need to know more before I can effectively start testing and understanding...
I use several indicators and would like to create my own custom indicator that reads variables from the others to send me alerts/sounds when conditions are right to buy or sell. Is there a way to access variables between indicators without having to combine all their code into one? I haven't seen...
Is there anyway to write to a file outside of the MT4 directory using MQL4? The docs indicate FileOpen is restricted to the MT4 folder (actually to a folder within MT4). I need to have an EA write to a file which is served up via HTTP. Thanks in advance for assistance. Bill
Hi, My EA places pending orders (it's channel breakout system). However, once the pending order gets filled and is stopped out, the EA will open another pending order. Can anyone help me to add a function so that the EA only open one pending order during one trading session? On the demo, it works...
  Markettinfo (1)
¿Que me indica el marketinfo? ¿Cómo funciona? (¿what is the marketinfo? ¿How work?
Hi everyone, I would like to be able to re-open the "ALERT" pop-up window anytime after I close it so that, when needed, I can check back the message originally displayed in there. Is this possible and, if so, how can I do it? Thanks a lot!
Hi, Let say on 1 hour chart, Can someone do an alert when closed price >= X value .
Hello, I'm writing one EA that uses one indicator but 3 diferents timeframes. Is is OK to use backtesting with a EA that uses indicators with diferent timeframes ? Thanks, SB
Hi. I'm using MetaTrader4 with Demo Account. I'm writing an EA, and it seems that i can't strategy test with dates older than 2 weeks ago... why? :) Regards Mats, Oslo, Norway
Commodities pairs in Forex - Article by Fernando Botti. Correlation does not imply in chance. Aplace-common one that it was forgotten in times fast-results, is a powerful tool against fallacies in all the areas, mainly in sciencesand finances. Benjamin Disraeli a time affirmed: “It has three types...
Hi, is there an indicator that returns, for instance, the value of the Stochastic Indicator the last time that the RSI Indicator was > 70 ? Something else the “Valuewhen” function in Metastock. Thank you
Often people ask questions how to establish the adviser or the indicator in MT4. But also after installation at many happens, that the adviser does not work. In this roller, just is told and shows, how all this to do. How to setup an Expert Advisor in your MT4
Hi, I've got a simple questions: can I use account information functions in custom indicator ? I mean functions such as: accountbalance(), accountfreemargin() or accountprofit() ? How about such functions as: OrderStopLoss, OrderTakeProfit ? Although they are trading functions but they do not...
SimonTrader
Hi guy. I am a very enthusiastic newby developer. I have a few month mql4 programming experience but lots of year of basic and pascal programming. However I am able to manage pending o istant orders in complex cycles through signals from a large amount of interrelated moving averages and indicators...
I download Getright program from internet. And i download claender article and time.mqh in the right directory. and when i start to add calender article to my meta trader 4, the system download calender to experts/files directory. but it cant show them in chart. And also i configure it that get...
New article Using MetaTrader 4 for a Time Based Pattern Analysis is published. Time based pattern analysis can be used inthe currency market to determine a better time to enter a trade or timein which trading should be avoided at all. Here we use MetaTrader 4 to analyze history market data and...
Hello Every one. Please how do I write the code that will determine if an account is real or demo.