MQL4 and MetaTrader 4 - page 260

Hello guys... So I want to open trades depending on multiple criteria with my EA... Doesn't really matter TBH... The problem is that EAs run in one window. So naturally, I'd like for an EA to open assess conditions and open all the trades within one chart. Everything's fine except... Broker won't
Hi.. I want to execute a function if only the open value of the current candle is higher than the MA50. I applied the condition as follows. if((iMA(Symbol(),Period(),50,0,MODE_EMA,PRICE_CLOSE))<(iOpen(Symbol(),Period(),0))) When complied, it doesn't show any errors. But it's not working. Could
Hello friends, I have been having hard times trying to get my EA to work. It compile correctly but it does not open trades when I backtest! The idea is to check Moving Average cross and check stochastic, on D1, H1, M15 and M5 before initiating a trade. Can anyone take a look at it figure out what I
Hi, staff how I can to make a custom indicator that use the data from two cross, EURUSD and EURJPY? Thank you for all help
Everyone who is not good at coding has probably faced the problem of missing one or two functions to get a grail in their trading system) We'll fix it, fix it, fix it
Hello follow developers, I want to display mt4 account information on a website. Info like: account balance, opened trade and much more. Please anyone know where to start from
[Deleted]
I am writing mql script to look for any change in the file and if it detectes any change in the file then it performs some trading function But after the mql "FileOpen "call desired file becomes unusable by other application even with "FILE_SHARE_READ" flag. What I am doing wrong or this is how Mql...
Hello everyone, I would need your help with my EA. I would like to send when the purchase conditions are met, at the same time a "buy" order and a "buystop" order, and when the sale conditions are met , I would like to send a "sell" order and a "sellstop" order ... it's been a while since I tried
Hi All, I couldn't find a more appropriate forum category to post this to so please forgive me if I'm not posting this in the right place. Anyway, I'm using MathMod to find the digital roots between numbers 1-9 of prices and that works perfectly with this code: DigitalRoot =
[Deleted]
You can download Debug view from Microsoft to externalise anything in your code to help debug it . I have learned a great deal about MT4 from using this tool simply to output the results of some code so I understand what it is doing . For example you may see some code that you do not understand but...
I have a question. If I attach the indicator on the chart. This indicator has arrow with buffer signal. I want to read this arrow or buffer signal from EA. But I don't want to use iCustom. How can I read signal from the attached indicator? Any good idea
I started with MT5 and there I found a nice sample-script which shows account details such as leverage, margin limit, stop out limit. I now started also with MT4, but cannot find a similar way of displaying this information. I just want to be sure of these basic parameters when I setup my EA:s. Take
Hi, I have a set of charts that had evolved over time with different indicator settings. However, the template files I had originally created for these charts have not been updated recently and do not reflect the latest chart configurations in the terminal, of which there have been many. I loaded my
Hello, wish you all good new year 2021. I want to use CCanvas::CreateBitmap to show a Bitmap on Chart. The Bitmap is loaded by: CCanvas::LoadFromFile Unfortuntely, i get always File not found (5002) returned. The Bitmap definitely is in the mql4/images folder. I checked out various path values
I installed mt4 on a windows vps and also an expert on the mt4 platform. Due to the fact that sometimes there is not enough money, I receive many messages from the broker's server that there is no money. The broker warned me that he would disconnect me if I did not do something. What could be done
Dear Friends I just build an EA for autotrade. But I cant upload it to Market due to this Error 131 occur. Please help me to resolve this. What should I do for overcome this Error. thank you.
hi guys probably is my mind + holiday = devastated , but is possible mql4 not enter in for ?? i have this part of EA int OnInit () { ChartSetSymbolPeriod ( 0 , Symbol (), PERIOD_D1 ); ArrayResize (Median, 280 ); ArrayResize (HL, 280 ); ArrayResize (HO, 280 ); ArrayResize (OL, 280 );
[Deleted]
Over the last 2 years I have posted on a number of forums trying to discover why the platform freezes when selecting"Indicator List" or "Object List". I have not received any valid answers. There have been only a few kind suggestions from only a couple of others who have experienced this, but none
I have deleted a job in error. I have contacted the Service desk to try to get it reinstated. If you were the developer working on this for me, then please message me. Sorry
Expert advisor ; 1-When conditions are met while a trade is open, it will re-enter the trade in the same direction. 2- It will update the TP / SL levels by calculating the average cost according to the trades opened. How can I add these features
I am a complete noob to building indicators;however i have searched throughout mt4 forum maybe i can find indies like this or similar already built but to no avail. read up some things and tried building one myself ,ran to all types of errors. what i have done so far by using mql4 refernce
How does MT4 tester considers the spread? Say I've inserted a 2 pips spread in the tester - does it adds 2 pips to Bid rates? does it perform the test as if the spread is 0 and subtract the 2 pips value from the P&L? TX
double dblNormPrice( double price, int digits) { return ( round (price/dblTickBase(digits))*dblTickBase(digits)); } double dblTickBase( int iCnt) { switch (iCnt) { case 5 : return ( 1 / 100000 ); case 4 : return ( 1 / 10000 ); case 3 : return ( 1 / 1000 ); case 2 : return ( 1 /
This is my first time trying to code an indicator, I can't seem to get my indicator to show on the chart. Seems like I'm getting some of the logic wrong, can anyone help to see through my code and tell me what I'm doing wrong. I know my calculations are most likely off. The indicator is supposed to
  EA help  (3)
How can I get EA to continue entering consecutive trading if there is no TP? It should update the tp score according to the average cost in each successive trade
Add Vline to chart for testing.. void OnStart () { //--- // Object On chart name = sName; string sTemp = "Vertical Line 55321" ; string sName; string sAfterIteration; datetime time1,time2,time3,time4,time5; datetime time6,time7,time8,time9,time0; int iType = - 1 ; string sType; ENUM_OBJECT iNum;
  multiple signals  (1)
how do you subscribe to multiple signals
I developed an EA for EURUSD only and it is working exactly as expected on some brokers. but when i tried it on exness, it started generating errors because of EURUSDm there. i do not want to use a user input field for currency pair selection. how can i resolve this issue
Hi all, I'm trying to code an ea that opens only one order after the cross of two averages; pull back strategy on the retracement of the two candles. I can't find a code that opens only one order for each cross even if a second condition of a pull back occurs. bool OneOrder() { int i =
I am seeking a kind of bar ,here I call it Price Quantity bar. Like time bar consists of time, tick bar consists of trades, volume bar consists of shares, Price Quantity bar consists of pips. Construction of Price Quantity bar, the basic unit of price quntity bar is just one pip, when price move up