MQL4 and MetaTrader 4 - page 75

Hi; I am using this formula to calculate percentage: Profits= NormalizeDouble ((OrderProfit()/orderProf)* 100 , 2 ); (orderProf is preset to $200). It works fine, except it doesn't display properly: Any suggestions? Thanks a bunch
Is it normal? Or is it a bug? const int GLOBAL = 1 ; class CTest { private : static const int MEMBER; public : static void method(); }; const int CTest::MEMBER = 1 ; void CTest::method( void ) { int arrOk[ 3 ] = { 1 + 2 , 1 + 3 , 1 + 4 }; // OK int arrNotOk1[ 3 ] =
he charge me twice and didnt even give me the program! https://www.mql5.com/en/users/life101/accounting
Hello Guys, i am little confused in finding the total no. of opened positions. I am only seeing OrderTotal, which is total no of opened and pending positions. It's occurring in Mql4. In Mql5 we simply get opened positions by PositionsTotal(); and pending positions by OrdersTotal(); . If any one have
i wana open trade for exemple at 11:00:00 and 12:00:00 and 13:00:00 can some slove my expert plz #property version "1.00" #property strict #include <stdlib.mqh> #define MAGIC 94949449 enum TRADE_TYPE { BUY, SELL }; //--- input parameters input string TimeToOpen1= "11:15:00" ; input string
I need to receive a notification on my phone that the alerts pop up window has appeared on my laptop screen. I don't need to know what the alert is, I just need to know when it appears. What steps do I need to perform to accomplish this
Which indicator of mladen do you mostly use?
Hi everybody, I have an indicator that draw arrow up and arrow down as object on chart, I want to program an EA that trades by these arrows, I have two questions: 1-How can I find when these objects drawn?(how can I detect these objects?) 2-How can I find out difference between arrow up and arrow
this indicator is not auto refreshing alongwith the chart progress, thanks in advance //+------------------------------------------------------------------+ //| MAB_TD_Sequential | //| v1.2 |
Define the resistance and support zones: Determine the price levels that define the upper and lower boundaries of your resistance and support zones. Track price movements: Monitor the price action using the OnTick() function in MQL4. You can use the iHigh() and iLow() functions to retrieve the high
I'm looking for an EA I used a long time ago and somehow have never come across it again maybe it's not even on the EA store anymore. I was wondering if there is a way to access all the EA's I've downloaded in the past to see the names of them so I could search through them for it
Hi all .. I wanna ask ,, How can I Possibly to make "lotlist[]" in input paramater ?... example : extern double lotlist[] = { 0.1 , 0.2 , 0.3 , 0.4 }; but I can't because 'lotlist' objects and arrays are not allowed as inputs thank you: void BuyOrderVarying2() { int orderid = 1 ; double
Hello my friends. I'm having an issue trying to figure out how to make my management EA just stop the other EA's in the platform from sending new trades after the target is reached. And wait for a set amount of time to allow trading again. The code i have now, pushes the automated trading button so
[Deleted]
In the MLQ4 Reference, there is a pre-defined variable called Point with the followingdefinition: "The current symbol point value in the quote currency." Beingnew to this world of trading, I was wondering if someone could provide a betterexplanation of what Point is, maybe in laymen's terms. Thank...
Since a long time i am using (1a) for ( int i= OrdersTotal ()- 1 ; i >= 0 ; --i) // Suggested by most of the experts for looping through orders, but whenever i come to forum for some guidance i often find that people are using (1b) for ( int i= 1 ; i<= OrdersTotal (); i++) // from the documentation
Hello community, I have a problem: When i trailing stop, sometimes i get error 136 (ERR_OFF_QUOTES). Example: Case AAPLm (Apple stock). But In most cases it works fine. Is there any error in my code or is this just my forex broker error? I am using exness broker, demo
Hello guys i developed an EA based on support and resistance using a support and resistance indicator that draws lines on the chart. The condition for a buy is once price touches the support line at the close of the candle it buys and if price touches the resistance line after the close of the
Hello, I wonder if i can use OrderMagicNumber() instead of OrderTicket() for closing the current position? OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),Slippage,Red); return ( 0 );
How can I show in MT4 the total LOT of all open sell orders (but not the pending orders)? Below script works perfectly to see the amount of sell/buy orders. But now I'd like to modify so I only see the total sell LOT size. Could you please help me? EA code: (this works for counting amount of...
Hi, Is it possible to get the current GMT value of New York using MQL4? I am based in UK and right now, NY is GMT-4. However, depending on the time of year, it is GMT-5. Obviously, I know this but, does MQL4 provide some kind of capability to interrogate and access the current GMT values for other
Hello, I'm trying to push object to array which function have to work with template. For now, I test with object. But when to push object to first element of array, the old one loss data after move. Please help me to keep data of object after move. Thanks very much! My test code is
This is a Moving Average Crossover EA made by Tom Whitbread. I have tried so many times to backtest This EA but it doesn't work. I could not find what is the actual problem in this code. Where is the problem anyone can find it? //+------------------------------------------------------------------+
Hey All I'm having a hard time telling if this version of the ASH repaints. Specifically with the signals "SuperSignalsPeriod". Indicator is attached Any help is appreciated, thanks
Hi, I just downloaded the new MT4 app on my mobile, because the old version didn't work anymore. My question is: I noticed that the new version of the MT4 app will give a sound with all the notifications including the messages from the 'community utility news'. I don't want that to happen, because I
void OnTick() { long ID = ChartFirst (); while (ID != - 1 ) { string Symb = ChartSymbol (ID); string TF = ChartPeriod (ID); string TrendlLine = StringConcatenate ( "Line " , Symb, " " , TF); double Value = ObjectGetValueByShift(TrendlLine, 1 ); Print ( "The
Hi, This robot logic is based on Tom Hougaards advanced school run strategy which he distributes freely to all through his telegram resource channel. We want the robot to enter the market based on a break of a specified range determined by a time frame, specifically we want it to scan the 4th 5 min
Hello and good day to all! I am new to mql4 and recently developed an EA. I tried to optimize the EA using strategy tester and it worked fine with good results But when I try to test a single set of inputs (that was found among the optimization results) the result is nothing similar to the one found
Hi guys!  I was looking for an automatic lot size calculator based on a horizontal line. All the stuff I have found are position size calculators, but then you have to manually enter the lot number in the Red/blue chart with the buy/sell buttons. I need something that automatically calculate the lot...
So, I want to create a EA to communicate with my Notion DB each time I close a trade. My main problem is that I cannot connect to my Notion DB; server throws me a 5203 error. Don't know if I am doing the headers wrong or what else I am doing wrong. Here is my code: #include <JAson.mqh>; extern
Hey guys, im trying to draw an arrow that will appear on top of the candle sticks and not be hidden behind them as shown. Here are the Object settings that I am using. Any help on how they can appear in front of the bars?! Many Thanks string drawArrowSell = "SellOrderArrow-" +