MQL4 and MetaTrader 4 - page 217

I would like to get data from a custom indicator in mql4. I know that how to do that in mql5 like this. int indicatorHandle = iCustom(Symbol(), Period(), indicatorName, ...);double tempArray[1000];CopyBuffer(indicatorHandle, 0, 0, 1000, tempArray); I search the document
My Mt4 does not show an error but the site shows an error. I checked my MT4 but it doesn't seem to have any bugs. What is this problem
I am a new user and cannot for the life of me figure out how to subscribe to the mql4 signals. I have installed both the mql4 and mql5 clients on my desktop, however only the mql5 signals appear in the client
  Manual order and EA closing  (18   1 2)
Hi guys, I would like to ask this question, If I don't placing (omit) a magic number command in the EA, will my EA still monitor and closed my manually ordered. Thanks for any advices from here.... AZR
Hi all, I'm trying to find the lowest value in an array that is determined between the last closed order and Timecurrent(). I'm always getting the last value of the buffer instead the minimum value of the array. I've tried to change every parameter but so far no luck. Please could you help me out
Hi guys and complements. The following is a code is designed to show true if a new candle is seen for the given time frame (Not necessarily the current timeframe) . However it does not branch to the 'true' section, only to all the 'false' sections. What could be wrong with the code pls. Thanks in
[Deleted]
Hello, I have a EA that open trades and works normally in demo, but in real account don't open any trade, I have tested demo in many brokers mt4 and give the same results. Recently I have opened a real account with a VPS but EA don't open any trade, in journal of mt4 seems normal I don't have any
I'm working on creating an EA that purchases long when the price (close) crosses above the MA line and closes the trade when the price (close) crosses below the MA line. My issue is that when I run the strategy tester, it is opening and closing the trade immediately. I've used an online generator to...
Hi! I want to explicitly convert 'enum' type into 'int' type. // --- global variables --- enum TRADE_TYPE{DontTradeType,TradeType,BuyOnlyType,SellOnlyType};TRADE_TYPE Trade_type; // then I pass 'Trade_type' into function call - SetBtnText(setSparam, Trade_type); // --- TRADE BUTTON TOGGLE
double Recent_TD_Point[]; for ( int i= 0 ;i< 3000 ;i++) { if (High_TD_Point_Value(i)> 0 ){ Recent_TD_Point[i]=High_TD_Point_Value(i); Print (Recent_TD_Point[i]); } } //------------------------------------------------------------------------------ double
When I click a button I hoped that the trendline tool can be clicked -- it appears the mouse is prepared to draw a trendline -- but I have searched all over to come up with no solution. I guess what I am saying is how can the user know that they can draw trendline through the use of a button without
Dear everyone, I used 2 accounts for buying same signal from a signal provider. Now i want to refund back my money .Is it possible for refund money ? I bought it by Debit card Account 44098480 (XMTrading-Real 34) Thank you
Hello, i would like to test the mt4 connector for binance a github project MetatraderToBinance. Looking for help to set it up. Link https://github.com/fauxl/MetatraderToBinance/tree/master/Binance
Hi, I want to reset extern variable in this code: extern double alert1 = 0 ; OnCalculate { int AlertCount = 0 ; if (alert1 != 0 ){ if (Bid >= alert1 ){ static datetime TimeStamp; if (TimeStamp != Time[ 0 ]) { Alert ( Symbol (), "Alert" ); AlertCount = 1 ; TimeStamp = Time[ 0 ]; } alert1 = 0 ; } } }
Hi - I can't find any MQL4 command/function to do the below. Can someone help? 1) If I load 2 indicators in the same subwindow what code do I need to insert to show their names separately - side by side - in the subwindow. Currently one indicator name overwrites the other. 2) How do I remove the
I am testing some EA's but I do not know what is and how to set the "magicnumber". What determine wich magic number to use? Do I set the same magic number at one currency pair at different timeframes? ornot? Do I set the same magic number at different currencies? What happens if a set thesame one...
I like this indicator, but I want to have trades start from the first bar of the signal and there is repainting occuring.. If I am going by one period, 20, and the firstbar repaints, would it be possible to reprogram a heiken ashi to no repaint on the current bar?  Some heiken ashi indicators have...
  TRIX indicator  (5)
I just recently started playing around with MT5 (I live in the U.S. so my options are greatly limited as to brokers who use MT5). I found an indicator in there called TRIX. And I really like it. So I took upon myself to try to convert the MT5 indicator to MT4. I've made modifications to make it
I wrote an Expert Advisor and everything works well except for one function: void OnTick () { //My stuff... if (DayOfWeek() == 6 ) { CloseTrades(); } } void CloseTrades() { for ( int i = OrdersTotal (); i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS) == true ) if
I keep on trying to make Histograms in a separate chart for example say in Stochastic I want to draw histograms between the D line and K line however the histograms drawn are based from Zero and the Value that I want. is it possible that I make my histograms to lie between the D and K lines only
Hello im new here on mt5 forum, not sure if this is where im meant to be but cant find the Mt4 forum, Ive been using and programming Mt4 for quite a while, now installing to a new computer and the Mt4setup.exe file is installing mt5 instead which is just wierd. Ive tried downloading the mt5 setup to...
Hello dear friends. There is a system I have been following for a long time and I want to convert this system to a robot. is there anyone who can help The rules are as follows; * The system will open buy or sell in triple touch. (I added in the pictures) * There will be stoploss and takeprofit
Hi guys, Below is the code of Keltner MTF indicator. Can someone tell me if this code repaints? I am also trying to monitor it visually - but a confirmation would be great. Thank you. int start() { int limit=1000; //+++======================================================================+++ for (
  EA Entry Only  (2)
Anyone can help me to solve my EA Problem Not Open Sell, and to many order. Thanks alot int start() { if (( iFractals ( NULL , 0 ,MODE_LOWER, 2 )< iMA ( NULL , 0 , 10 , 0 , MODE_SMA , PRICE_CLOSE , 0 ))) OrderSend ( Symbol (),OP_BUY,Lots,Ask, 3 , 0 , 0 , "BUY" , 0 , 0 ,CLR_NONE);
I am trying to convert an indicator I found on tradingview to MQL4: ============================================== BullTrend = (close - lowest(low, 50)) / atr(5) BearTrend = (highest(high, 50) - close) / atr(5) BearTrend2= -1*BearTrend Trend = BullTrend - BearTrend
Hi guys :) I am lookin for an indicator with following settings: - minimum wick size (point and pips) - push mobile alert (on/off) - desktop sound alert (on/off) - mark candle (under wick - green arrow / abowe wick - red arrow) Thank you for inforation how to crate or where i find this indicator
[Deleted]
  Why is access to www.mql4.com blocked?  (64   1 2 3 4 5 6 7)
Good afternoon. Here's the problem! I've been studying MQL for a week now, and I've been using this website as documentation. For some reason I cannot access the website at work IP 62.117.70.201 Why? :)
I am trying to check if I already have an order open and if I do, make sure that it is either a long or a short. It seems like instead of my "if" statement checking to see if the bool function is true or not the program is just running the function its supposed to be checking. There are other issues
I have made a EA to get some data and insert it into my sql database but I got this error when I try to insert , the insert function is in a timer . bool insertMt4Finance(){ string queryInsertMt4String; if(userExist()){ string serveur,currency,createdon,login; double
I use tickdata suite . i have noticed there's one ea that can be tested fine using MT4 history quality, but as soon as i tick the "Use tick data" , I can see the ea loading and the green bar moving, however there's nothing happening at all, no trades, nothing in the journal either what could be the