MQL4 and MetaTrader 4 - page 496

Hi all I am trying to draw out the crossing of this indicator, using both green and red arrow, the red arrows seem to be correctly placed, however the green arrows are always misplaced by 2 bars, e.g it is placed on bar 34 when it is supposed to be bar 36. I have attached a print screen to show the...
Hello community, first time poster here!Background: I have mild mql programming experience having programmed a few EAs in the past but recently became interested in creating my own customer indicators.I have a two part question:1) So far I understand that indicators can either overlay the price...
hello guys, i've got a problem with my Metatrader 4 and I hope someone can help me. I discovered this website here just today and was surprised how u can customize ur MT4 so i tried to implement some of the indicators in the market section on this website, but every time i try to download one, the...
Hi good time An indicator Using the icustom method I called inside Exspert During the implementation, The indicator shows the object on the chart Also, when an object is displayed, an alert is given on the chart To show off The moment the object is displayed on the chart Is there any way? Is it
pls i have this difficulty fix fixing this code to stop trading for the day if profit is made my problem is it not working,looks like am missing something .thanks int Startfrom=9; //my day start int Stop_on=20; //my day to end trading double Ppt=10; double AcctBalance = AccountBalance(); double...
Hi All Has anyone experience a chart not updating? I have trades on USD/MXN, and the chart on Meta trader 4 has not been updating since 3.30am AEST 3rd August. Is there a solution to this? I have emailed screenshots to MQL5, though have yet to receive a response. Thanks,  Al
  iLowest  (8)
Hi Everyone! Please point me in the right direction! Trying to get either Lowest_Open or Lowest_Close in Comment, show only the lower of a candle body. The same to the up side Highest_Open or Highest_Close. //+------------------------------------------------------------------+//|...
Hi, does any one know how I can add code into an EA to automatically open trades if there are currently not open trades, I have an ea that will close trades automatically if certain paramters are me buy need them to be replaced as soon as that happens. heeeelp
Hi guys, I wish to read through csv files and then write info directly after the read info.  Now, I know how to read through the CSV file, but I don't know how I can: -move downwards in the csv file -then go back to a specific point -then add data next to the current data Any help would be so much...
Hi, I have a function called CheckOpenOrders() as below. What its supposed to do is to check whether the current Bid price matches any existing orders in a 50-pip window before I open an order. However, somehow it doesn't seem to work and the code ends up opening many orders regardless whether there...
Hello people, Please help me with a solution to this error. I know that is a problem with matching data from a smaller time frame, but i can't find any solution to convert the m1 timeframe to the timeframe that i need. I tried with period_converter, as i read in another topic, but unsuccessfully....
[Deleted]
Hello,  I would appreciate some help. I can program tradestation but I am having difficulties with some aspects of MQL. I would like to be able to send an alert when the weekly high is broken. It would be grand if was able to plot the highs and lows of the week like this: (this is 4H chart)   I...
Hi I have a question ? Is OBJ_BUTTON possible to include in the OBJ_ARROW text? And if so how? Thanks
I'm trying to build a Martin Gail based on these codes. Do you know the location of the writing on the style of writing this type of Martin Gail code? Let me have your answer. if(NewBar() )     {       //if(total<1)                    {      //BUY      if(//conditional expression )         {...
I started getting ERROR 130 when not using SL and TP, there is no prob,  //+------------------------------------------------------------------+void Buy(double lot, int magic){   int tp=NormalizeDouble(Bid+100*Point,Digits);   int sl=NormalizeDouble(Bid-100*Point,Digits);   if(OrderSend(Symbol()...
Hello, I need to be able to extrapolate the current values of trend lines every hour on an EA which runs on the H4 time frame. A separate section of my EA runs at the beginning of each hour and most variables contained within that section update accurately and fine. However "Var1 =...
Hello friends, I am new to coding in MT4 Can some body help me with coding, how to calculate the Difference between the Highest high of last 50 bar minus the current bar low , I need to see the difference of Pips Kind Regards, Siraj
void OnTick()   {   double x;   x=(1/3);   Print("value =",x);    } the print value is 0. why????
please, help me ... i created a manual system indicator to see my balance , equtiy and margin but dosnt work in my MT4. dosnt appear any information . what is wrong in my code? #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom...
Hi Using Mql4 I am trying to use the consecutive wins count to increase the lots multiplier after the winning trades starting from 1 until it reaches to the maximum lots multiplier and to reset the lots multiplier to 1 after any losing trade to start the cycle again with the consecutive win trades...
please  How to encrypt mql script like this case
I want to put the following idea into the attached EA. if brokertime >= NSec -4seconds place all new orders at the same price as the previous order. Can somebody translate that into actual code for me? Any help is much appreciated.
  Frank EA and 10p3 EAs  (367   1 2 3 4 5 ... 36 37)
I modified this EA Frank_ud - MQL4 Code Base to trade with 0.01 lot size and attached it to 4 main pairs + most risky GBPJPY. Martingale. I attached this Ea to the apirs yesterday. And this EA survived during the interest rate news: Frank_mod EA: - Original version: EA attached for 4 main pairs and...
Hi Guys, Can anyone please help. I wrote a multi timeframe indicator and it runs correctly when loading into a static chart. However when doing a back test it retrieved wrong values. Please review below code and results. How does that happen? This seems to be a MT4 bug. Anyone has experience how to...
Hi Traders: I have upgraded my platform to MQl 4 Build 625, however, I am receiving the following error: return value of 'OrderSelect' should be checked return value of 'OrderModify' should be checked double timenow=TimeCurrent(); string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECONDS); string
If I put it in this way, Is there any error? int CurrentTime;int Past = 2;int BarsCount = 0;int i;datetime PreviousBar;int start() {if((NewBar()) ){ for(cnt=0;cnt<OrdersTotal();cnt++)         {      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);       if(OrderMagicNumber()==MagicNo && OrderSymbol()...
i have problem about this indicator calculation . does anybody has an indicator like this
Dear All This indicator paints fibonacci zones for the current day only. The zones extend only till the current bar. I want the indicator to paint these zones for all days in history.  Also, At day open, the indicator should paint the zones till the end of the day Would someone let me know the code...
Hello everyone, is it possible to make an EA that only allows trading posable if the correct account number is selected. Otherwise only attached indicators are applied to the EA and any trading code is dismissed.
I try to use the value outside of the "for". but when I use "return(Max_Value);" , error 5004 appear or print nothing What should I do? File "Max" ex)  2000-00-00 0:00,00 2000-00-00 0:00,00 2000-00-00 0:00,00 00 => Value between 1 and 100 int Past = 2;int BarsCount = 0;int i;bool...