MQL4 and MetaTrader 4 - page 195

To post a new topic, please log in or register
Wondering some help here,  I using a function controling time filter . It means, trades are placed according to time set.  However, struggling to add days to the week also.. For example. Trade will be placed Wednesday to friday ..start time and end time.  Function has start time and end time.working...
  price point (4)
Wich is the best and fastest way to get a result in Points? maybe 30, 50, 70 instead of 0.0000 actually i'm doing like this (price_TP - price_buy)*100000; it works but maybe is not the best way... i try doing *Point but it doesnt look working
I'm using OBJ_BITMAP_LABEL objects as buttons, but I want  some of them to react when clicked and some of them only when pressed. Example: I want a custom button (OBJ_BITMAP_LABEL) to behave as "MT4 One click trade", it is, when pressed, I want it to change state (to 1), to be shown as pressed, and...
could someone please help. I am trying to test my EA and I always get errors 130 and 4051. this is the part of my EA which deals with sending and modifying orders. could anyone please help.        StopLossShort = StopLossShort+Spread;      StopLossLong = StopLossLong-Spread;            if(ticket ==...
Measures path of least (or most) resistance by comparing the bars range (Open to Close OR High to Low) to the volume. It can also give the reverse ratio (Volume divided by range instead of Range devided by Volume) to get the path of most resistance. The two Min settings are just to filter out...
Hello I have this code for my test button: int OnInit()  {      if(!ButtonCreate(0,InpName,0,150,150,200,100,InpCorner,"Press",InpFont,InpFontSize,      InpColor,InpBackColor,InpBorderColor,InpState,InpBack,InpSelection,InpHidden,InpZOrder))     {     return(0);    }   ChartRedraw();...
Hello all, I an posting this in hopes someone can tell me the problem with this code. I have been writing EA's a few years now and in my efforts to find the cause of, or  fix phanthom trades I came up with this template for EA's. When I say phanthom trade I mean when code specifies > or < but trades...
Hi, The News tab on my MT4 platform is empty and shows no data. How can i get news feeds to show up on the terminal?
Hello all, I have a little trouble figuring out how to "link" the EA's multiple orders. Since I have zero coding skills, I am using FxPro Quant to help visually outline the EA's functions and then I implement small corrections directly in the generated code. So far, so good. The EAs are working fine...
Hi guys, I recently finished my first EA (thread can be found here) with a lot of help from you, thanks! I have done a bit of backtesting, so far so good and I have moved onto demo testing. Here is where the issue lies. The first position opened by the EA was running well, doing everything it should...
  Array double (6)
Hi  i would like to select for example all the last short orders and create an array done in this way order_short[number_by_order][properties]; for properties I mean: ticket, TP and SL, I will get it by OrderSelect and then OrderTicket(), OrderTakeProfit() and OrderStopLoss(); using a cycle "for"...
Hi, I am looking for scripts that opens 10 buy/Sell stop orders in different positions. Pending orders opened. Before it moves up for example: order#1) buy stop EURUSD @ 1.2600 order#2) buy stop EURUSD @ 1.2610 order#3) buy stop EURUSD @1.2620 order#4) buy stop EURUSD @1.2630 order#5) buy stop...
  The new MQL4 syntax (57   1 2 3 4 5 6)
It's been a while since the Beta has been released, and I spotted a note somewhere, that the regular release might appear in a middle of January. Though I doubt it will happen, perhaps a few coders may feel interest in sharing ideas and problems they learnt with the Beta. Is it already meaningful to...
Since trying to download and run the new Windows 10 upgrade and failing, I now cannot run my MT4's from my Desktop without it coming up with Initialisation Error 4 Help please
//+------------------------------------------------------------------+//|                                                 Gold Smasher.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
hi guys, please i need a reliable and properly regulated broker,that has confirmed fixed spreads on its platform, all the ones i have used always increased their spreads abnormally, making it difficult for me to plan my trades well. any help will be highly appreciated.thanks. Williams....
Hi, I am close to converting an indicator from MT4 to MT5; however, the converted indicator is not plotting properly.  In addition, there is a "divide by zero" error on line 73/column 18.  Somewhere, there is a mistranslation.  What am I missing in the MT5 conversion, relative to the MT4 code?  What...
Hi everyone. I got in this comunity a Risk to reward ratio indicator for mt4 , I have made modifications and so far so good, the only thing bothering me right now is that when place TP and SL lines for calculations , every time I switch timefrime, those lines go back to the default position as when...
Hi there, Here's the thing, I'm developing an EA, I'm reading a custom indicator (WT_TMA) using iCustom as the usual, but it creates multiple instances of the same indicator at backtest, I've already change the indicator to other custom one to test it and it works fine, but using the indicator that...
This ea generates good results in my backtests. I use risk 50. Sometimes it busts, but the upsides are really high and come often. However, I can't get it to work; it's not trading in my real account.  Below are the default input settings: MagicNumber 9108 Hour_Start_Trade 22 Hour_Stop_Trade 2...
I want to study MT4 Datafeed API. Where can I download the document??? Thanks.
Hi there, Does anyone know if there is any widget to Android that shows information of the account and total trades that are running? Regards
Can someone help me with a repaint indicator? Thanks
Hi I know how to use Indicators in EA ,  But I want to have the indicator on the chart Also . is there any function for loading indicators to the chart automatically ?
I am still looking for a script to reverse a placed order. Anyone with it would most appreicated....
To get the point value per lot in deposit currency for any instrument i am using:       double pointValue = MarketInfo(Symbol(), MODE_TICKVALUE); However, for DAX30 on Alpari value is 10 times smaller then the one you get when you open a position. As Alpari support claims everything is OK, i tried...
Hello, I'm trying to recover the last open order on Metatrader and write into a file. I'm getting this error: Expression has no effect, expression of 'void' type is illegal. Could someone give a me help here? Thanks for your help! CODE: int OnInit()   {//---   Alert("WatchBOT initiated.");//---...
у&#32;тебя&#32;как&#32;с&#32;работами?
Hi all, What is the best way to keep track of currency correlation. I found a couple of websites that give you correlation percentages but I don't want to see there all the pairs in the world. I would like to have the ability to choose which pairs to show(all at once) and have the information live....
I've made a very simple EA on ForexAdvisory.com I have very little to no knowledge of it and couldn't find any information on Google. Any help is appreciated. Thanks!