MQL4 and MetaTrader 4 - page 73

Hi all I wonder if its possible to have OrdersTotal() on 2 different charts. I want to use OrdersTotal()==0 (if there's any alternative) for opening trades on different charts(Open 2 trades (buy & sell) on EUR/USD & 2 trades (buy & sell) GBP/USD). I tried several ways to for it to work but I'm not
Hello! So, I have Expert Advisor that doesn't work and gives me those two errors: "Unexpected end of program" and "Unbalanced Parentheses". The Problem seems to be where the OnDeinit starts, but somehow whatever thing I try to do, I get more errors that I can't manage to fix... int OnInit()  {...
Hello! Faced with a problem... I wrote the calculation of the lot relative to the stop loss: double lot= NormalizeDouble ((risk_money/(dist/ _Point ))/tick_value, 2 ); where risk_money=$200; dist=0.00053; tick_value=1.0; Everything worked, but when the stop loss was triggered, it turned out to be
I'm using this EA News that I found here in the forum and I would like to know if someone could help in some way to improve it. Put in a filter that allows you to choose exactly which currency pairs and high impact news you want to put in each currency pair by the name of the news. I'm asking for
I have this indicator code but it does not display any data on chart (in form of histograms). please some one should check it out for me #property indicator_separate_window #property indicator_levelcolor DimGray #property indicator_buffers 2 #property indicator_color1 Green #property
// delete pending order if (OrderDelete(ticket)) return ( 1 ); }
Dear all, I am creating my system to open two pending orders - BuyStop and SellStop Next, I want it to Close or Delete one of the Stop order when Buy or Sell is executed. Example: Case 1: BuyStop and SellStop are Placed BuyStop is executed - Buy. Then, SellStop should be closed. Case 2: BuyStop and
I tried this but it doesn't work. ChartSetInteger ( 0 , CHART_WINDOW_IS_VISIBLE , ChartWindowFind (), 0 );
Good day dear colleagues. Please help me with the following problem: I collect data into 2 arrays ( iClose[i]-iClose[i+1] ) and, depending on > or < 0, distribute them. Next, I need to find the average value, I sum them over a certain period. And then I divide by this period. But when dividing by a
This old indicator works fine the moment it is attached to chart (works fine for historical data). but it needs continuous chart refresh to work correctly ( works incorrectly for new data). help appreciated
Hi All... Is there can help to create EA as below request. 1) MT4 will automatic place 5 BUY pending order & 5 SELL pending order when server time reach 08:00 2) All order come with TP 100-150 pips.   3) All pending order not execute will delete at server time 00:00 4) Gap every order are 50 pips...
So every time I try to change my Investor Password in MT4 (by hitting control + O, then server, then change password) I get the ominous MT4 "error sound". I called my Broker (Forex.com) and they said I can't change the MT4 password because they do not provide/support those :( I want to provide trade
Why can’t debugging in history data be used in MT4’s metaeditor, and the historical data analysis button is also grayed out and cannot be used
Hi All, I have been hearing different opinions on this. Can someone advise me: Is it better to run multiple EAs per MT4 account (opened at separate charts), or one EA per MT4 account? I am using VPS btw. Thanks
AppData\Roaming\MetaQuotes\Terminal\46A834A4BD020127C05B0DA2582F8F5C\history\TradersWay-Live 2\EURUSD60.hst I delete this file then run the strategy tester, and the new history successfully download and run. Therefore, after ea test for couple days, it stop the testing and close all the position
Lets say I want to pull up a 20min chart? Or a 90min chart Im assuming there are indicators that all for this? Thanks
  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
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
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
This website uses cookies. Learn more about our Cookies Policy.