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
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
Hello, I have created a simple MT4 indicator that has array buffers and on tick the value of the buffers at position 0 is changed. Everything works correctly. But after some time the buffer values get either currupted or mixed. I visualize the values on indicator_separate_window as a histogram. Any
This isn't really my function. I copied it from somewhere (possibly this forum) quite some time ago, and now I am struggling to understand how to fix it. What it does: I determine an amount in currency and I choose between StopLoss or TakeProfit. The function is supposed to return the exact price at
Looking for an MT4 EA that handles manual order with TP multiplier, Distance, Max Lot and Max Orders
(1)
Hello Looking for an MT4 EA that handles manual order with TP,multiplier,Distance,Max Lot,Max Orders and Trading Hours (this is not much important) Thank you
Hello, when browsing on the market on my MT4 terminal, I clicked on a indicator which interested me, but when I arrived on the page there was no information about the product. I thus went back to the original market page, but now nothing appears in this either. I checked the journal, and it seems
#property strict #define SOME_LENGTH 5 #define TEMP ( int ) NormalizeDouble ( MathPow ( 10 , SOME_LENGTH), 0 ) #define DIVIDER TEMP * 10 #define DIVIDER_CORRECT int (TEMP * 10 ) void OnStart () { int someIntegerValue = 12345678 ; Alert ( "using DIVIDER: "
Hi, I want to store stoploss in StopLoss manually also if I change. I need to get only first StopLoss, and then change in variable only first time. If StopLoss has been changed in the future, in my variable this not change. My code: double point_value = 0 ; for ( int Counter = 0 ; Counter <=
Hi, I can see on details statement Maximal DD not means floating, but this is for me very important. How can I calculate Max DD for floating in my EA for each symbol
Hi how would I find the mean equation ((Price1+Price2+...Price(n ))/nbars) in MQL4, would i need to calculate this or is there a predefined indicator
Hi this MathPow function keeps showing as 0, ideas? the negitive value is MathPow ( 2.71828 ,-B/A);
Hi all, I'm trying to allow the indicator I'm building to signal entries for me by printing an object (an arrow) over/beneath the bar that the signal happened at. Here's what I've got so far – it's not working, and I'm unsure where I'm off. My buySellSignal buffer is being filled with the proper
[Deleted]
Hello, I would like to check if my last three closed sell or buy trades were profitable, and change a string value depending on it. I have this code (MT4): for ( int i=(OrdersHistoryTotal()- 1 );i>= 0 ;i--); { OrderSelect (i, SELECT_BY_POS,MODE_HISTORY); if (OrderSymbol()== Symbol () &&
Hey I want to add a buy and sell alert, when the price breakouts of the box. Thanks for the help! Here is the Indicator(Not from me): // THIS CODE IS POSTED SO THAT LIKE MINDED PAY IT FORWARD CODERS MAY // IMPROVE ON IT AND REPOST IT ON THE FORUM FOR THEIR FELLOW TRADERS
Assume the account balance is £1000 in GBP. I'd like to buy a 5 digit market such as EURUSD (1.11270) with 50 pips (500 points) but only risk 1% so 50 pips = £10 so every pip should be worth or cost 20 pence for me. So what is the formula to calculate the lot sizing so that each pip cost me 20 pence
Today push notifications stopped working, im not receiving any notification on my mobile app. Iwant check it , Is it from mql side?! Because my setting hasn't changed
Hi, I have an MT4 EA with mq4 file and want to convert it to MT5. Who can help me or who can do that for me. Looking for an easy direction. Thanks
Hi, my trailing stop is activated when reach 1/2 stop loss or profit. Trailing stop skače between 2-3 pips. Code: void tStop( string symb, int stop, int MN) // Symbol + stop in pips + magic number { double bsl = NormalizeDouble (MarketInfo(symb, MODE_BID) - stop * MarketInfo(symb, MODE_POINT)
I have problem with string array. Its says "array out of range" when I loop the following, It will only open "NZD/USD". Why? string symbol[]={ "EURUSD" , "GBPUSD" , "AUDUSD" , "NZDUSD" }; string symbol2[]={ "USDJPY" , "USDCHF" , "USDCAD" }; for ( int a= ArrayResize (symbol, 4 )- 1 ;a>= 0 ;a--)
Anyone know if compatibilty issues with Gomarkets will be resolved soon. It has been a problem since Monday 22/08/22. Charts working on MT4 but no account details, no EAs, no trades from Gomarkets
Hi there, When backtesting in the Spread settings of MT4 you can custom select a spread - If I set this to '2' - does this mean 0.2pips? Or if it's set to 10, does that mean 1 pip? Thanks! James
My Ea 2019 on MT4 doesn't compil any more.. is somebody can help me :-), first step done, Thanks
(2)
Hi everybody, Coming back after 3 years , triing to run my EA which ran very well before, compilation are not allowed now, it let me 3 errors. It was running perfectly without any errors before. there 2 sames errors about an Array, and Error about Date. Is somebody could help ? Seems just to be able
Hi everyone, I'm quite new to Metatrader 4 and trading in general. Could someone help me answer this question please? - If I close or change (SL/TP) an open trade while the market is closed during the weekend, will ''the order'' take effect as soon as the market opens on Monday ? Thanks for your
<Decompiled code deleted> But the result was wrong

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.