MQL4 and MetaTrader 4 - page 72

I have this code, which I'm must trying to show the daily drawdown. It generally works, but if the user goes in to change an input value, it resets the drawdown value. How can I get it to maintain the drawdown value? //+------------------------------------------------------------------+ //|
hi guys, i saw 2 different heiken ashi buffer numbers for 4 candle values while googling around how is that even possible! and which one is correct and how can i find correct buffer numbers from heiken ashi or other indicators?.... tnX for help in advance First Buffers: 0,4,2,3 double haOpen =
I need to make the EA work with only "one instance". I.e. I attach it to any chart for the first time and it works. If I then accidentally or intentionally attach it again to another chart, the second attachment should recognize that it's already running and do nothing. Leaving the label in a global
  Bad signals/service reporting  (218   1 2 3 4 5 ... 21 22)
I'm wondering, why so many users subscribe to this expensive SCAM GBP/YPY signal 1135? I subscribed, thinking it must be a nice signal with so many subscribers, and this individual(s) nearly blew up my account. Thanks, I reduced lots more than a half of what they recommended, I'm still alive. Well,...
In this thread I will try to describe about what the other forums and websites are discussing.
  PC slowing Down  (15   1 2)
I have been trying to optimize the slowing down of my EA and MT4 as much as i possible can and have found another way to do it but im not sure if i should or if its smart. Im running 28 MT4 and would need a few more. I just been reading about affinity and i was wondering if someone could maybe give
  erorr code  (2)
Hello friends I want to write a simple indicator as follows According to the close price of the week and day Or any time the amount of ATR of the same time Draw a line above and below the chart as follows high_line= close price+ ATR low_line = close price - ATR for mt4 #property
Hello everyone. I am studying MQL using chat GPT. I asked ChatGPT if I wanted to create a dialog where I could enter a number. At that point, I was introduced to a function called [InputDialogCreate]. This function was not available in my development environment. Does such a function exist? Answer
double Profit = AccountProfit(); for ( int i = 0 ; i < 0 ; i--) { double LowestProfit = AccountProfit(); { if (LowestProfit < Profit) { Profit = LowestProfit;
Hi, I'd like to know if open market order buy and sell at the same time with the same price (e.g candle open price) is possible
Hi. I use MT4 already more than 10 years. Recently I change my stile of trading and start using around 20 windows at the time. My computer start to behave extremely slow. A transfer between M15 and M5 takes around 30 and more seconds. I use Windows 8.1 Professional with 8Gb memory on a 6 cores CPU...
Hello guys, sameone know how to manage this situation? Basically in my ea before to open a new order i want check if i have another trade with that symbol open and in that case i want skip i new trade
In MT4, I buy one Ethereum for $1827.02 at leverage 1:1. My margin (as shown in the attached sceenshot) calculated by MT4 is half of the price ($913.51). Shouldn't the margin be exactly as much as the price (as I am using 1:1 leverage), instead of half of the price
Hello, please anyone help me write code in Mql4 for trailing pending orders . For instance when I open a buy position, I want my stop loss to be the same as my pending sell stop and trail them as market moves in an uptrend. Same for opposite Thanks
I have an indicator that tracks max drawdown during the day. I have it displayed on the chart with a text object. Problem is, that if the user changes an input in the indicator (to move the text to a different corner), I have to delete the text object and then it loses it's value. How can I create a
Hello! If I use this function double NormVol( double vol) { return ( MathFloor (vol/ SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_STEP ))* SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_STEP )); } and to normalize a double of 0.1294, it will result in 0.12 for a volume step of 0.01 If I
  tradingview code  (6)
hello guys I'm new here, could you advice me on how to convert trading view code to mt4 format
Persian farsi Hello, I wanted to send the following proposal and criticism to the creators of Metatrader in English. Thank you for your help and guidance. 1. Five shortcut keys in Metatrader F6 control is used to switch or jump to the next chart (next chart) if we have opened hundreds of charts in
Hi everyone when i trying to start the back test the maximum number of candle in back is around 900 (i get it with Command of Bar) how i can have access for more candle in past in the beginning of back test thanks
Hello boys! I've been looking for a long time how to distinguish the drawdowns and the various operations of the expert advisors on my account. if for example I have a total DD of $300, I would like to know if it's $200 from one EA and $100 from another etc. on the history it is easy using the
I will be happy if MT4 supports UTF-8 source files. Currently, MT4 build 6xx supports system locale codepage encoding and UTF-16LE. UTF-16LE is locale-independent encoding, but has the following problem: Some tools recognize UTF-16LE files as binary (ex. git).Not only tools but also some of web...
According to http://www.metatrader4.com/en/releasenotes/215, first paragraph 1. Increased the maximum size of custom tooltips for graphical objects to 128 symbols. The tooltips are set using the OBJPROP_TOOLTIP property. Yet there seems to still be a 63 character limit on the tooltip [per line]....
Hello all :) Sorry for my bad english, I'm a little French ! I have an EA that was coded by a programmer for me, it is perfect but there have a little problem. It's a hedging EA, it opens ASK and BUY at the same time every X pips, and sometimes, when it comes back to the same place, it opens the
[Deleted]
Hi there, If I have an object name how do i know which window it is in? THX!
Hi I do a code in mq4 to show an arrow when: The Macd is above the 0 level line and the candlestick has the lowest closing price of the last 4, it will show a buy signal. And when the Macd is below the 0 level line and the candlestick has the highest closing price of the last 4, it will show a sell
Hello everyone, I hope someone can help to check my code. I wrote my own function that counts the number of orders aggregated separately by the magic number. However, when I ran the Strategy Tester , I found that the function might not work as well. Here is what I wanted to do in the code. (I will
Hello everyone. Sorry for my English. This code gives me compile error. 'Class2' - declaration without type Class1.mqh class Class1{   private:      Class2         class2;   public:                     Class1(){};                    ~Class1(){};};class Class2{   private:      Class1...
  MT4 Beginner  (5)
Hi everyone, when I Analyse the market and then I colse the window, the Analysis is gone. how can I Change it? thanks martin
Hello, I hope that I am posting this in the right section. I've done so research of my own to see if I could find the solution online, but this doesn't seem to be such a big topic. I've found post of other who had the same issues, but no one offered any solutions. I figured I give it a shot myself
[Deleted]
The EA works on the live & demo markets but when testing it works on some markets but not other, what might be the issue