MQL4 and MetaTrader 4 - page 21

Hello guys, can sameone help me? I have this indicator that give me sentiment %, i use iCustomCall to have data % but i dont receive values, looking in the chart there is no buffer values and no data object. How can i manage it
Hello, I coded an custom indicator which is already on the chart and working. I also coded a button (contains to that indicator) which should open the indicators properties when I click on that button. The button itself works fine (I tested him with Print()). I only need to know the function, method...
When using the MACD indicator on the chart it shows 2 values - a Histogram and a Signal line. If you use the iMACD() function to calculaute the MACD values you have 2 options - MODE_MAIN and MODE_SIGNAL. I have always assumed thet MODE_MAIN represents the Histogram values. Now to my dismay I
I'm not sure what I'm doing wrong but I'm positive it's because I'm new. When I try to open a buy or sell order other than instant execution the place order button is disabled. I can change the order to instant and sell/buy become available. It seems to be only when I specify a buy/sell limit or
Hello, I am frequently getting Error 136, specially during news hours. I searched and founded this happens due to Price change faster than EA placing trade. In this forum i saw some post where peoples saying using of RefreshRates (); will resolve the error. I changed to code with RefreshRates ();
Hi; Got a question I can't seem to find an answer to, even after searching online. I have an MT4 layout that uses two charts: Chart one: 4hr EURUSD configured with its own indicators Chart two: D EURUSD configured with its own indicators I save this in template directory as a .tpl file When I load
I am getting 28 warning in my code. My EA is working fine on live market. I am not sure what does this warning mean and why i am getting it. For example : Warning : return value of 'OrderSelect' should be checked JS23.mq4 794 7 double CalculateTradeFloating( int CalculateTradeFloating_Magic)
Hello, Today, I traded two news event AUD - Monetary Policy Meeting Minutes and CAD - Core Consumer Price Index (CPI) both closed in loss because of very high slippage, high spread and StopLevel. Apart from this i get a lot of error in Terminal (Expert) Tab. List of Error capture during news event
Hello, What does OrderType() > OP_SELL mean? There are a few instances in the EA I am working with that have some if conditions with OrderType() > OP_SELL . I understand that OrderType() == OP_SELL means it should be equal to a sell order, and OrderType() != OP_SELL means it should not be equal to a
Hello I will appreciate your help, I have written a function but it is not doing out operations as required. Upon launching EA on chart it should open buy position on break of previous high later on the preceeding orders will be on break of previous low. I f any of the orders hit sl the EA resumes
Hi, I have an Expert Advisor which work only with MT4 version 4.00 build 1400 but not with the next MT4 version 4.00 build 1408. I have a copy of my terminal.exe version 4.00 build 1400, but each time I copy/paste this terminal.exe file into the folder of my MT4 installation it run the update to
I am looking foir an indicator for MT4 that can calculate the annual average daily range of any currency pair. I have seen plenty out there with no inputs at all or some that can do up to 100 days etc, but want to be able to calculate the ADR for 1 trading year and have it just show in a corner as...
Hello, I am editing in EA which is based on scalping, and i am normally using 1 Pips as Take Profits. Some broker have Stop Level above 10 Points / 1 Pips which provide an error to EA Invalid Stop and other getting failed. For this reason, i made nested if else statement to cover both type of
Today, I found that the pending orders of the MT4 platform cannot be deleted or modified. I hope MetaQuotes Ltd can inform the developer to modify the BUG
Hello, I am adding a GetLastError, which only print if error belongs to particular function. I am trying like : if ( __FUNCTION__ == "TrailingStopLoss" && GetLastError () != 0 ) Print ( __FUNCTION__ + " Returning Error Code for Buy Trailing : " + GetLastError ()); if (StringCompare(__FUNCTION__
Hi all I would like to know what to do to make MT4 load a little faster. For me it takes approx. 10 minutes after the click on the shortcut for the screen to popup. For me 10 minutes it a little to long for a program to fire up. The profile that is loaded only has 2 charts. I have 3 more profiles
Hi, friends! I am using MQL4 on Roboforex. Yesterday the terminal stoped working and I downloaded a new one and wanted to transfer my traiding robot Expert onto new terminal. I copied all the preset files and an Expert himself. But when I try to attach my robot to the chart I get an Allert "The
Take Profits and Stop Loss is Int Value or Double Value? extern int TP = 100 ; extern int SL = 100 ; //OR extern double TP = 100 ; extern double SL = 100 ; // ********************************************** // extern int Slippage = 3; pipettes = Point ; double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask
I deleted the Metatrader4 file in open data files inside the application inside then uninstalled the application on my macOS big sur. After that i downloaded the ready-made mt4 package from https://www.metatrader4.com/en/trading-platform/help/userguide/install_mac Once installation done, i can't
Here is an indicator for anyone who is interested in using it. I created it both to practice some coding techniques and also to be able to have a look at some market dynamics that interest me. Maybe some of you will find it interesting as well. This was my first time really working with objects on
Are there principally differences between the way mql4 and mql5 handle out of range ? Or are there big principal differences in how the iHighest function of mql4 handles for example negative count values? Because iHighest of mql5 won't take those
Hello, I would like to draw a vertical line in the future , but I have problem because on some TF it' working fine but in other TF not. Also I see that changing the Symbol my conversion does not work . I attach my code. Can somebody help me
Hello, What does Error Code 1 means, i am getting this while order Modification. extern double Trailing_Gap = 3.0 ; extern double Trailing_TP = 30.0 ; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; void TrailingStopLoss( int TrailingStopLoss_magic) { //
Hello, I am using ICMarkets and it have StopLevel = 0 for all currency pairs. I designed the Trailing based on ICMarket and code is really working amazing without any issue. Working fine with Broker having 0 Stop Level : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ;
Which one should i use. With Point : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; With Ticksize : double Pips; if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * MarketInfo( Symbol (), MODE_TICKSIZE); else Pips = MarketInfo(
  Woodies Cci Indicators  (47   1 2 3 4 5)
Hi, Does anyone have a proper indicator for Woodies System? the ones posted here... http://www.woodiescciclub.com/forum/viewtopic.php?p=11248#11248 ...they're not good... Could anyone please get a code from PFG they use for this? or exact! indicator rules and settings? Without a proper code and...
Have a nice day. I use a Dialog (Panel) object derived from the CAppDialog class, whose position on the chart is measured by default from the top and left side of the chart. I am trying to change the " anchor point " (left, top) so that its position is measured from the top and RIGHT side of the
Hello, My existing code : void TrailingStopLoss( int TrailingStopLoss_magic) { // Loop through all open orders for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) { double TrailingStopLoss_entryPrice = OrderOpenPrice();
Hello, Instead of using classic if-else or nested if-else i am using like this for small conditions double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask + TP * Pips) : 0 ; double BuyLimitOrderDifference = LastOrderPrice(OP_BUY, BuyLimitMagic) - LastOrderPrice(OP_BUYLIMIT, BuyLimitMagic); double
[Deleted]
Hi everyone, I'm starting to learn more about GUI panels using the appdialog box to add a panel to an indicator I'm writing. I have a basic understanding of how to create a panel and various buttons and labels. I just had one question about saving the location of the panel. If I move the panel on