MQL4 and MetaTrader 4 - page 176

Hi, I'm trying to get ticket number after sending an order int ticket= OrderSend ( Symbol (),OP_BUY,volume,Ask, 3 ,stoploss,takeprofit,"My order", 0 , 0 , clrGreen ); if (ticket< 0 ) { Print (" OrderSend failed with error #", GetLastError ()); } else { Print (
  Ring  (702   1 2 3 4 5 ... 70 71)
I will try to start this thread differently from the unspoken custom here. First I'll tell you the purpose, then the idea, and then I'd love to hear your opinions. The reason is simple - I haven't learned how to make money on the Ring yet and I need some brainstorming. So. OBJECTIVE: I, ("naive
Cananybody help me, please? I tried to changechart template and then create a graphical object (horizontal line) in the chart byMQL4.   For example: ChartApplyTemplate(0,”template_name.tpl”); ObjectCreate(0,obj_name,obj_type,0,obj_time,obj_price);   The Template haschanged successfully, but the...
It's been for months that I manually need to adjust the width value of the Heiken Ashi indicator, every time MetaTrader 4 starts...3 times for 3 graphs. This is necessary because if you zoom the graph while using this indicator you need to change the width of the bars of this indicator in it's...
Hi, I created this price ticker as I wanted to use the Market Watch prices and to reduce the quote to one less decimal place but still see the fractional element. It works great but the only snag is the colour doesn't change. What have a i missed? Thanks in advance. #property...
Hi guys! I'm a newbie to coding. Just getting started. This is the second program I now code. Here is my current issue with the below coding: 1/ Why does the system give me the high of the candle from 1970.01.01 and this twice (see print statements in terminal) ? 2/ Why my high_price_array[] seems
Hi guys i want to learn how to code objects on mql4. I want to createe buttons and panel on mt4. Like buy sell button, textbox where i can input lotsize that i want to use, inserting horizontal line and and returning and displaying the horizontal price on my panel etc. In short i want to learn
Hello! I'm completely new in metatrader4, I just registered my demo yesterday. As I added Rsi, it appaers together with the chart, and I can't minimize it. Can you help me please? https://imgur.com/a/HU3YO1O
To who it may concern, I am encountering problem while trying to sign in through my FXCC Demo Account, just receiving "Invalid Account" message. Kindly assist me in this respect, thanks. Best Regards, Parham Saba
Hey guys, having a tough time sorting this one out, been at it a couple days now lol.. No matter which way i right the if statement i always end up with a zero divide , the error messages always seem to point back to the initial calculation itself (buyriskreward or sellriskreward). I guess i should
How to save a high and low dynamically in order to recognize the trading range? Thanks. Giuseppe
x if (OrderCloseTime() < Time[ 0 ]) if the open order hits the take profit i want to the next 1 hour to trade again
Hi, i am strugglling to get run such mq4 code in mql5. Can someone help me? The code i use in mql4 is this. void OpenOrdersResults() { //------------------------------------------------------ SumOrders= 0 ; BuyOrders= 0 ; SellOrders= 0 ; TypeLastOrder=- 1 ; ProfitBuyOrders= 0 ;
I have an indicator that draws a line with a logic that starts from [n] bars back and changes the value bit by bit until it reaches the right end of the chart. (as per my last post https://www.mql5.com/en/forum/382876 ) it works marvelously and I am moving to backtest albeit with a problem. Since
Hi, I want to work with the charts in metatrader 4 not only as linear charts, but also as logarithmic. Is this possible? Is there any tool or add on which makes a logarithmic chart with metatrader? Or can I write a Charttool by my own? Thank you!
  MT4 indicator not install  (20   1 2)
Hi ... I will purchase MT4 indicator, but it's not install my Mt4 platform
Hello Everyone. Can anyone tell me how to start with real login? I want to start with my real login? i have an account in iforex.com will my account will work in MetaTrader4. if not then which website will work and how it will work? Please answer me as soon as possible. Thanks COmmunity in advance
I am trying to write an indicator that calculates some cumulative change over time. Let's say it starts from the bar with index [50] with an initial value and depending on the bars on the way the value will become different when it reaches the right end of the chart. It will be drawn like a line
Hi guys, I need some help on normalizing prices. I use broker A that has an ECN and CENTS account Using my EA on the ECN account and normalizing the prices to Symbol XAUUSD works just fine. However, when using the same EA on the CENTS account, I get error 4107. When I print the TICKSIZE it makes me
I have a script which does write 1000 candelsticks into a .hst file, my problem is when i change in my code the for loop to make only 1 run then i have also just 1 candelstick in my .hst file saved, so it looks like he overwwrite everything in the .hst file. And i have just a easy question, how ust
  Help me please  (6)
I don't know what else to do. I have read and understood the terms and conditions carefully. Files run perfectly. There is no element of deceit. But still my file didn't pass the test. I am almost helpless wasting time in vain, there is no solution at all please sir please help what should I do
Hi All I would like to open a trade when price touches a object(Buy/Sell). With the code below it will open in between the objects. extern int MagicNumber= 1 ; int MaxTrades= 0 ; //+------------------------------------------------------------------+ //| Expert tick function
  Mt4 api access  (1)
I applied about a week ago to get Mt4 api broker access to create a tool and havne't received an email back from them yet. does anyone know about how long it takes to hear a reply back? Thanks
I am trying to add the position size calculator to a new broker mt4 platform but it is not working ? I have this loaded successfully on my other broker mt4 platforms but for some reason I cannot do it on this one - please help - it is showing in the mql data folder but not in tools when i try to
Hello, I open this post because I was using DayOfWeek but last weekend as it receive the last known server time my script think it was Friday... I tried to use MarketInfo(TRADE_ALLOWED) but it didn't return me FALSE neither TRUE but if I well remember last weekend it return -1  ??   My script is a...
Hi all, Any help would be greatly appreciated as this has me stumped at the minute: I'm looking to access a candle close 2 back to see if it closes above the upper Bollinger band Then looking at the candle 1 back to see if it closes below the upper Bollinger band I'm getting a match on the on the
I am using currently the periodconverter script example to create custom offline chart files but it looks like the metatrader is using to much CPU for creating this files. Is it possible to create this files without metatrader and save them just in the right folder? If i open the files in a
  Mt4 Api  (46   1 2 3 4 5)
Hi, have anybody API code of MT4? I will some owner DDL's interface library to inside. Thx ______________________ DDF Digital Data Format GTF Generic Token Format ______________________
//+------------------------------------------------------------------+ //| TZ-Breaktout.mq4 | //| Shimodax | //| |
  EA not working  (2)
HI Fellow traders, I currently downloaded an EA and wanted to back test on strategy tester but its not working. The default MA EA is working fine. When i contacted the developer or the EA, he asked me to OPtimize the EA and gave me a link to read