MQL4 and MetaTrader 4 - page 709

Hi, Is it possible to automatically re-load a loaded indicator say after a compile ? It is possible to reload, if we open metaeditor and click on compile on any of the files. It doesn't matter which file, meta-trader will refresh and re-load the indicator. Can we do it manually ? I downloaded the...
[Deleted]
Hello, i have create a Renko Offline Chart and i am wondering why a EA does not show me infos which i write into "Comment()" function, does the EAs dont run on offline charts, or do i make somethink wrong?
[Deleted]
What wrong with this code..!! call --> CloseButton(-9,-9,-9); only order Symbol on active chart  closed .. order ...in other Symbol & chart NOT.closed ....! any clue..? void CloseButton(int bs,int magic,int loosprofit)  {   for(int i=OrdersTotal()-1; i>=0; i--)     {       if(OrderSelect(i,...
Dear friends, Is this possible to invoke mt4 strategy tester to test some EA with different parameters and testing period programmatically in batch mode? Let's say I'd like to test EA over period 1 on one currency, then on another, then have the output (best parameter values) stored, then proceed...
//+------------------------------------------------------------------+//|                                                        Genie.mq4 |//|                                                   Genaro Gravoso |//|                          http://www.oocities.org/ggravoso/b.html...
Here's a where.Lower "Print" prints "1.loss 1" and the upper 0 .Who can help ... while(1)   {    Print(" 1.loss ",loss,   " profit ",profit); ....................... .......................        if(profit>0)           {            loss=0;           }         else           {            loss++;...
I'm wondering if I'm the only person with this problem because I can't seem to find anyone else that has experienced this issue. I have 4 monitors running on win7, one machine has 8g mem 6 core amd and 2 video cards, the other machine has 12g mem dual core amd and 2 video cards (GEForce 210). When I...
Hi! I tried to backtest and optimize EA, but I got zeros in backtesting and optimization tabs- 0.00. Why?
I've got a couple of them where I'm getting this and I'm lost. 1st up: int myDigits = MarketInfo( Symbol(), MODE_DIGITS ); Now, help text has some sample code that leaves me to believe either I'm not reading it right or I'm loosing my mind:    double vbid    = MarketInfo("EURUSD",MODE_BID);   double...
Whenever the file.csv Im using in script is being used by windows the system "freeze". What should I do? //+------------------------------------------------------------------+//|                                       Open_my_Charts.mq4     ////|    BeLikewater(forexfactory.com) email= nitx20@hotmail...
Hi all! I have a problem which I need some advice for. I would like to have automatic alerts (sound+popup, email, etc.) when certain rules are fulfilled in *any* given timeframes in a certain currency pair. I mean, if I for example would have an alert for ema(50) > ema(100), all timeframes from M5...
i am trying to install meta trader 4..every time i run the file..its downloads files..and gets stuck..it again starts downloading from starting and get stuck again.. need help..
//+------------------------------------------------------------------+ //|                                                    emadeneme.mq4 | //|                        Copyright 2014, MetaQuotes Software Corp. | //|                                              https://www.mql5.com |...
[Deleted]
Hi, After analysis of my backtest results it seems apparent that my EA would perform better if orders were not raised if the previous day an order was closed in profit. I've tried adding a function.   bool CheckLastOrder(){    for(int i=OrdersHistoryTotal()-1;i>=0;i--)   {      OrderSelect(i,...
Hi, I wrote this simple function to move two open orders to breakeven when certain criteria are met. The problem I'm having is that it moves one trade to breakeven but gives me a modify error 1 for the second. Any ideas? Thank You void MoveToBreakEven() {         for (int i=OrdersTotal()-1; i >= 0;...
Hi, I have an indicator on a 1min GBPUSD chart and it is created by looping through the bars getting the EURUSD closing price, The indicator works fine but I want to smooth this indicator how do I do it? (example please as I have tried and failed several times using iMA and iMAOnArray) P.S. Sorry I...
Why would this code: //+------------------------------------ ------------------------------+ //| Crear_subdirectorio.mq4 | //| Copyright 2014, MetaQuotes Software Corp. | //| https://www...
  Need help please  (1)
How do i get the price value example 1.24260 of a horizontal line or a pivot point and use that value to compare to the current or previous bar High?
Hi guys, I have indicator with CopyRates function in OnInit. Something like that:   int OnInit() {   MqlRates pairs[];    int count = 0;        ArraySetAsSeries(pairs, true);        if (CopyRates(symbol, 0, 0, Bars, pairs) == -1 || ArraySize(pairs) < Bars) {       Print ("Error: ", GetLastError(), "...
Hello,  my strategy uses a Slope Direction Line indicator and few weeks ago it started to do a memory leak in my computer so the memory in the process terminal.exe started increasing a lot.  I think there are needed just some little changes in the code but I don´t know how to make it and where is...
Hello freinds, I set ProfitB = rderProfit()+OrderCommission(); The value of the parameter "ProfitB" is seen on the screen. The problem is sometimes that the value of "ProfitB" is seen (and computed) without the Commission value. Any idea, please? Thanks
[Deleted]
Dear MetaQuotes, 1- I use some Scripts as CloseAll, some Indicator as PivvotPoint etc, everything worked well before. But I do not work in Mt4 Bild 745, Why? MetaQuote is kindly give instructions for clients to use Scrips, EA, Indicator for Mt4 Bild 745. 2- MetoQuote often upgrade Mt4 versions,...
Hi folks, I have been using MT4 + different EAs written in MQL4 for quite several months now. These EA print traces using the Print function, and I find these log under /<MT 4 install root>/mql4/Logs A few days ago, I have wanted to stop live trading for a while, and test a new set of EAs on a...
Hello.  I hope someone can help me. I want to save in a file all the values of one candle. I know that in all moment, there is a bid value and an ask value. Finally, the values along the candle are those where was done each trade. I know how to save each value, tick by tick of bid and ask, but...how...
Hi I have tried searching for other threads on this so please bare with me, but the ones I found dont address the issue Im having with this specifically. Any help would greatly appreciated! I get this popup - "There are no new data for symbol _EN" and all Im trying to do is download the history data...
Need help to write an indicator that will show where bar closed. Whether it closed in the top 25% of its range or bottom 25% of its range. Thanks. 
Hi Guys, I've got a Problem on running EAs. You can see my code below. It's a simple moving average strategy. But it does not work. I have tried this after a different strategie does not work either. I have run this on EURUSD with data I downloaded from the Internet (since 2001) on a intraday...
[Deleted]
Hi guys, I'm working on Indicator that use iClose function. It's not unknown problem that function return 0 when historical data are not loaded. I would like to know how to load these data for different symbols.   For example: I have my EURUSD chart opened and I've never opened USDCAD. I would add...
Could someone post a code snippet that will facilitate drawing on object on the chart by dragging a script to the desired position, ie price and time.  I have misplaced the code that performs that function, know it is possible.   thanks 
I joined a fx company and they manage my money very well. But somebody told me that their transaction maybe fake, so their performance is very good.   My situation is as following  1. I need to use their system to trade and not major FX perform like FX-pro.  2. I can find their company name in MT4...