MQL4 and MetaTrader 4 - page 126

How do I select a server to login on the web platform
Hi, how to get info when trade close or open? Is there any Event Handling? Regards
Hi all. Given price (as in OrderProfit() ), how can i convert it into pips/points? Thanks in advance.      
I found a multitime frame indicator which I report in the attached files. This indicator shows me its values in 4 different timeframes (one of these ones is the one plotted on the chart). This indicator seems to correctly work correctly on forward testing attaching it to a real time chart. However
[Deleted]
Good morning, I got this script from a buddy and when i compile it has a lot of errors. I have it in the experts folder. The script is attached if anyone can help. Thank you
Below is my code, sell order won't open (if statement) is the same as buy. I would like to arbitrage buy & sell. Are my Price1 & Price2 functions correct for arbitrage? Your help will be appreciated! extern double TakeProfit= 5 ; extern double StopLoss= 5 ; int MagicNumber= 687346587 ;
Is it possible to remove indicators that were downloaded onto MT4. I not talking about having a screen open with a pair and deciding no longer wanting to use it, then right click on the screen menu pops up, clicking on indicators another menu popping up then having the option to edit or delete the
Hi everybody! I've downloaded with Strategy Quant Data Manager, all ticks about BTCUSD,and I've exported to mt4 platform where I develop something. Now: in Strategy tester, I've put the same dates that I read in Data Manager, but the test run from 2021 and not from 2017. Someone knows how I can fix
Hello everybody . I would like to know if there is a command to automatically start the startegy tester when for example the balance is less than X and then start a new backtest that stops only when the balance is greater than X A thousand thanks
Hi, can anyone tell me how to draw a rectangle to the right of the most recent bar? Ideally, I want something like the code below, where -5 and -25 refer to coordinates of time just ahead of the current bar. ObjectCreate("SR"+i,OBJ_RECTANGLE,0,Time[-5],price1,Time[-25],price2); Thanks for your...
//if we already have positions, update them if required //selecting if we have open positions if(OrderSelect(orderID,SELECT_BY_TICKET) == true) { (code to move stop loss to break even } //if we have pending orders but market changed and we want to delete them else
Hi Mql4 Community, I'm having some issues with this function in my EA. Sometimes, not all the time, it will close a trade if only one of the if statements has been satisfied. There are no error messages in the journal. What's the best way to troubleshoot this? Cheers, Tim void CloseOrders1() {
i need to plot OPEN, HIGH,LOW,CLOSE values of the current time frame candle in a chart along with script name, time frame chosen for the chart and server timings
Morning all, So I have an include file, string formatted, which is supposed to go into the body of an email when the SendMail function is called. Despite me working with #include files in order to avoid coding duplicate coding or text, this particular include file is not being inserted into my
Hi, After creating an object CButton on a chart, to delete it from the chart I am using the Destroy function. CButton Button_1; Button_1 .Create( 0 , " Button_1 " , 0 , 0 , 0 , 0 , 0 ); Button_1 .Destroy(); However, when creating an object CButton and adding it to CAppDialog, for some reason the
Hi i got and issue to make EAs work on "Offline" Renko Charts i've tried *every* renko generator there is and NONE made the EA trigger the OnTick() function (i put a simple "Print" at the beginning of the OnTick( ) function) list of the generators i've tried: renkolivechart_v600 EA_RenkoBuilder...
Hi ‌My code to download FF news don't work anymore since this WE ! Anyone using webrequest to download news has this problem ?? ‌result = 0 bytes downloaded.  No modification in the code since last week when it was always running well since months. ‌‌both webpages https://cdn-nfs.forexfactory...
I need help bros. I have two pending orders in market. when one order is execute,the remaining pending order need to close. how can delete this pending order. ` OrderSelect ( OrdersTotal ()- 1 ,SELECT_BY_POS,MODE_TRADES); //selecting tha last order {
Hello! I would like to close trades on filters of TP and SL, instead of placing SL and TP in OrderSend() function. I find it difficult to identify when a trade is closed on SL or TP, and as I may need to trigger some actions when TP or SL is hit, I find it more easier to use TP and SL as filters for
Hi everyone, I have 4 rules (A-B-C-D) to open a trade. The entry would be determined by the rule A and the rest is a confirmation indicator. From this 4 rules I need 3 including the entry rules to be true, the conventional way is to make it like this: if (A == true && (B && C == true || C && D
Hello could anyone help me with a script regarding taking profit. I am looking to take profit on a % of the account balance. for example if profit reaches 0.25% of the total account balance, close all open position, or if account equity > account balance by 0.25% close all open positions. Kind
Hello Need help with the the following add on's please for MT4 Mac:- 1. adding timeframe button of my choice e.g 2hrs, 10 minutes etc.. Regards Phil
Hi, how to add extra pip after moving average cross complete ?? Because i try put /point but not working void SetupTrade() { double StocFast = iStochastic ( Symbol (), Period (), Kperiod, Dperiod, Slowing, MA_Stoc, Price_Field, 0 , 1 ); double StocSlow = iStochastic ( Symbol (), Period (), Kperiod
Hi, this is my code and works very well but how can if I have 1/2 points in negative amount then need to call something? MathAbs (( NormalizeDouble (((OrderOpenPrice() - (lowest- 30 * _Point )) / MarketInfo( Symbol (), MODE_POINT)), MarketInfo( Symbol (), MODE_DIGITS))) / point_compat * 10 ); So
  MT4 Oanda  (1)
I haven't used my MT4 on Oanda for quite time. When trying to log in, it says that it cannot connect because it is an old version. I do not want to start from scratch as I have custom indicators, profiles, ea's etc. Any suggestions or solutions? Thank you
I want to add ON/OFF button,I created the button but I do not know how to type the script which will enable/disable my candles. What should I cling to? #property copyright "Æèòíåâ Ìèõàèë aka MikeZTN" #property link "ICQ 138092006" #property indicator_chart_window #define BUTTON_NAME "Button" ;
Hello all, Need help in my EA. I'm trying to take only one trade if hull indicator change the trend slope. I've manage to make position open but when a position close another one immediately opens and I don't want that. I don't know how or what is best practice to do so. If anyone know any reference
Hello lovely people, I would want to code a trailing stop in money instead of in pips. I will gracefully appreciate any help on how to achieve it correctly. Below is my attempt at it. input double TrailingStop = 8 ; input double TrailingStep = 2 ; input double TrailingStart = 2; bool res; void
double kdj= iStochastic ( Symbol (), 5 , 5 , 3 , 3 , MODE_EMA , 0 ,MODE_MAIN, 1 ); Is my code OK?
This Script is capable of downloading forex news from the website( https://nfs.faireconomy.media/ff_cale... ) and uses two includes files that helps it with downloading the news . As you can see it uses PrintFormat to write the news. So what I want it to do is to display news on my chart top left