MQL4 and MetaTrader 4 - page 47

  Account Margin  (3)
Hello guys! Kndly advice on the below: ENUM_ACCOUNT_STOPOUT_MODE stopoutmode=( ENUM_ACCOUNT_STOPOUT_MODE ) AccountInfoInteger ( ACCOUNT_MARGIN_SO_MODE ); double margin_call = AccountInfoDouble ( ACCOUNT_MARGIN_SO_CALL ); Print ( StringFormat ( "StopOut Mode =%.2s\n" , EnumToString
I am trying to automate a relationship on EA on MT4. Moving Average A: Period – 10 Shift – 0 MA Method – Exponential Apply to – Close Moving Average B: Period – 25 Shift – 0 MA Method – Exponential Apply to – Close Moving Average C: Period – 50 Shift – 0 MA Method – Exponential Apply to - Low
If you have multiple positions open on the same asset, is there a way to modify all positions at the same time simultaneously? i.e. say I have 10 positions open and I want to set or modify my Stop Loss or Take Profit on all in 1 shot vs having to do each one individually. Thanks
Hi all, i want to build an EA with a sort of "ghost" TP and SL. Which price you suggest to use to be the trigger of the closure of the trade ? I have already tested with Ask to close short trade, Bid to close long trade but it seems not work properly sometimes the price is triggered sometimes not
Oanda Live, and Oanda Demo platforms. I used the tester on both and Live "visible charts" I see the chart moving slow even with the slider all the way full speed. On Demo it's as expected and very fast as I am use to. Is there some difference for Live vs Demo testing in the strategy tester
I'll keep working on finding out why this happens, and post some code tomorrow but the code is long so I wanted to ask generically with this pic. Tester places multiple orders in a row, then closes at stops multiple times in a row. Stops were not hit as shown in the tester. I know how to limit
Is there someone who can explain me when the Close[] is better than iClose() and why or if they are perfect the same. Thank you
I trade in the US where the FIFO rule applies. However this rule does not apply if your trades use a different lot size. I contacted my broker (forex.com) to ask why MT4 platform always rejects a closing order if it was not the first trade in a series. I was told that the forex.com's web trader
Hi Im working on an ema ribbon indicator, wich would simply change the color of each ema, according to what the user types in as input. For example if the ema period is 5, it would change to dark violet, when its 20, it would change to blue, etc. It would be true to every ema I tried this with
Hi i want create a libray for call button in simple mode like _GiuButton( param...) but i want create a generic _GiuButton , in this mode when i want create buy and sell button i simply do in this mode _GiuButton( param buy ...) _GiuButton( param sell...) , but i have some dubt , i saw this page
  Forgot password  (1)
I forgot my password can anyone help me
Hi, I am working on an indicator which I just had run in the debugger. As this (due to a loop of loops of..) runs tooooo long I killed both the terminal and the editor. Now after some changes I want to start the debugger again but the button to start the debugger is grey and disabled ?? I restarted...
Hey everyone. I've been looking for a simple RSI audible alert for MT4, which would ring when the RSI closes above a certain level and below a certain level. That pretty old thread RSI alert and popup - Forex Trading is asking for the same thing but in the given list I haven't found anything like...
I have an indicator which generates signals based on 03-Moving Averages and certain filter criteria. I want to develop an EA based on this indicator. Any guidance in this context will be appreciated
hi, I'm new to mql, I'm trying to create a dashboard indicator. My problem is what when I enter the indicator into my friends' laptops. Does the indicator hang/crash for a long time
My playsound function has always worked properly and I've been writing code for metatrader since it was released back around 2005, just to clarify that I'm not new at this.. but now my playsound function only outputs a beep sound no matter which wave file I play. I checked the Boolean return code
Hi, I've created an EA which works perfectly in the testing mode. The issue with running in in real mode is because I don't have enough money to trade as the test mode, so I need to use leverage, which my account permits. Is there a way to code the leverage in so that I can execute the trades using
Hello, we work with MT4 and sometimes have over 20 currency pairs in one trading account. Is it possible to get no notification at X% drawback, based on the total trading account? Thanks in advance! -Steven
Hello, Since last week i suddently faced a problem with the MT4 platform. i didn't add anything new and i have no indicators downloaded on MT4. I tried to uninstall and install again, when i do it from my brokers site it crashes all the time but when i install it from the MT site it launches and
hi i want create a library with some function that create a button and other GUI , i have a main program call A and library called B in program A i call with include my libraryB.mqh, inside of them i want create a function called GuciCtrlButton( string SymbolBut, string NameBut , string NameText
Can the individual candle colors be changed or only for the entire chart ? My attempt here: void bullish_engulfing_candle() { for ( int i= 1 ; i<=50 ; i++) { if (Close[i+ 1 ] >= Open[i+ 1 ] && Close[i] < Open[i] && Close[i+ 1 ]-Open[i+ 1 ] < Open[i]-Close[i]) ChartSetInteger (
  is possible do that in MT4 ?  (12   1 2)
Hi guys is possible click over screenn in chart ( but also not over candel) and return me open high low close and data time ? anyone have some example script or similar?? thanks
Hello, How would I save the order open price for all open orders and save it into an array which updates every time I add another order? My code is below. double OrderOpenPriceBuyArray[ 10 ]; datetime LastTimeBuy; //LastBuyOrderTime ( int j = 0 ; j < OrdersTotal (); j++) { if ( OrderSelect (j
I have a MetaQuotes Demo account. Every monday my mt4 tells me "invalid account". I already opened two different accounts because of that but every monday the same issue. Does anyone have an idea what the issue could be? Thanks. Ulrich
Hi, I'd like to open a discussion about multiple timeframe so I created this sample code and it suppose to read data from two different timeframes and act depends on the results that given to it but it doesn't work any idea why ? Thank You
I have problem from MQL4 I would like to get the price of the currency pair to directly, but the price to get depends on the currency pair to be introduced. How can I get the direct price? double USDJPY[]; ArraySetAsSeries (USDJPY, false ); int rates_usdjpy = iBars ( "USDJPY" , PERIOD_CURRENT );
Case: mt4 1382 win 10 Problem: mw clock freeze untill i move mouse upon window with mt4 terminal, looks like this case lasts from build 1340. There were propositions to delete terminal.ini file with mt4 client restart. Doesn`t work
Hello, new to MQL4 EA's and new to MT4. Questions: Do MT4 EAs need OnInit() or OnStart()? Do I put indicators inside the EA or reference indicators within the EA? How can I reference indicators within my EA? Scenario: I am trying to have an EA that trades based on the conditions of 2 indicators
For 1 lot in EURUSD a broker is calculating 1 USD profit or loss and another broker is calculating 10 USD on 1 pip (10 points) change. Can i get this difference using tick value
  Code from chatgbt correction  (18   1 2)
Hi, Just got this code from chatgbt. it uses rsi overbought and oversold levels with engulfing candles. i also asked it to us 200ema to determine the type of trades it can open. Unforutunately, the are over 19 errors. Can you guys please help to eliminate the errors. ... Improperly formatted code