MQL4 and MetaTrader 4 - page 127

To post a new topic, please log in or register
Ran Tick Strategy Tester for all of 2016 on Daily chart, symbol GBPNZD.trw (TradewiseFX broker) . Suddenly report tallied 6,507,865 Mismatched Charts errors with modeling quality = N/A. My Expert Advisor has not been changed so this result is strange. This report shows build number 1065.  Previous...
Hi all, I made the attached .txt file using the following code int start()    {         double Take_Profit_Long_1   = 1.06475 ;         double Take_Profit_Long_2   = 1.06579 ;          double Take_Profit_Long_3   = 1.07432 ;         double Take_Profit_Long_4   = 1.08436 ;                    string...
Hi guys and gals! How can we open multiple  orders of the same pair simultaneously in the mt4. It seems we need an ea or a robot... is this true? if so would you know of a good one? Rsvp at your earliest convenience
Good Day Folks , I am Programming a Custom Dynamic Envelope based on band on Macd array  everything was set and data came out well , except for the array drawing that i got are a little bit messy ,  what would be the problem ?  its a simple indicator but i am bad with array functions  Thanks in...
I need an OnTrade() event handler for mql4.. any suggestions on how I can code this will be appreciated.. if it has been done please point me to the code (I ran a search and found nothing!) Thxs in advance guys
  Serial port communication (13   1 2)
How I can communicate via serial port with external equipment monitoring and control with string or int data type?
I'm using 2 indicators, one is current window and the second is indicator_separate_window. How do i change thetimeframe for the secondindicator? I have tried: ChartSetSymbolPeriod(   0,     // Chart ID   NULL,       // Symbol name   PERIOD_H1        // Period   ); But it changes both. Both...
extern double Profit==0.005        int cnt;        total=OrdersTotal();   //Close all    if(AccountProfit()/AccountBalance() >= Profit){        for(cnt=total-1;cnt>=0;cnt--)    {       OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);        if(OrderType()==OP_SELL)    {...
For example, in a RSI indicator, we can use IndicatorSetDouble to set the levels to, e.g, 70 and 30, but how to retrieve the values from the code? There is no IndicatorGetDouble... Thanks
Hi: I need to test some math equations before moving on to the bigger picture. Can I use a keyboard input and a text output for testing? 
Hi I have an indicator that is stopping with a stack overflow error. I thought maybe because i am using a recursive function so i rewrote it removed the recursive function and i am still getting the overflow error. instead of just using an indicator i converted the code to be an EA added the...
I have a problem i want to calculate the range form X day like NRangeday=3....50 but i want to esclude the sunday how i can do it?? An example if NRangeday=4 i wnat to calculate the 4 previus range so,began to yesteraday 7 july Tuesday , 6 Monday, 3 Friday, 2 Thursday Because the Day of week only...
Summary of Problem/background: I am trying to place a buy stop order when the price hits a certain price, but I only want this to happen once, however I keep producing pending orders. For example if on "EURUSD" , the price reaches 1.06700 and then places a buy stop at 1.06725. How do I ensure this...
Hi there, I would like to trade in such a way that utilises fibonacci levels that overlap or are present in close proximity, known as fibonacci clusters. My question is, can anyone point me in the right direction on an indicator or trading method for MT4 to allow me to trade fibonacci clusters...
Hi there, I startet to write my own set of classes to create a own panel. Everything is (almost) fine so far, but those classes, which are derived from CWndContainer simply don't want to work. These are CComboBox, CListView and CSpinEdit. The controls are shown, but there is no interaction/reaction...
hello, can any one add sound alert lines on this indicator, i really need it so much, thanks. //+------------------------------------------------------------------+ //|                                         EMA-Crossover_Signal.mq4 | //|         Copyright © 2005, Jason Robinson (jnrtrading)...
//--- * short trade if  (trade_ok==true){if ( ( Ask- SMA_10day  < buffer*Point*K ) && ( price_above==true))          {       ticket1=-1;     ticket2=-1;     while (MarketInfo(Symbol(),MODE_ASK)-MarketInfo(Symbol(),MODE_BID)<4*Point*K)  // spread < 4     {     Alert(MarketInfo(Symbol()...
Hey guys, i am new to coding and want to identify when the spread of bollinger bands (upper -lower band) reaches a minimum over the last x bars. Can anyone help me write a simple function that returns the corresponding index value? I declared... void OnTick(void)   {    double LowerBand,UpperBand;...
Good day Fellow Traders, Could anyone please tell me what is the lot size of the Volume data in the History Center? I cannot find this information in the documentation or online. Here is a sample of the data in the Volume column: as small as 1, and as large as 76765. Thank you in advance. Best...
  How to make MT4 auto refresh (50   1 2 3 4 5)
do u have indicator for MT4 auto refresh please i need it like crazy...
Hi every body, I bought TrendLinex indicator, I receive the buy or sell signal by alert, but it don't place the order automatically, custom service don't response my request, anyone know how set it. Thank you
Hi all, I'm a newbie at mql4, but I'm having a go at putting in a Max Orders function to my EA, can someone help me how to do this? The code is somthing like extern int MaxOrders = 12; Thanks, Dave.
Please can someone share an older metatrader version with me. Not branded please. I need the original version. It would be better to provide me with the folder (clear please with no indicators etc) of it. No setup because it automatically updates. Thank you in advance
I am new to mql.  I am attempting to write my first tester robot based off of the HeikenAshi indicator that is provided in the metatrader editor.  In my EA when I try to call CopyBuffer the compiler does not know what that function is. Is there a dependency that I am forgetting?...
Hi Everyone! I hope you are fine. I have a weird situation since the last Mt4 update. When a visual test is launched, the balance/equity graph and the journal stays silent until the test is stopped, if using speeds 31 or 32. Is there a way to make it work has usual? For instance, this is during the...
when iv opened to many orders ,one of theme has a drawdown and i want to hedge it,,,,how to prevent repeating the opposite order more than  once??thanks for(int cnt=0;cnt<OrdersTotal();cnt++)     {           result=OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);      if(OrderType()==OP_SELL...
According to:   https://www.mql5.com/en/articles/1490 I want to check that the tester is working correctly and running the CheckModelling mq4 I want to see ,like in the article, the multiple timeframes and how the tester models them. when I run the CheckModelling mq4 in the tester I only see the...
when i put personalized eas and indincators mt4 becomes more and more slow ( because of the repainting maybe??)  , i have to format my computer evry whle ,  how  can i do that clear the mt4  and make it fast again whithout formating computer and my indics and eas  stay inside  ?????
Hi, I am really interested in how you change the 'anchor point' text labels. I have some code, would upload but don't yet have the authors permission to upload yet.  I want to edit the code to place all the text labels on the top right of my charts Thanks
Was wondering as I haven't seen any updates to it.  It is a real shame it only seems to allow you to connect to servers in its hard coded list,  making it impossible to add accounts from different brokers.  or am I missing something? thx.