Download MetaTrader 5

MQL4 and MetaTrader 4 - page 72

To post a new topic, please log in or register
Hi,   I am trying to create an indicator, which is working now, but I've got a lot of alerts by every thick. I want to change this, so that I have only an alert when a new candle is open. Can someone help me with my code and tell me what i am doing wrong?   Here is my code: #define INDICATOR_NAME...
Dear, I wrote the code below. int LOT_PRECISION=2; sLots = 0.02; Multi = 1.83; double mLot = NormalizeDouble(sLots * Multi,LOT_PRECISION); So actually calculation is  0.02*1.83=0.0366   and i want only 2 digit without round the number like = 0.03 just leave "66" but above coding mLots show 0.04...
Hi every body  I'm try to convert the PositionSizeCalculator indicator in a EA. I did this and works fine. The problem happen when I change the time frame more the 2 ou 3 times.   Please, someone can help me?   
  indicator refresh problem (19   1 2)
Hi guys I'm trying to edit an ema-rsi indicator that can show an up or down arrow when 4 ema cross happens and rsi is > or < 50. My problem is that theese arrows don't refresh for every tick once they appeared, I need to change timeframe if I want to check if conditions are still good to show arrow....
Using Metaeditor at FXCM (latest MT4 build). When one creates a new script, indicator, EA it gets placed in the MQL4 root directory instead of within the appropriate folder for Scripts, Indicators, Expert Advisors, etc. As such, the compiled program is not recognized within the Terminal. I have to...
Hi, I am trying to modularize my EA with Classes because it's getting bloated with many lines of codes. I want to put all my exit strategies into a Class (Class ExitStrategies), which will calculate and store the exit prices every time a new bar is formed and detect if the prices are hit. Then i...
hi all, I need to check the opened and closed orders after the start of the current bar. Is this code correct? I'm not sure.        total = OrdersTotal();   Num_Order_Long_5  = 0;   Num_Order_Short_5 = 0;      for(cnt=0;cnt<=total;cnt++)      {      OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY);...
Hi, I`m trying to figure out, what i need to do, to make indie that reads values of 2 other indicators, but i can`t seem to get it wright, i`m not the best coder, could anyone kindly tell me whats my error here or perhaps guide me to some solution ?   The idea is that: Value for first indie should...
Every time I try opening a trade mt4 says trade disabled please verify operation parameters and try again later
extern double MaxSpreadAllowed = 2; double Spread; Spread = (Ask-Bid)*10000; if(Spread <= MaxSpreadAllowed) { my broker ***** me here by adding weird shorts during market closing & opening at 10 pips spread.   } i have also tried using this: Spread = MarketInfo(Symbol(),MODE_SPREAD); and this:...
How Can I Fully Refresh the Indicator Lines when I open the MT4? I noticed that when I open my MT4, and my indicator line is not accurate because I see it changing big after several minutes to form the right indicator lines.. Is this internet speed problem or MT4 bug? To avoid waiting more than a...
Hello Community, I have recently developed an EA that can set all Stoplosses for all Trades on a Symbol on the position where the mouse cursor is while holding Ctrl-key. It works, but the thing is that I have to press the left mousebutton twice in order to activate the right price for the stoploss,...
#property indicator_separate_window #property  indicator_buffers 1 #property  indicator_color1  Silver //--- input_1 parameters extern bool      Export=false; //--- buffers double ExtMapBuffer1[]; int iHandle = -1; int iErrorCode; // begin Encog main config                         string...
I am writing a basket trading ea, and so I am replacing the whole chart window with a custom user interface.  To do this, I have written an initialization function that removes all the stuff that the chart shows by default, so that I can start with a black screen. This works well, but I have not...
Guys, According to my username, I am your new friend. Guys, a question. Although it will might look like I am requesting for a freelancer, its not true, I am not yet - just asking if something like that exist: I am looking for blockage/skipping/preventive tool for Take Profit Line that would...
Dear Guys, I am developed Panel with control. But i am facing some problem.     Problem 1 : when i click ComboBox then  combo data not show.  I can't change others data. Problem 2 : When i try to write something on text box. writing data not show when i am writing. Data show when i move text...
Hi all.   Any ideas would be greatly appreciated.   Using Mt4.  I had 1 EA which was placing trades fine.  I then made another working on a separate chart, which also placed trades for me.  I now have 4 EA's all placed on completely different charts. None of the new EA's are placing any trades...
I have an EA that is based on a time range breakout that I cannot get to optimize in the strategy tester.  Is there any particular quality that would prevent optimization?
Greetings, Does anyone have any solution to MT4 indicators not working on high resolution screens yet? This thread https://www.mql5.com/en/forum/158168 basically says there is no solution other than the developer fixing the indicator. But does anyone else have any other solution yet? The majority of...
I add pending orders. Add two hours for expire. After it add the pending it delete it again after few seconds. Nothing in the code close any kind of order. Any idea why?  In journal it just says pending order #... was deleted 
hello can any one help me to have make one indicator which generate gif image of meta trader 4 screen when price or ltp changes and it should generate gif image with same name and update that gif image when ltp changes
Hi All ,   some days ago , I changed my investor pass , and now I can not remember it .   how can I get the forgotten investor pass ?  I need it . I can not change it again .     have a nice christmas !!! :) 
Hi, I've made an indicator that draw a fibonacci from the low of the day to the high of the day or invert depending on the trend. Everything work great but now with the GOLD. If you go on m5 you will see that the day dont start at 00:00 but at 23:55. How can I add 5min to gold with this......
Hi, I'm looking for something fairly simple, I believe, but can't seem to make it work.  Not sure if there's a better way either.   I want to check the close price of the currrent candle with the close price of previous candles.  If requirement met, put an order in.  This is the code to check for...
Hello All,  Just wanted to ask if there is any one willing to help me solve the following issue(I'm still a novice coder). When I compile my code, the following snipbit of code throws out 3 errors as indicated.  void Comms() { while(IsTradeAllowed() == true)    {...
Hi Techies,   I need to initiate order when the current bar is opened at some price and moved 5 pips high or low and return to the open price.  Please help me.    regards, Naveen 
Hi, I need an indicator that gives a sound alert after the closing of the third consecutive green or consecutive red candle. Example: first green close; second green close; third green close... BEEEP ! Even better if it could calculate the distance in pips between the first open and the last close...
hello    i downloaded this indicator at the bottom , and somehow looks messy , i am wondering how the chart can be fix ,   thanks !!!    chad  
If i place a trade and a stoploss with it on Friday, what will happen on monday if the weekend gap goes over my stoploss?
Hi, I recently installed MetaTrader 4 software. At the beginning I had a lot of questions but for most of them I found the solution on my own already. For few of others ones, I would like to ask for some assistance, if possible please: File is attached to my post. As you can see the ''classical''...