MQL4 and MetaTrader 4 - page 235

My code: #include <stdlib.mqh> (...) Print ( "Last error on " + _Symbol + ": " + IntegerToString ( GetLastError ()) + ": " + ErrorDescription( GetLastError ())); The log panel prints: Last error on EURAUD: 4108: no error I check up on the error code list
Hey fellaz! I hope you all are doing great. I am willing to create a news indicator. I just want to know that from were to start.? Or what things are needed when working on a news indicator. I know there are alot of news indicators Available, even for free. But I want to build it with my own hands
I'm fairly new to trading so apologies in advance if this is a dumb question. I'm playing with an indi just now meant for binary trading but which seems to pick fairly profitable entries. The problem is, when it's left to run for a prolonged period of time (all day for example) it starts to produce
  Strategy tester  (14   1 2)
Is it possible to save a chart after I did a back-test in visual mode
Im testing my EA in mt4 all the way the graph is good with very good profits in a steady line but at the end of the backtest a brutal fall happen why is that ? see image attached
i can't see any problem on my codes, can anyone help pls? if (signal == "buy" && OrdersTotal ()== 0 ) OrderSend ( _Symbol , OP_BUY, 0.10 ,Ask, 3 ,Ask- 200 * _Point ,Ask+ 200 * _Point , NULL , 0 , 0 ,Green); if (signal == "sell" && OrdersTotal ()== 0 ) OrderSend ( _Symbol
Hello everyone, I use a function to calculate the optimal lotsize for any trade, the return value is as seen below. This function is supposed to deliver a 0.XX double so that the OrderSend function can properly open an order. double optimalLotSizeRounded = MathRound (optimalLotSize/MarketInfo(
Hi Guys, I got an MQL4 program, and am running it in a Demo Account. It works perfectly without issue. When I run it in a Live Account, I am getting a black screen as attached. In typical fashion, the Platform guys are blaming the EA and the EA guys blaming the Platform - so I'm stuck in the middle
Recently the toolbars have begun disappearing whenever I restart MT4. Any idea why? They used to stay put. Thanks
Hello, I would like to add an alarm sound to this zig zag indicator Thanks for your help
Hi, I want to read Trend line value (price) Below Trend line Name has some time value(time stamp). But I want to ignore the time stamp and just want to read the 2nd value. How can I read the Object price2? double price2 = ObjectGet( "LINE12" , OBJPROP_PRICE2 );
Most traders either fall into the technical analysis camp or the fundamental analysis camp when describing their trading strategies. However, both technical and fundamentals play pivotal roles in driving the fx market. Incorporating both types of analysis into an EA can be difficult due to the...
Hello, I am still learning and am writing an EA. The simple format of the trade logic is if the absolute value of Open[1] - Close[1] is greater than a defined minimum value open an order. I don't use this in isolation - there are other filter conditions. My big problem is it works fine until I have...
Dear All Please edie my code about -my EA Stoch nornall why I have 1: OrderSend error 130 and OrderSend error 138 not good please help me about it thank you beginner //+------------------------------------------------------------------+ //|
double task = MarketInfo(Symbol(),MODE_ASK); double ilastBuy = FindLastBuyPrice(); if(FindLastBuyPrice() != 0 && pipsDistFromPriceBuy(FindLastBuyPrice()) <= -10 && CountTradesBuy() >= 1 && FindLastBuyPrice() - task >= 10*Point() ){ OpenBuy(); Print("Down buy"," add
Hi I have a Zero Divide Error popping up in 2 areas of my code base, the just of the calculation is to calculate gradient. The differences between the Run (x axis, int bar position) is calculated and when that difference is 0, the algorithm automatically changes the variable to 1. However I am still
  Learning curve  (5)
Good day. Please help. The code doesn't give a Alert for "Signal1" or "Signal2" Dont know what I am doing wrong: void OnTick () { if (!CheckIfOpenOrdersByMagicNB( 111 )) { int Orderbuy = OrderSend ( _Symbol ,OP_BUY, 0.01 ,Ask, 10 ,Ask-( 1000 * _Point ),Ask+( 200 * _Point ), NULL , 111 ); }
Dear all I want to ask this code is not working in mql4 ChartSetInteger (chart_id, CHART_BRING_TO_TOP , true ); I don't know why
Dear All Ho I Fixed lot zise=0.01 in my order (EA code) no need to increate lot zise Kindly to be advisor // extern int MagicNumber= 10001 ; extern double Lots = 0.01 ; extern double StopLoss= 0 ; extern double TakeProfit= 50 ; extern int TrailingStop= 0 ; extern int Slippage= 3 ;
Hi everyone, I am coding an ea and want to backtest it by avoiding all major news 30 minute before, can anyone tell me how to find past news bars(from 1999 to 2021 if possible) with code? Thanks in advance
Hello, This is my first post here and in general very new to the subject. Over the last couple of days I was spending some time getting into trading with EA and I have the problem backtesting the robot on 1 minute time frame. Meta trader 4 It only tests up to last 4-5 days, is there a limit of past
Attempting to install a product purchased in the market, mt4 gives the error message : failed to save product to '' where the problem I presume is the blank target string at the end. Can anybody suggest what the problem might be? Sezor
  Humour  (3875   1 2 3 4 5 ... 387 388)
Let's humour here, because in the old thread "I can't hold on any longer
  change in coding.  (13   1 2)
Hello Everybody; I have a robot program below. I want to make changes but couldn't succeed. Working system of the robot; trading in daily candles. When the daily candle is closed, the next day when the candle is opened, it opens both buy and sell. Puts 10 pips of profit. I do not want it that way
Hello, i want to use Renko, I try to install this : <Link to market product deleted by moderator> but it seems impossible... download can't start please can you help me
Suppose an old bar, say index 15 is bullish. The timeframe is 1H. I want to probe for the state (bullish/bearish) and possibly other data (iopen, iclose, EMAs etc.) on each 15M bar that existed inside that one bar when it happened. How can I achieve that? TIA
[Deleted]
Sometimes the function OrderOpenPrice return number with more digits than it should be and that's make problem because when i use that number inside of if statement like "Ask==OrderOpenPrice+50*pips" it doesn't make true the condition to execute the code at the brackets of if statement.I try the...
Hello Can you guys see what I am doing wrong? When I run mt4 on my desktop all is good, but if I shutdown the desktop it disconnects all. I am renting the mql5 vps... Thx Matty
Dears, This is presently my MT4 desktop, that I am looking to better organize. As you can see I have vertical windows with different widths and a lower horizontal indicator window. MT4 has only options to cascade, tile horizontally or tile vertically all at once, so that if I select one of these
The MetaTrader 4 platform update will be released on Thursday , December 10, 2020. This version provides error fixes and platform stability improvements. In particular, the update fixes an error in the optimization of data connections between client terminals and brokers' data centers. The new build