MQL4 and MetaTrader 4 - page 97

Hi all : I try to enable or disable EA in my code , and I use the code from here . As a script file , it works fine for me, but when I try to convert it into my indicator with a just very simple modify, it wont work, the setup popup window just stay there and the "Allow Live Trading" checkbox stay
when i try to download anything from the market on mt4 this is what happens. this has never happened to me before
Below is the code. It is for some reason isn't printing the labels (up and down arrows) at runtime. If I change the timeframe and comeback to the 5 minutes again I see the label getting printed. I want it to print at runtime as the candle closes and send the alert. What am I missing here
Could someone please add .i suffix to this script? Much appreciated
Hello all, This indicator is based on the average Price v3.0.mq4 by Joca - nc32007a@gmail.com http://www.mql5.com . It shows the "BreakEven" line on the chart. I have updated it with the insertion of Multiple MagicNumbers and the cumulative (between them) BE line level. I am here to ask if
We know OrderOpenPrice() and OrderClosePrice() (which is Bid in case of Buy trade and Ask in case of Sell trade), but I can't find an option to know the last price when a trade was modified - let's call it OrderModifyPrice(). Well, MQL4 is pretty old now and it's possible that I'm missing something....
[Deleted]
hi this may be a silly question, but i have loaded 10 yrs worth of data into metatrader and each time i want to view older dates e.g. 2003, i am having to scroll all the to 2003. But im almost certain that some bright spark metatrader developer would have already thoguht about this and provided a...
Hello ! Today I have met very vierd issue : 1. I have exactly the same versions of my EA : both at two Windows 10 : VPS and my laptop. 2. EA is for immediately closing all positions after daily drawdown limit/ profit target reached. It is aimed to prevent me from trying to open more positions after
Hi lovely community :) I'm having some issues with Strategy Tester and really need a hand. I downloaded the chart history of the last 6 months and exported it to my MetaTrader 4 But when I start the strategy tester, the chart starts to move and the Expert Advisor does not open any trades. what
At the outset, I am new to MQL4. I want to create an indicator in MQL4 . What I want is that at each bar close it will calculate the not calculated bar/s and see if the indicator condition is met. If it meets the condition then it will plot an arrow above the candle and send an alert. This should
  Copy Trade  (6)
I am looking to copy trade expert same account with basket profit to close both trades .   when the mother expert open sell order - copy trade open buy = close both when make profit  .  Example : First chart Mother expert  Sell GBPUSD  Second chart  copy  Buy EURUSD . target basket profit 0.10 close...
Hello, I'm a bit puzzled by AccountFreeMarginCheck sending an OK (positive value), but then OrderSend not being able to open the order because there's not enough money. Long story short, I'm testing an EA with $1 balance, and before calling OrderSend I'm running some checks on spread, correctness of
[Deleted]
Hi everyone, I'm still a noob so please excuse errors. I'm trying to calculate ATR of 1H based only on certain candles defined by input. For example if input are 8,18 and 10, then the code will calculate the true range of all 1H candles from 08:00 AM to 18:00 AM in the last 10 days and then it will
hi is there any free tool .. script.. to change balance on MT4, which works for IC market
IMO, there appears to be no Complete EA within the mql4.com's Code-base or Articles for that matter of fact. There always seem to be something missing. I'm going to use the definition straight from the source allot of people recommend for learning to program mql4; the Book . In addition to that
[Deleted]
Hi, I'm learning mql4 and I coded an indicator that plots a line equal to the current open price of any higher timeframe. This is the code: // Setup #property copyright "Ironhak" #property description "Indicate current candle open" #property strict #property show_inputs #property
Hi everybody, I'd like to output the price oscillation of any assets to a soundwave noise like a synth. I imagine a sort of EA which find the absolute low (price level at 0) and the absolute high and it creates a sort of keyboard with notes and octaves and when price moves you can hear the sound
hi there.... Can you change the server, login and password using a script? Is it possible to use a script on it? thanks...
Hello, i have this code .. does somebody know how to reach more historic bars? void OnTick() { //--- ChartNavigate(0, CHART_END, 0); Print(High[2000]); } this gives me error but with usage of High[1000] it works. I tried that ChartNavigate funciton but it does not help. Thanks
hey am not very experienced and am just wondering how we could know an ex4 produces fake backtest does the below picture mean this is a history readerr
  Larry Williams Greatest Indicators  (81   1 2 3 4 5 ... 8 9)
Hello, Attached is the indicator that Unca requested for Larry Williams Greatest Swing Value (GSV) Indicator: "I would like to ask somebody to create indicator of Larry Williams. It's not actually indicator. Larry Williams introduces this as a concept in his book Long-Term Seecrets To Short-Term...
Hello friends, As you can see in the picture, I collected 600 points for Buy position in EURUSD currency pair, but it gives me 5.43 rather than 6$. My code for exiting is: if ( OrderSelect (( int )BuyOrder[x],SELECT_BY_TICKET)== true ) if (OrderProfit()>=OrderLots()*TakeProfit) if
I need the ATR data of each symbol that they put in a symbol string, for example ("EURUSD,GBPUSD, USDCHF "), or I did it this way but it doesn't bring the data correctly and I can't do the iCustom in OnInit either because how does it save the data of the for?? please help The code: void SendAlert(){
Hi This is a simple fractal indicator.  MAIN QUESTION : Why getting  "array out of range" error only when using "#property strict" ? //+------------------------------------------------------------------+//|                                                     Fractals.mq4...
[Deleted]
I am building an EA that involves 2 different scripts can someone help me out with a way to make reference to them and collect boolean data
  Range price  (2)
I want make range price to buy and sell for pending order and I will only add one viger for example 1.00000 and if range price > 1.00000 and <1.00025 this buy and if range price addition will always add 25 points examle if price for EURUSD AFTER adding 25 points > 1.00025 and < 1.00050 and so on
Hello, I can no longer see the expert advisor symbols on MT4. Instead of symbols I see only squares. Can someone help me
  Orders Report EA  (7)
hello guys hope you're doing good , i'm new to mql4 , i'm trying to do a simple expert expert advisor that counts the number of trades each expert advisor did historically using the matching number, int OnInit () { return ( INIT_SUCCEEDED ); } void OnTick () { int i; int exe; for
I'm looking for a volume profile indicator for MT4. Any help is appreciated. Thanks Peter
I am running a scalping strategy and with all the chart trade arrows, my chart is unreadable. Is there a way to remove them