MQL4 and MetaTrader 4 - page 297

hi there is a function that tell me before how many bars conditon was true ? for example : bar since rsival>70 = 23 bars and there is a function that tell about cross over ==true ? for example : i want to send order when cci cross the 100 if i code cci > 100 and i close my position it will send a
Can someone please see why this code is not Compiling. Am studying an online course, where we're making a simple 2 Deviation BB Strategy (for educational purposes). Thanks in advance. Mike //+------------------------------------------------------------------+ //|
Hi all, I am trying to teach myself how to code EAs, and I have decided to code a simple Ema cross over strategy with an ATR stoploss to start with. It should be pretty straight forward but at this stage I can't see where I am wrong, the EA won't pass an order
Hi everyone, I try func NormalizeDouble ( value , digits ) in mql4 but it return double with max 4 digits after float point although i set digits larger than 4. Ex: NormalizeDouble(1.1234567,6) return 1.1235 How can i fix this
hi guys if i draw by hand a rectangle is possible by script have a coordinate in chart and dimention ?? anyone have some example thankz
Hi I am in the process of learning MQL4 and would like to seek advice on how and where to define the functions properly in my EA as I am struggling to get it to work. Below is the general sequence of events I am trying to code. 1. On every tick, count the number of open buy/sell orders 2. If the
There was no problem with my EA, everything was going well until I discovered these facts. First I assume it's a technical problem with hardware, signal stability or maybe my broker. but some of these conditions I have dig deeper and found that it is in Metatrader 4. Is it really like that? can any
Hello, I'm populating the previous 5 indexes of a custom buffer every 5 minutes via a function which I am calling like so: #property indicator_buffers 12 #property indicator_chart_window double ExtBuffer1[]; int OnInit ( void ) { SetIndexBuffer ( 0 ,ExtBuffer1); } void updateBuffer( double &buf[]
Here is my script code. It does not return the proper values. //+------------------------------------------------------------------+ //| Test 2.mq4 | //| Copyright 2012, MetaQuotes Software Corp. | //|...
Hi somebody knows where can I find the ichimoku with displacement settings for mt4? the default version has only 3 inputs it's missing the displacement setting, thanks in advance
  Masterpieces of literary creativity  (93   1 2 3 4 5 ... 9 10)
Very strongly written... The spring sunshine and fresh air tired my legs, so I sat down on a bench. I squinted slightly at the sun and smoked a cigarette. A rustling sound behind the bench awoke me from sweet spring exhaustion. I turned around and saw a boy of about six years old, staring intently
I have an EA ( Expert Advisor ) that does all my strategy, but I would like that whenever he issues an alert, another indicator copies the alert. Because the automated system I use, it only accepts an indicator as a signal and does not accept an EA (Expert Advisor). Does anyone know or have this
Hi Good people Hope you are doing well I have an issue which hopefully someone could help me. In a computer A I login as an investor in MT4 platform. In computer B an order executed but in computer A where I login as an investor the trade was not show up immediately in the terminal trade tab. There
Attemtping the fastest tick by tick MT4/MT5 backtest possible; what are your recommendations? Thought about building a gaming PC without the graphics card; is this approach OK
How to remove/clear the candlesticks then put only the indicator in main window? I want to only see the indicator in main chart
  MT4 Files Functions Replacement.  (112   1 2 3 4 5 ... 11 12)
Hi folks, A lot of people asked me and metaquotes forum about file handling functions. I think MT4 have a lot of bugs in those functions. 1- They don't work in backtesting 2- They don't write outside "MetaTrader 4\experts\files" path. Today I opened my Visual C++ and wrote a file handling dll for
[Deleted]
Hello! I need help.  I have constructed an indicator which obtains results for every tick based on 2 other indicators which I call by iCustom function. I pass the timeframe and all the necessary arguments but the problem is that it gives me different results on H4 and H1 scales but the arguments are...
Hi, I codding a custom fibo levels but when i set orders i do not take an answer. The code is here: if ( Fibonacci() == 0.78 ) { OrderSend ( Symbol (), OP_BUYLIMIT, lot, Bid, 3 , StopLoss, TakeProfit, NULL , 0 , 0 , Green); } if ( Fibonacci() == 0.618 ) { OrderSend (
Please is they any build in function in mql4 that has the same function of trailing stop loss of the manual trading? If none please anyone has a code to trail stop loss as the normal one
Quick and urgent question if I partially close an order, does the new order have the same Take Profit and Stop loss as the older one
I have added comments texts using the Comment function... see my screenshot... i want to style it eg: make the font size more bigger?? Can i change the background color of those texts as well as text color
Hi, it gives me an error here... why? ObjectCreate("Arrow"+iTime(NULL,0,0), OBJ_ARROW ,0,iTime(NULL,0,0),Low); [MQL4] Thanks
[Deleted]
Hi all. I want to count number Bars up ( down ) in x (number) bars, plze help me write this code. thanks u
Good morning friends, I am writing a simple table, using moving averages , and I am making a mistake that I cannot detect. I leave you an image in which surely you can quickly see what I am doing, and the mq4 code. Thank you very much in advance, I am very grateful if someone helps me with this
I got someone to create an EA (MT4) for me along with some parameters  For them, they can see the Inputs tab under Expert Properties  For me, I have the EA loaded up and selected, but cannot find the Input tab I installed on my Laptop and it worked just fine but the only difference is that on my...
I have an Indicator which gives BUY & SELL signals... The Indicator is for Binary Options... Indicator Gives Signal & I Trade On the Next Candle... See My Attached Screenshot... What i want is when the indicator gives a signal (sell or buy) i want to check programmatically if the next candle
hi how can i download MT4 from Metaquotes ? when i try to download MT4 its automatic download me the MT5. I dont know how to make a script at mql5
hi, i am not really good in programming but i have developed one ea using free online ea generator. the ea work well as per my expectation by opening an order when condition meet and close when hit tp i  set. however this ea only open one order when condition meet and will not open another order...
Hello, Is it possible to display UTF8 / Unicode text (for example in Chinese language) in Label/Text Objects in MT4? When I tried to paste such text, Metatrader displayed only question marks ('?') instead of proper characters. If it is a limitation of MT4, is there any work-around of this problem?...
I tried to figure out the parameters the iCustom but i didn't achieved to find out how to receive the 5 day high and 5 day low price so to make my calculations when price break the up or down level. Out of the OnTick() i add this code which i copy paste from indicator's code source: // input