MQL4 and MetaTrader 4 - page 67

To post a new topic, please log in or register
Hi, I'm trying to use a bitmap arrow in my indicator but the background of my arrow hide the prices candle and the back color : Is there any way to make white as transparent ? Thank you for your help, Ghen.
Hello, I want to create an expert advisor to run a 'backtesting' MT4 His function is very simple. First, I'll set two times "(hour/minute)", for example, input_1 = 13:00 , input_2 = 13:25. As an output I would like to have an answer if the price during this period has gone up or...
Hey guys, I’ve been having this problem which I thought only occurred because I was using an old laptop. I have since upgraded and am having the exact same problem. Any help would be much appreciated. When I first download MetaTrader 4 or 5 (occurs to both platforms), I go to “Open a Trade Account”...
hello. Some one cane help me to write a simple code that can i use to summation elements for an array. tks.
if (MathAbs(Ask - OrderOpenPrice()) >= 100 * Point){        Alert(Ask, " ", Bid);        res = OrderClose(ticket, lots, Bid, 3);}if (MathAbs(Bid - OrderOpenPrice()) >= 100 * Point) {        Alert(Ask, " ", Bid);        res = OrderClose(ticket, lots, Ask, 3);} I have been using this to close any...
Hi,  I’m brand new to mt4, I’ve coded a EA without warning or error and I go to test it but I don’t see any input tab in Expert properties.  What could be the problem?? Thanks for any help!
I code an EA that use an indicator that I haven't source code of it, This indicator give signal by appearing arrows but I have a problem with this indicator, sometimes when I changed time frame and so EA reinitialized, I see that chart refresh and new arrows appeared and EA act as programmed, How...
Hi All, I am trying to get the outputs for the Heiken Ashi indicator on the previous candlestick but I was unable to find a method that was clear to me. What I am attempting to do is determine a shift in direction, by checking if the current Heiken Ashi candle colour is different from the previous...
#property copyright "EquityHedgeGraph - by transcendreamer - origins from Xupypr"// building two equity graphs, one vs another, to seek hedge opportunities visually// each graph may represent a single instrument or a lot-adusted basket// spreads and swaps are not counted// Total = Side_A -...
Is there a way to recover the pop up alerts when mistakenly closed?  (MT4) Thank you
Hi, I really have a question for technical support, but as MetaQuotes don't  deal directly with clients and link them to this forum I am posting here. I am hoping someone here can help shed some light on this as my broker is unable to help with technical issues relating to MT4. And to pre-empt...
Hi All, Hopefully a quick question.  How do I create a line of comments in the Input Tap of the Property Windows for the input variables. For example if I want to indicate that input variables below a certain line should be changed just in special market conditions? Thanks, MG
Hi All, I have the following code to insert a down pointing arrow in my chart    string fibo_max=StringConcatenate("FiboMax");   bool high_value_arrow=ObjectCreate(0,fibo_max,OBJ_ARROW,0,date2,highest_value);   if (high_value_arrow)   {   ObjectSetInteger(0,fibo_max,OBJPROP_ARROWCODE...
Hi guys, Is there a way in MT4 to send several orders at the same tick time without waiting for each order to be executed.. I mean market orders, not pendind conditional orders.. THANKS
this ea closes all open trades on all time-frames. Just put it into any time-frame you have currently on the screen. Very helpful when you don´t want to close all the trades manually. hope it will help.
The signal I am subscribing suddenly became not connectable since this week (5th Aug 2019). The trades are still carrying on on the signal's page. The message "Signal - connecting to signal server" is just repeating in my journal. The other signals I am subscribing remains fine. I have contacted the...
Hi, first time posting in here. Can someone tell me I where I am going wrong on this EA as I cannot figure it out.  This would be a great help to my learning to code.   EA should be marking SMA cross over but is not. I cannot figure it out.#property copyright "Copyright 2018, MetaQuotes Software...
Hi guys, Forgive me I've just started coding in mql4 last week....I have also tried searching the forums and reading the reference materials but am so confused. My question is: How do you change the source of a moving average to be something other than 'PRICE_CLOSE'/'PRICE_HIGH' etc.  For example...
Hi , I am working on this indicator with the goal to multiply the RSI value with the (body) size of the current candle (or the equivalent of what was the current candle for the previous bars). It works in mt4, but when I add property strict the code still compiles but no longer outputs the buffer...
Hi all I have modified the below MQL4 code so I could transfer values from MT4 indicators to excel and I am struggling to obtain values from this indicator Casino_HAS_PIN_v3 which I have attached because it keeps putting 2147483647 in all the cells. I would be grateful if anyone could please help me...
Good moring, I'm trying to trasform my EA in a Grid system. My EA opens sell and buy orders but I'd like to ass some code to do this: -EX: I had some orders opened on EURUSD sell and buy. I'd like the EA close all orders when a certain level of profit is reached (suppose 1€ of profit) Can someone...
I would like to open an order at the price of the close of the previous candle, is it possible to do that in some way? When I try to do it, mt4 gives me error 138 which means that "the broker replied with a “Requote” signal to your expert advisor’s OrderSend() function. That means that the price...
My vps server restarted and upon booting up the text on my computer changed, desktop icons became smaller and worst of all MT4 resolution is now crap. Any ideas?
I am currently implementing an EA that pauses after it has closed a position, and the code is down below: if (OrdersTotal() == 0 && TimeCurrent() >= OrderCloseTime() + 1200 ) {            if (iRSI(Symbol(), 0, 14, PRICE_CLOSE, 0) <= 30 )                ticket = OrderSend(Symbol(), OP_BUY, 0.01, Ask,...
I am not very familiar with coding I have a script to force open 2 position or make 2 pending order on certain price Problem 1 : I can't use that script on broker with suffix, eg : eurusdb. That script make looping, so my position become more than 2. but i can use on broker with symbol like, eg :...
I'm experiencing the problem of 'echo' when placing an order... I try to set one stop order but the EA always set a lot of orders... Very weird. I assume it will be the fact that the ticks come very quick after each other and there needs to be some kind of delay after placing the first order, but I...
I have developed this indicator which generates Arrow buffer... i want to check if last buffer call was before 5 candles ... see my attached screenshot... what i want is to check if previous generated buffer was > last 5 candles... how do i check that?
Hi, I'd like to test an own expert advisor using several timeframes. Parameters would be: Shorter_Period = (ex.M15), Longer_Period = (ex.H4). So the strategy will run through all of the periods between. So then, we're going to consider this is for example applied to MACD indicator: double...
  System Sync (1)
This systemwill give you profitable signals on any markets. It works on alltimeframes. You will need the free MetraTrader 4 software and copyall the following indicators and templates into the software. Youwill also need the free QChartist software. We will buy dips onuptrends and sell peaks on...
I have been coding and realized that at some points the Highest High of the time periods fluctuate in interesting manners.  To make my question more understandable:  double d1highest = High[iHighest(_Symbol,PERIOD_D1,MODE_HIGH, PERIOD_D1, 0)],   //The Highest Point that the price has reached in the...