MQL4 and MetaTrader 4 - page 13

To post a new topic, please log in or register
1stDiablo
Hi Since 3 days i am working on getting MT4 running on Raspberry Pi 3 (os: Raspberian) .  Installed exagear and wine... Check. But every Installation of MT4 turned out as MT5. Don't know  why.  This was very strange for me. The setup was called MT4, the desktop link was named MT4, but the real...
Hi all, I'm working with EA "Best Scalper" on MT4. In order to understand what this guy is actually doing, I'm running several currency-pairs 24h with 0.01Lot. That creates some interesting data. To go more in detail, I would like to plot single trades by having a logfile for each (txt or xml would...
Hi, Is it possible to execute concurrent statements in mql4? Please advise. Thanks.
Hey guys, I searched in the BillWilliams.mqh for the Fractals indicator and I found some fragments of it. But this kind of coding (with classes etc.) is way beyond my knowledge. Can somebody tell me where I could change the original arrow-wingding to a symbol of my choice? These arrows are too...
void start(){   int    i=0 ,nCountedBars;        //i=0 added instead of just i, in order to get rid of warning when under an EA template   bool   bFound;   double dCurrent;   nCountedBars=IndicatorCounted();//---- last counted bar will be recounted...
I found this indicator, I have tested it live and in the strategy tester and it gives good signals, however it gives a delayed signal of two bars, I would like if someone could modify the code to make the signal appear at the close of the bar 0 , and not after 2 bars.
I have an optimizated EA. It is profitable but on live account is negative. I don't understand. Is back testing totaly lie? You can see the result: https://www.mql5.com/en/signals/451038
  Supertrend -> Icustom (12   1 2)
Hi I have read many threads about this, but i still can find a solution... I wanted to try this common and very popular indicator, the "supertrend"...but still not finding the right way... actually I'm in stall with this code... double val_super_trend_up = iCustom(NULL, 5, "SuperTrend_plus", 10, 3...
I do not understand why this code is causing an error about a FIFO violation. void CloseAll() {   bool resultClose;      for(int i = 0; i < OrdersTotal(); i++) {      if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {         if (OrderSymbol() == Symbol()) {            switch(OrderType())...
pls i want to ask is it possible to remove automatically remove an EA from mt4 if more than one ea attached with different name expert something like ExpertRemove() if another EA is detected... or return(0) if more than 1 expert attached....thanks
Help please. I have calculated the average price using an exponential moving average on 5 min time frame. Where sym is the chart symbol because I am trading multiple charts with an EA attached to a chart. See below. map = iMA(sym,5,3,0,MODE_EMA,PRICE_MEDIAN,0); The values are different from the...
hi i have a problem with my trailing stop function in here in the code below i just want to open a buy order then use the trailing stop in it but simply its not working and doesn't modify any orders. i would be thankful to pick your brain input bool use_trailing=true;input int...
Hello, I have the need to download MetaTrader 4 for development purposes.... I tried this link https://www.metatrader4.com/en/automated-trading/mql4-ide, where I got the file mt4-setup.exe; but once clicked on it, and finished the installation procedure, I found MT5 instead of MT4. Why ?
Simple question that could spark various discussions.
  Coding (4)
Hello everybody, I just wanna ask some help in coding this strategy: {If candle 3 close and the RSI crosses below level 20 and candle 2 close below RSI level 20 and  candle 1 close below RSI level 20}; open SELL position and opposite with the BUY position Thank you very much. I hope that somebody...
I use new compiler - no error. When I try to run it, or drag it into the chart, it says that "is not expert and cannot be executed". Any idea? Note: Tester - working fine.
Hi, I'm trying to code a stochastic for M1 which take the data of M15. Somehow it doesn't works. been trying to figure out. Any senior could help me. thank you!! Here's my code          iMA(_Symbol,PERIOD_M15,50,0,MODE_EMA,PRICE_CLOSE,i)>iMA(_Symbol,PERIOD_M15,100,0,MODE_EMA,PRICE_CLOSE,i)...
Hi, can someone help me out how i can get the number of total trades make of an ea based of magicnumber ? Is there a function i can use and than i will show the number as an comment? Like this:  Total trades: <<number of total trades made by the ea>>
hi, please help me i have probleme with weekend when i draw line after specific time and i want exluding weekend from my range i have 2 datetime extern datetime StartTime=D'2018.05.29 15:20'; extern datetime EndingTime =D'2018.07.23 03:45'; i want to calculate time between 2 datetime starting and...
Hi there As i am not a programmer, even though it s an easy "task",i will be grateful for you guys to help me. I need help for making the arrow appears on the chart above/below the candle everytime 2 of my indicators meet the requirements. I will speak in detail after i will be contacted. A simple...
  Adding Alert (7)
Hi Mentors, Would greatly appreciate if anyone could help me to add alert to my indicator //----------------------------------------------------------------------------------------input string __________1__________="xxxxxxxxxxxxxxxxxxxxx";input string __________2__________="=ARROW CODE=";//ARROW...
i would like to add a new step-mode like if last candle was bullish or bearish open new buy position / new sell position something like: addposmode==5 &&  Bid>=highestshort+pipstep && last-candle (1h timeframe) was bearsih addposmode==5 &&   Bid<=lowestshort-pipstep && last-candle (1h timeframe) was...
  Highest (4)
Hi Guy, I am learnig and I don't know how I have to code the previous highest of 1 day to trigger the Entry. I used  this code in declarion of variable: int HighDayBefore= iHighest(NULL, PERIOD_H1, MODE_HIGH, 24, 0); and then the array double HH=High[HighDayBefore]. But it doesn't buy at that...
hello, please in MT4, (i.) can multiple indicators(4) be coded within another Indicator, Is it possible . Any specific examples. example , BB, MACD, RSI  , MA  CCI.(All in one). (II.)In indicators can the syntax,  'indicator_chart_window' and 'indicator_separate_window' be used in the same Indicator...
My script looks for a couple of trendlines with specific names and draws another line on top of it, which can then be seen by an alert function. I am able to execute that script on the current chart, but I want this to do that on every chart. How do I do that? #property copyright "Copyright...
Good morning everyone, Is someone can help me understand the difference between : bands_shift [in]  The indicator shift relative to the chart. shift [in]  Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Thanks a lot for...
Good afternoon, I would like to ask for several guestions. For example I have actual Bid price=1.0050 and I set sell limit order for price=1.0090. In Ordersend() function I adjusted slippage for 3 pips (broker has 4 and 2 points). Prices will go up from actual price 1.0080 subsequently: 1.0080->1...
The purpose of this thread is more personal ... At some stage (some 4 years ago, posted it at this post : https://www.mql5.com/en/forum/175938/page17I ) coded one variation of an indicator that I named TMA centered. After that somebody shortened it's name to TMA and ever since I am receiving emails...
Hi I am writing an indicator that draws lines on a separate window, also should draw arrows to indicator buy/sell on the main price chart. So I write the following code, but it doesn't draw, any idea why please? double CrossUp[];         GoUp[i] = Low[i] - Range*0.75;DrawBuyArrow(Time[i],GoUp[i],Red...
Hello all:) I've been working on several systems and I want to implement a function that would require a rounding process but not approximation, so far I've been using normalize double but I can't reach my goal with this function. Any ideas? Example: Turning 5.19 into 5.1 (Not rounding to the...