MQL4 and MetaTrader 4 - page 425

How do I restrict my ea to only backrest and not trade.example like what is done by MQL when you download the from version of an ea and all you can do is to backrest and not trade the system..please how do I achieve this.
I am using a custom indicator Connor RSI that displays correctly when attached to a chart (screenshot attached), but when  call and print the return value in an EA, I only get a zero (0) value returned. Here is how my EA is calling the custom indicator double crsi;// for each new bar...
Can't figure this one out. Please help! TY!
Hi how to get the log data (journal tab) by mql code? Please help. Regard.
Hi, how do I make this EA able to make several trades but only on different symbols? I hope you understand how I mean? Thanks in advance. //+------------------------------------------------------------------+//|                                                rsi-automated.mq4...
Hi, It there a indicator that is exactly the same as setting a alert on MT4 but it has the option that when prices closes above a certain price, or when price closes below a certain price level on a particular timeframe then a alert is sent? I think this is a great option that is missing on MT4. Do...
Hello, I am trying to create persistent set of data for an array, as a test, but it doesn't work. This is the code: void OnTick(){  int multi[][3];  if (ArraySize(multi) == 0) {    Print("Array size = 0");    ArrayResize(multi,3);    multi[0][0] = 1;    multi[0][1] = 2;    multi[0][2] =...
Hello I have a question about slippage. I've tested each diffrent slippage values  about OrderSend() and OrderClose() ,but results are still same. (I tested slipage 5 and 100) what is role of slippage???  thank you in advance
Hello I'm begginer. I was searching about that, but I can't find about class (excepted?) indicator, profile, history,array and others. and F1( MQL4 Reference)  is not understanded. I was typing as follows. Ticket t();      // Class namedelete &t; but It is not working ~Ticket()  (=destructor ) How...
I have generated a few demo accounts b/c everytime I set one up, it won't allow me to login. I've taken a picture of the pw generated so I know I am using the same pw.  What am I doing wrong?
I have been unsuccessful in setting up any of my emails in meta trader4 under Tools, Options, Email. I have tried 3 different email accounts and none of them work. The Journal shows login to smtp server failed. Is there something specific I should do other than fill in the account info? Any help...
  PIP Calculator  (2)
I am using the MT-4 platform.. Do you know of any indicators free/paid that will show current pips while in a trade and display them along with profit/loss after the trade? Thank you
[Deleted]
iMycustom is a custom indicator, i compiled with 0 error. when i use it in my EA, i got a error messege in the log file like this below. 2009.04.03 18:16:22 2008.10.07 05:05 Cannot open file 'C:\Program Files\Interbank FX Trader 4\experts\indicators\iMycustom.ex4' on the EURUSD,M5 anybody please...
Hello, I am getting Error: EURUSD ,H4: OrderSend failed with error #130 void OnTick () { H1EMAprev = NormalizeDouble ( iMA ( NULL , PERIOD_H1 , 14 , 0 , MODE_EMA , PRICE_CLOSE , 1 ), 5 ); H4EMAprev = NormalizeDouble ( iMA ( NULL , PERIOD_H4 , 14 , 0 , MODE_EMA , PRICE_CLOSE , 1 ), 5 );
Hi! I have code like this: double bid , ask , point ; int digits , stoplevel ; int cnt , cntOrders , ticket , ticketBuy , ticketSell , total , f_news , f_logs ; string n_time , n_pair , NewsPair , symbol ; double lots ; // wielkosc otwieranej pozycji double balance , equity , lotsize ; double
Can anyone help me create a close order in my ea because I'm at loss in what i should do. Example, I have open buy and the condition to close  the order is fulfilled (CCI<0). How do i write in in my ea. Thank you.
Hi all, I have tried different ways of sorting the charts in a profile but they kept on getting Auto-sorted. I've changed the sorting with the mouse -didn't work-, I've changed the sorting in the sorting file .. "order" in the profiles, but no luck. So is there a way to Force sorting through a...
Hi, does somebody have the mq4 files for PVI (Positive Volume Index) & NVI (Negative Volume Index) indicators? Please send me a link from where I can download this files or PM.
Now this is my code {     //Sting signals   string Signal="";     //Moving Average   double MovingAverage=iMA(_Symbol,0,2000,0,MODE_SMA,PRICE_CLOSE,0);      //CCI   double CCI=iCCI(_Symbol,0,2000,PRICE_TYPICAL,0);      //Buy Signal with moving average is lower than price close and CCI is higher than...
Hi everybody! I use custom indicator that draws trend lines.  And I trade on brake of line. Works fine on back testing but does 000 trades on optimization run. Please advise on why it could happen and how can I go around it. Thanks in advance. int start()   {      if (scan_trades(0,0)==0 &&...
HEREs some example of MM & Leverage calculation that i've been use now... take a good look....... //+------------------------------------------------------------------+//|                  calculate optimal lot...
  Account History  (1)
Is there any way to save the file "Statement.htm" automatically on a certain moment?
Hello Dear coder, Can you make a code for me where I put price, date and time, so draw horizonal ray, not horizontal line. Like this
I have a row of dynamic rectangle labels drawn on a chart as above - they change size with certain data that is generated by price which works fine. I would like to display their value by hovering the mouse above the label so I am using the 'ToolTip' function. ObjectSetString(0,rectname...
  mtf ichimuko  (4)
hi, this indicator shows the result in 4-digits for all pairs in data window mt4. i want that it show 5-digits for 5-digit pairs and 3-digits for 3-digit pairs. can someone help me? http://forexmt4ea.com/ichimoku-mtf-indicator-mt4/
Hi All, Need someone help on my EA. i want to upload my EA and it shows error during the validation, the error is not enough money as below; my code as below; #property copyright "Copyright © 2017,"#property version     "1.00"              // Version#property strictextern string OptionsEA="DEFAULT...
Hi, Using MetaTrader4. I have some questions on what Volume number to choose. If I had $200USD and wanted to put it all on USD/CHF currency pair, which Volume number would I choose and why? Is there a certain Dollar amount when a trade goes from Micro (1,000 Units) to Mini (10,000 Units)?  Or...
hi traders, is there any semafor indicator which changes mt4 background colour as alert? Thanks!
I replaced the HDD drive by a SDD drive. Did a volume copy with macrium software.Everything works well on behalf of the bought EA, these don't want to start anymore. Is there anything I can do without using an extra activation
Hello, I have a EA that uses void Start () and runs ok on local desktop. It only goes round on every tick if placed on a VPS. I tried replacing void Start with void OnStart() but the problem stays the same. What should I use instead of void Start() and void OnStart() to have my EA go arround...