MQL4 and MetaTrader 4 - page 447

  Inquiry on Trailing Stop  (14   1 2)
Greetings! I would just like to ask if the following code: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop)&&(OrderStopLoss()<Bid-MyPoint*TrailingStop)) is will have a similar effect to this: if((TrailingStop>0)&&(Bid-OrderOpenPrice()>MyPoint*TrailingStop) and this:...
Hi, I've formatted my PC and reinstalled MT4. Now I don't see the VPS associated to my accounts in the terminal (I had a MQL5 VPS associated to each account). How can I make them appear again? Thanks
Hello, The simple code below: void OnTick(){   if(OrdersTotal()>0) return;      if(iRSI(NULL,PERIOD_M1,14,PRICE_CLOSE,0) > 70)   int x = OrderSend(NULL,    OP_SELL,    0.01,    Bid,     10,   0,    Bid-3*Point*10); //using 5 digits broker} it is a very simple code note that it ONLY accessing the 1...
hello my friends, may you help me please? am trying to back test an EA but there is a problem and i don't know how to solve it, it always opens fixed lot 0.1, i tried everything to change it but nothing changed, i tried all installed EAs, changed fixed lot to 0.01 but it still doesn't work. changed...
Hi there,I want to bind an indicator to several accounts. I found a lot of solutions for expert advisors. Does anyone know how to do it for an indicator? Thanks
[Deleted]
suppose, Broker offers 260 instruments . Each instruments got 7 time-frames which i want to scan for.(5,15,30,60,240,1440,10080) for each intruments & each timeframes, i need to save info like : bool  Trading_allowed_on_M5 = true;  Im currently using an array string symbol="";int chartPeriod;bool...
I intend to feed my own one day's worth of tick data in to MT4 and run my expert adviser on that data only, Please advise on how it can be done? Local time       Ask     Bid    AskVolume       BidVolume23.04.2018 00:00:00.089 GMT-0000        151.062 151.047 1.25    1.2523.04...
I am trying to put a comment on a chart for the profit or loss of the last trade for the chart the indicator is on. I have brought some programming together, but it just gives a zero value. I probably need to tell it what trade / currency pair to look at. Not sure how, or if needed. I have all my...
Hi, i'm trying to test my strategy on more exotic pairs like EURSEK or even NZDCAD (which isn't that exotic) but for some reason, no trades end up being triggered even though when i print the output i can clearly see my conditions are being met. the same EA works fine on other more standard pairs...
Hello,The graphical objects of the standard library look really small on a high res display (header, radio buttons etc). Is there any easy way to scale the things up or this has to be handled in a custom way?
Dear gentlemen , May I seek your assistance and technical expertise help ? My Android mobile phone MT4 Build:1120 (24 Apr 2018) I recently upgraded from previous version  I am not able to filter the message according to keyword since I upgraded to this version from 24 Apr 2018. e.g. I like to...
Hi Is it possibel to add 2 or more EA to the same chart, if yes how ? Regards Michael
I don't know why this happens, but it's really annoying. My buy and sell functions are the following: bool Compra()   {   StopLoss=Ask - Pips()*25;   TakeProfit=Ask + Pips()*50;   int TicketNuevo=OrderSend(NULL, OP_BUY, 0.025, Ask, 10, StopLoss, TakeProfit, NULL, MagicNumber, 0, clrNONE);...
According to MT4 description, prev_calculated should be the same as rates_total after the first run of indicator. However, I found that prev_calculated becomes 0 again in the forth tick, and then all rest are same as rates_total. Why this happens? Is it expected to be the same as rates_total after...
[Deleted]
Hi everyone! This website has been super helpful as I'm very new to coding. But there's just one thing I could not figure out myself, I really appreciate if someone can assist me. I am trying to create a trailing stop system based on the AccountProfit() values within the trading period of a single...
The subject pretty well says it. How can I ascertain what a Broker's Minimum Stop Loss level is for any particular currency pair? Thanks for any and all assistance.
Hello All, Inside the settings of this indicator is the option to show signals. When you do FX Fish will place buy, sell and exit indicators on the chart. This is different from the oscillator going from green to red crossing the 0 line. I'm hoping some kind soul can make a push alert so that when...
  back test speed Decreases ?!  (14   1 2)
hi, run ea back test , in every tick mode. I run it on long time , from 2000 in first 24 hour's for back testing my ea , it will have 8 year's , but after that in each 24 hours have only 2-3 year . ( by my PC.) whats the problem? can do some thing ?
[Deleted]
Sorry for the noob question, but all along i thought the orderprofit() function would be smart enough to give true pip value, but it doesnt seem so. Im testing on 4 digit broker Fxpro, and the profit of 30 pips is returning as 300 via OrderProfit(). How can i fix this ? thx
Using Sony XZ Premium with MT4 app. On Demo account i get plenty of news, but on live account I get nothing at all. I am with Axitrader. I have reinstalled the app. Rebooted Phone. Tried speaking to Axitrader and get nowhere. Can anyone advise further?
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...