MQL4 and MetaTrader 4 - page 74

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
Hello, I have create button by OBJ_BUTTON. I want to prevent user click on button in some case. Is there any way for enable/disable button click on MQL4? Thank in advance
hi friends. I have wrote an expert . when I test it buy order was okay . buy EA set sell order takeprofit with input stoploss instead of input takeprofit and it sets stoploss with input input takeprofit instead of input stoploss !!! what I did wrong
I have multiple MT4 terminals on my PC. When I attempt to download an item from the market, it only goes to the terminal that was last installed. I tried installing products within the terminal itself, but sometimes the products I am looking for do not show up when I do a key word search for them
  MQL4 CCI  (7)
Hello. I am using the custom indicator CCI in my programming. However, the program does not behave accordingly to the CCI on the chart. I am wondering - anyone know the ENUM_APPLIED_PRICE in the custom indicator CCI ? Regards, Håkon
How can I close automatically an order which is profitable
Hello, I have made my first EA, working with codes in forum but there is one small issue - it is not automatically closing trades and i do not know why. Can someone please explain to me, why it is opening trades correctly, but not ever closing trades? I thought i was using magic number the right
How Can I fix this?? Try couple different way but still have error. Please help. Thanks Error: 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 30 33 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 31 33 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 32 33 'iFractals' - wrong
  Close and Reverse orders  (36   1 2 3 4)
Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to
Which Scripts will be the least busy EA
while (!IsTradeAllowed()) Sleep ( 500 );
After convert fractal indicator into EA, the order didnt trigger at all. I want it trigger buy when candle close above last fractal high, sell when candle close below last fractal low. here is the coding, where did i done wrong??? please help coding
Hello, I can no longer set alerts on my mt4. I was able to ever since I started using it. It stopped working recently, so I assumed that it was because I have alerts that were not deleted because I usually set them on "dont auto delete". I tried deleting hem on all my charts but I cant find them on
Hi, I've written a function that I'm setting up to slowly reduce a profit target on a basket of trades. I have a variable set up input string ExitStrategyAsian = "00:00-1;08:00-0.9,08:30-0.8,09:00-0.75,09:30-0.65,10:00-0.50,10:30-0.40"; The theory is that every 30 minutes ( or whatever interval I
To my knowledge MT4 runs on a single-thread. Is this assumption correct with respect to the strategy tester, that it does not start another combination of parameters until the current one is finished running
10 days back i registered for metaquote VPS service . yesterday i saw vps icon is disappreared from navigator window. then i loged on here on mql5 profile and i am not seeing vps server details here and my signal services. however my EA on VPS is runing properly but i want to sync my new parameters
The question is same as the title... Had to have my SSD changed and now my bought indicators don't work - what can be done to resolve this issue? Any assistance in this matter would be appreciated. Thanks, Charles
Hello members i am facing a problem that i had subscribed for metaquote VPS service few days back but today when i was planing to sync my new setting with vps i noticed there is no VPS icon in mt4. then i logged on here mql5 web account. i cannot see any payment history of purchasing vps service and