MQL4 and MetaTrader 4 - page 1118

[Deleted]
This is the first sound Alert I have ever put in a code. The simple things always turn out to be a bug for me. I looked at an example but I didn't see any variable for Playsound. Would help if I could make this work. I have some other issues that I will Post later. Thanks, JimTrader1
[Deleted]
How can i increase stoploss after win? For example: IF I WIN FIRST TRADE WITH 30 PIPS STOPLOSS, I WANT OPEN SECOND TRADE WITH 30 + 15 = 45 PIPS STOPLOSS, IF I WIN SECOND TRADE TOO, I WANT OPEN THIRD TRADE WITH 45 + 15 = 60 PIPS STOPLOSS. ETC................ Can you write me code? Thank you.
Hi, I would like to use INS key in my EA. After press the INS key the EA should display InputBox() dialog. How to programm and assign the INS key on expert advisor using MQL4 syntax? Rgds, Puncher
[Deleted]
Hello ; at the moment I have created an horizontal line without Label like that : but I would like to have an indicator with label like that http://img.ibtimes.com/www/data/images/full/2010/09/15/45438.png the code is like this if(!ObjectCreate("ligne1",OBJ_HLINE,0,temps1,valeur1))...
[Deleted]
I'm using bar closes to signal an entry on my EA. Once in the position I want to monitor the position by tick so I can adjust a trailing stop. Currently I'm using the following code in the EA to so I can get a signal on a close from a function that looks at an iCustom indicator. Is there another...
[Deleted]
Hello ; you know when we use the function iMA(string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift), there is way to know the value of all time frame, but in applied price, we must use they are constants . but I would like to show the trend of...
[Deleted]
  Need Help !!  (6)
Dear All, I need help. I've been trying to find errors in the coding attached, but I have not found such errors (always appears errors when compiled). Please help, I am a newbie. Thank you.
I have a few functions in my ea, one writes info to file, mydata.dat and the other to mydata.dat3                                               int handle3=FileOpen("mydata.dat3", FILE_BIN|FILE_READ);                                               if...
Hi Everyone, I want to read .csv file with precalculated data and load this data to indicator. File data has such stucture: Date time, data1, data2, data3, data4 2011.10.20 00:22,-0.04558,-0.76599,1.65205,2.83105 2011.10.20 00:26,-0.04582,-0.76509,1.65226,2.83158 For indicator...
I have win 7 x64 and LiveUpdate do not work. Do you know any work arround for this problem ? Thanks
Hello, I have a question about take profit and stop loss. than, y0
[Deleted]
// parameters extern int MagicNumber = 19102011; extern int TP = 150; extern int SL = 100; extern double Lot = 0.01; extern int Slip = 10; // do truot cho giá extern double B = 0.00020; // Breakout points //+------------------------------------------------------------------+ //| expert start...
[Deleted]
Hi, Using an EA, How does can one close only a selection of orders or trades from a number of orders on one currency within the same EA? Should one differentiate them by Magic number upfront (when placing orders) and then close them according to Magic number, or is there another way? Many thanks
  Is it possible?!  (10)
Hi, there!I am using offline chart updated every tick with indicator. My question is is it possible to attach script to that chart and automatically trade, since EA can not be used with offline generated chart even updated every tick.FX
Dear All, It's my first post here, however, I have been using MT4 and MQL for two years now. I have come across something that I don't understand regarding iMAOnArray. In particular following is the indicator. It is Elder's Market Thermometer. T[] holds the greater of the high or low daily...
hi, i have a csv-file whcih has a lot of rows like this: EURUSD ,H1,00068, 1.37360, 0, -1 EURUSD,H1,00069, 1.37370, 1, 19 EURUSD,H1,00070, 1.37380, 0, -1 EURUSD,H1,00071, 1.37390, 0, -1 EURUSD,H1,00072, 1.37400, 0, -1 EURUSD,H1,00073, 1.37410, 0, -1 EURUSD,H1,00074, 1.37420, 0, -1 EURUSD,H1,00075
//+------------------------------------------------------------------+//|                                                    Parabolic.mq4 |//|                      Copyright © 2004, MetaQuotes Software Corp. |//|                                       http://www.metaquotes.net/...
[Deleted]
I'mlooking for advice from people with programming experience. Ihave created my own currency strength indicator which I have added to my ownea. However, the indicator is resource intensive and I can't run the eaon more than a couple of charts. I need it on at least 10 charts. So my question is...
Hi For any MACD crosses, or EMA crosses or candle patterns is seems that my print statements print continuously. I understand that the condition is true and continues to be true for each tick, and many of my strategies are position trades and thus I don't need ticks but more of closed bars etc. How...
[Deleted]
Hi everybody, I'm trying to code a dll template with Microsoft Visual C++ 2010 Express to protect my EAs from unauthorized access. Of course I need ArrayCopyRates() to get access to the rates ... but unfortunately it doesn't function. I studied the samples and cannot find the mistake. The error...
[Deleted]
  There's a catch somewhere...  (82   1 2 3 4 5 ... 8 9)
Good afternoon, colleagues! While testing my strategy, I found 20 brokerage companies (some of them are European), downloaded a client from each one and registered a demo account in all of them. Then I opened all the charts and... they are different! All charts are different! All the charts are
[Deleted]
I have been struggling and Loosing money on Forex for a Year Plus, But yet I dont know when to Sell / Buy I try to Study e-books but am not familiar with some indicators terms and there is no one to put me thru, Please can anyone help me out here! am really very interested to learn this forex from...
int i;                                             for (i = 5; i >= 0 ; i--)        {OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); My problem here is; I have for example 12 tickets in my history, i want to select the most recently closed 5 tickects and read there tickect numbers. But my code here is...
[Deleted]
  Sierra Charts  (1)
Can this set up be done on Sierra Charts or do I have to have your charts? T. Ellerbee
How can I change plattform/broker-time in MT4 so it will be syncronised to "system time"? I know how to change time to local time (I add -2h), so that I get my local time in my scripts. And I could change all to MT4-time, it would work perfekt, but my external algo runs on system time... Background
just look at the pictures what the tickdata do in backtest on visualmode. after the candels are close you can never see that the price where there but on my picture you have see the error, how have you slove that and how is that possible? i know it is a tickdata error, but how does that wrong...
please advise whether MT4 allows also trading ETFs/stock
[Deleted]
HI GUYS!! I GOT THIS EA FROM HERE: //+------------------------------------------------------------------+ //| mo_bidir_v0_1.mq4 | //| | //| - Works best in 5M timeframe...
[Deleted]
I'd like to know how to make Mt4 make an alert sound when one of my indicators performs a certain event. Say when %K and %D equal one another in a Stochastic (Crossing over in this case). Is there a simple way to make the MetaEditor do this? I'm not good with C language and I'm bit confused as to
Hello, i need help with my EA. i need a simple trailing stop and a simple break even but i dont know how to do this. Thats my EA Code dont laugh its my first EA ;-) please do not change so much. if possible just only insert the trailing stop, that i can still simply put there my strategies. ive made...