MQL4 and MetaTrader 4 - page 545

[Deleted]
Hello everybody ,, I'm a newbie in the field of Expert programming ,, and i'm trying to make an expert based on ichimoku indicator ,, but i have a problem when i put some conditions (if statement) ... for example entry buy order when the Close[2] < kijun line and Close[1] > kijun line ... but i...
[Deleted]
Simple task. I have an array that simply takes the percent change from the previous tick. Then I want a histogram to show if the current tick is higher than the last. When I apply ArraySetAsSeries() it doesn't even work. I have placed it in multiple spots in the code and it either doesn't do
I've been getting the Undeclared Identifier error on iClose , iOpen, iHigh and iLow, and I have no idea how to fix this. for example in this: int HighestCloseBarBefore = iHighest(NULL,PERIOD_H4,MODE_CLOSE,RoomCandles,(a+1)); int HighestCloseBarAfter =
Dear All,   Can I use the expression as below? Meaning can I use || the OR operaror in the expression? while ((PA<=20 && PA>0) || (PA>=-20 && PA<0)) .........  .......   Thanks 
[Deleted]
Hi; https://www.mql5.com/en/charts/58097...d1-fxglobe-ltd Please refer to above link. Is there any way in mt4 to show entry, SL, and TP labels on the right side of chart instead of on the left side? Thanks for any and all feedback.
Does anyone know if it is possible to create objects on the chart that are proportional to the chart screen size....? ie. If I have a rectangle eg. H=20 W=100 when my chart is "Full Screen"... those rectangle stats become H= 10 W=50 when the chart size is minimized to half the full screen... If...
Are there any plans to remove the rounded corners of chart windows and bring the design in line with Windows 10? Also, will the iPad version of MT4 be updated any time to allow a black background
I am new to MQL4 and have been trying to solve the following problem all day. Currently the code below will buy when the indicator raises up above -40 from below. However, I cannot get it to close that same order when it raises above +40. (The same is true of the sell signal in the opposite...
Hi All I'm new to MQL and have a request to be able to run the below scenario: I would like to open two trades at the same time, one to buy and one to sell at a specific date, hour, minute and second. I would be opening 10 lots, with a stop loss of 3 pips for both trades. I would then like to close...
Hi coders, I have 10 objects in my chart. If I pop-up an alert with ObjectsTotal() the result is 10. When I want to color them all in green I do it this way: for (int i=ObjectsTotal(); i>0; i--) {   ObjectSetInteger(0, ObjectName(0, i), OBJPROP_COLOR, clrGreen);} Now my question is this:  when I run...
New article MQL5 vs QLUA - Why trading operations in MQL5 are up to 28 times faster? has been published: Have you ever wondered how quickly your order is delivered to the exchange, how fast it is executed, and how much time your terminal needs in order to receive the operation result? Meanwhile,...
Hi I am new here and I have a simple question but google didn't help me. I am running windows 10 32bit and mt4. When I create new profile, connect to server and try to put some charts on the screen it give me an error C\Users\??...
I have assembled a Chart Zoom Out Button for "CHART_SCALE"  works just fine until I add the opposite condition Zoom In then they cancel each other out. Could someone show or explain what I need to do to have them both in the same Indicator. I have attached the both working Indicators so you can see...
Can someone explain to me why flag last state does not work on EA's but works on Indicators? My code             if ((MA1[1] > MA2[1]) && (flagval1==0))      {res=OrderSend("USDCAD",OP_BUY,LotsOptimized(),askusdcad,3,0.999*bidusdcad,1.003*bidusdcad,"",MAGICMA,0...
I want to gather all the data from an indicator and export it/generate a graph in a new window. Is there an easy way to do it? I imagine it would be something along the lines "for (int i = 0; i < Bars; ++i) if (foundSignal) exportData" Also, I'd like to do a global indicator. Meaning...I want to do...
Please somebody help me on this one. I want it close the current order and open a reverse order when an opposite signal appear . but This EA close the order and no new reverse order. please give me some advice and some code to correct it
[Deleted]
Hi there,   i have a script  that i want to be executed each time a new Profile is loaded (the script will update the chart-templates). I could not find any Funktion/Event to do this. can anybody help me out here?   thank you SautaRoc 
[Deleted]
PLEASE help me. I have opened a demo trading account with a broker and I used their link to download the met4 platform. All seems to be OK except for the fact that when opening the data folder the MQL4 folder is not there. As a result, I cannot load indicators or EA 's. I am using windows 8.1 latest...
')' - unexpected end of program Scalping.mq4 '{' - unbalanced parentheses Scalping.mq4 return value of 'OrderSelect' should be checked Scalping.mq4 return value of 'OrderModify' should be checked Scalping.mq4 extern int MagicNumber= 0 ; extern double Lots = 0.1 ; extern double StopLoss= 0 ; extern
how can i state and wriite a good ea
[Deleted]
Hi, I'm new to MT4 so apologies for the newby question. I want to set up new chart windows in the template I'm setting up and there is only a very limited list of markets I can add - how do I access new markets. I'm intereested in forex markets. I checked online manual and it only says I can ad new
Hello, Is there an easy way to find the indicator of an indicator. For instance, I'd like to take a simple moving average of the RSI and display that in it's own indicator. Can something like that be done easily? Any example code would be most helpful. Thank you
I inserted a for loop , after a cross candle condition on Moving Average 50 . With the for loop , I have to try the first cross of the Moving Average 5 on 50 by 9 candles and when the cross was found , I get out of the loop and finish with buffer 1 The code does not error but does not work as I have
Hi is there a spot here on mql4 where I can access candle pattern logic similar to the why I have identified some candle patterns in my previous code writing efforts:double O=(Open[1]);      double O1=(Open[2]);      double O2=(Open[3]);      double H=(High[1]);      double H1=(High[2]);      double...
[Deleted]
  MT4 Chart Object  (8)
Dear Support,   I tried to create a Chart object in mql4, but I got  a 4207 runtime error "Some error in object operation." My creation code: ObjectCreate(0, "miniChart", OBJ_CHART, 0, Time[0], Bid); Is this workable in MT4?   Thank you for your answer.   
[Deleted]
Hi guys,   I'm wondering if there is a problem with this function because it is working on some broker and other not. I tried the simpliest code to check and found out that some broker like instaforex it is not working    sellticket=OrderSend(Symbol(),OP_SELL,0.01,Bid,3,0,0,"Sell Order placed"...
Hey Guys, I know how to get specific data from a indicator in a EA. For example I use iMA to get the current data for the moving average. But I also want to visualize those data for the user. So my question is, how can I implement the moving average so that the moving average is appering on the...
I trading about 15 currency pairs, and I would like to write a method (function or class) to return the number of open orders per symbol. Any idea how can i do this? Thanks, Phil
Can I draw a line on a 4 hr chart and have it appear on the 1 hour chart of the same symbol ? Also, how to enable Global Crosshair ? Thanks
Do you have a Function of "trading at certain hours" strategy? I would like to test if EA works better 24hrs or during certain hours.