Hi, i'm trying a CCI threshold strategy, where i sell when CCI goes from CCI<= 100 to CCI>100.  to do this, i need to know both the current bar's CCI value and the previous bar's CCI value.  from what i understand this is accomplished by using the "shift" argument of iCCI function  as i do here:...
Example- I create a Fibonacci retracement  on a chart. Later I want to delete it. I right click on chart and select objects. There is no popup window anywhere on any of my monitors. I tried putting it on the 1 monitor and disabling the others and still no popup window. I press escape to move along...
I would like to have some text in my indicator window that changes color when a buy or sell signal happens. Something like "EURGBP" sitting there yellow until a buy signal happens then it turns green, or red when a sell signal happens. Even better would be a movable panel so you can put it where you...
Hi, I need to replace iRsi in this formula with iStochastic. double rsi = (iRsi(rwma,RsiPeriod,i,rates_total,0)-50)*0.5; I don't know how to exactly set the iStochastic formula. I tried using this, but it doesn't work: double rsi =
Hello, When I check how indicator run in Tester, the buffer show up wrong value. Here is the code. Somehow MQL4 read the "condition(i)" incorrectly. I check, check, check, go back to the original indicator to make sure that it works fine. if ((buy1[i]== 1 && condition(i)< 6 ) signal[i]= 2 ;
Howdy folks. I am newbie for MQL language so excuse for that kind of question. I created expert advisor and tried using custom indicator in code. Indicator was bought trough market. void OnTick()  {   string ind_name = "Market/My Custom Indicator";   int up_buf = 0;   int down_buf = 1;   int shift =...
Hello everyone, First, sorry for my english. I found a very good renko indicators on web, it s renko_2, I attached the file. I tried all the day, without success (I m not good for coding :/) to add Ichimoku indicators in this chart. Could you help me to add something like an average on this chart
Dear Metatraders, Can anybody develope some plug in or something which can import data from a signal service into Metatrader. I am ready to pay for reasonable development fees. regards Ankit
ObjectSet(name, OBJPROP_ARROWCODE, 1);            ObjectSet(name, OBJPROP_COLOR, clrBlue);            ObjectSet(name, OBJPROP_STYLE, STYLE_DOT); I try many solution.But Can't do that. Who can help me? Plz show simple Code for me. Thank you!!!
Hi, I recently posed a question why I was getting unstable results and I got some helpful responses about the problems with the scope of the code. However, I've had such bizarre results (that have nothing to do with the scope) lately that have really stumped me and make me wonder if I should even...
Hi  I am very new to MT4 and would like to learn in details. I have three chart windows open, each chart with different time frame. I would like to synchronize all these three charts.  So When I draw any indicator or trade line in one chart, I would like to appear on other two charts. Please can you...
void ExitTrade(){   for (int i=OrdersTotal(); i>=0; i--)   {      if (OrderSelect(i, SELECT_BY_POS))      {         if (OrderType()==OP_BUY && OrderMagicNumber() == MagicNumber)         {            while(true)            {              bool result = OrderClose(OrderTicket(),OrderLots(),Bid,30...
I see many, many people posting code and asking questions which can usually be answered by simply checking the return values from a few Functions and printing out any relevant errors. So I thought I would make a post specifically about this subject so that I can simply link to it in the future . ....
Hi, I'm writing a script to setup a workspace. From the main toolbar, if you select "Window" you get a dropdown list. I can't find the functions that perform these actions. Do they exist? Tile Windows Cascade Tile Horizontally Tile Vertically Also is there any code to minimise and maximise a chart...
I created small bollinger bands. How to prevent buy orders when the price on it. if((Close[0]!=iBands(NULL,0,200,0.15,0,PRICE_CLOSE,MODE_UPPER,0))&&(Close[0]!=iBands(NULL,0,200,0.15,0,PRICE_CLOSE,MODE_LOWER,0))     {        result=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"EA",MagicNumber,0...
Hey guys, Just wondering anyone able to offer me some help. Basically I have done the coding of below condition. 1st Condition, I saw a crossover between two different moving averages and the candle that appeared I named it as Swing High Candle. 2nd Condition, I would like to see a...
Hi, I was wondering if anyone has made an indicator which places level lines on the chart using the daily open as the reference point. I wish to place levels of + 45 and -45 from the Open. If anyone has this or is willing to make one i would be very grateful. Many thanks. napeharm
I have written a Custom Indicator that places a number of graphical objects on a chart and allows the geometry to be altered by dragging various anchor points using the OnChartEvent() entry point.  Think of a MQL4 implementation of the Cycle Lines or Andrews Pitchfork tools and you will get the idea...
Hi I attached an EA on many charts . why on EUR-CAD open order of GBPAUD ?  EURCAD,M15: close #273335799 buy 0.05 GBPAUD at 1.81952 sl: 1.81833 tp: 1.82452 at price 1.81938
i have been trying to store the sum of order buy lots and the order sell lots in a buffer can  anyone help pliz, thanks in advance //+------------------------------------------------------------------+ //|                                                        chang.mq4 | //|...
I got this EA we wrote, been testing it on demo accounts and works great. but now on a real account it hasn't opened any orders. Is there any instructions required for the EA to work on a real account? I have tested it with the Indicators as well over and over. But for some reason it does not trade...
Hello everyone. In MQL4, when an EA opens a pending order , if it checks OrderOpenPrice(), it will receive the opening price set in the OrderSend, say PRICE1. If at some point someone decides to go to the trading platform and change the opening price of the pending order to something else, say...