Hello, I want to open a new trade when price has passed a threshold, when I did this with a for loop and with OrderSelect(i, SELECT_BY_POS) it worked fine, but now I'm directly selecting one order, and when I print both the bid price, and the order opening price, they have the same value. For some
Hi, Example See picture I dun want drag and drop because too many codes to many chart windows many times.... I need straight one time 1 code match 1 chart window Any idea code? I think relate to ChartOpen or etc
Anyone know where to find an MT4 moving average indicator that can dynamically display the next higher timeframe
Hi! Instead of hovering my mouse to change the time frame, is there a single hotkey i can set or press to change time frame? If yes, can i also choose if this hotkey changes timeframe for all my charts or just the chart im viewing? thank you! for Mt4
Hi, in my chart I'm working with manually drawn trendlines lines (the MT4 build-in line objects). To speed up the process I'd like to create an indicator that does: - If I press the key "B" the line tool will be activated with a blue line - If I press the key "R" with a red line My question is
Hi all, I have an MACD indicator with 2 lines that I want to use on my EA. I already tried using iCustom on an indicator that doesn't have a lot of parameters and it works find. Since this is the first time I found an indicator that has a lot of parameter I kinda confuse how to make it works. What I
Hello people! This is my first post, I hope this is allowed and that it is in the right place! I am testing the "KG_Support_and_Resistance" indicator, but I am not able to enable it on the MT4 platform. I release the indicator inside the graph, but it does not appear on the screen (no error
I have MT4 installed on my desktop. EAs work on my DEMO account just fine on my DESKTOP. I try to use it on a live account, and NOTHING happens. I install MT4 on my laptop. EA's don't work at all on my laptop in DEMO or LIVE accounts. All the settings are the SAME as on the desktop. I NEVER have the
[Deleted]
Hey guys, I searched in the BillWilliams.mqh for the Fractals indicator and I found some fragments of it. But this kind of coding (with classes etc.) is way beyond my knowledge. Can somebody tell me where I could change the original arrow-wingding to a symbol of my choice? These arrows are too
hi guys anyone now why this is script crashed ??? //+-----------------------------------------------------------+ //| MT4 CUSTOM INDICATOR 123PatternsV7.MQ4 | //| copy to [experts\\indicators] and recompile or restart MT4 |
Context: I am trading on 28 different currency pairs I am trying to create a function where you cant buy or sell two of the same currency at the same time. E.g. buy eur/usd and buy eur/jpy not possible because eur is overexposed. Does the code work? void OverExposureCurrencyPairs(){ string
Hi everyone. I hope you are fine. I have a question: What's the exact timing of an OrderClose()'s result(true/false) being returned? In the following code, will the result of OrderClose() be immediately returned in row1, so we can use it in row2 within the same tick ? Or shall we wait for the order
Hi, I wanted to count how many buy or sell candle in a selected area by manually drawn rectangle. If possible to find out index number (start to finish of rectangle) . Thank you in Advanced
hi experts i'm wonder there is a way to show two currency pair at same window(both have candle format) like EURUSD as main window and GBPUSD in sub window thanks
as you know the OrdersHistoryTotal() function returns the closed orders in history based on the history tab settings... now say i want to search through all the orders in history no matter what kind of limitations they are .... if i make a loop with OrdersHistoryTotal() it searches thorugh the
Hi, I provide free service for my valuable clients and implementing my coding knowledge. i would like to add my link on mt4 chart, when me EA or indicator applied on chart my given link on browser. is this possible to code? I really appreciate the peoples who helped me to solve many issues and make
Hi all, Pretty raw with coding and have hit a wall. I don't mind admitting that I've backwards engineered some code on an indicator I found online to make it work for me. It's a manual pivot where I enter the H, L & C and it plots the pivots on a chart. However it's using a horizontal line and I've
Hi Q: Does MT4 EA gets reinitialized again when Datacenter changed manually? Description: I am using MT4 Client with 2 EAs running. If I changed the Datacenter (e.g. DC1 to DC2), - is the EA reinitialized or - is it running as if it got disconnected from the MT4 client's internet and just runs as if
Hi all, I have a custom indicator and I want to use it in my EA. I saw the iCustom documentation but still failed to make it works. Below is my code for the iCustom function, can anyone help me? int shift = 0 ; double VWAPindicator = iCustom ( Symbol (), PERIOD_M5 , "VWAP Bands" , 20
Hi everyone, can I do TP that doesn't have value (infinite TP) but having a trailing stop. So basically the trailing stop would be the close price for the trade. Does this strategy can be applied or there's something bad things that will comes up later? Thanks
I have downloaded account history from signal provider in csv. How can I import this now in MT4? Would be appreciated for your answers
hi experts i'm trying to develop a custom indicator but at this stage it's getting very heavy and mostly cause the mt4 frozen i wonder there is some general instruction for for optimizing the code so or even a tool to show which part of the code cause the frozen problem
Hello, I'm attempting to export mt4 account history into excel in order to calculate monthly returns. I have no problem getting all of the data into excel. But my problem is trying to perform any functions for numbers greater than 999 or less than -999. So basically any number that should have a...
Hello my friends, Ive got a little problem with a part of my ea. OrderSend("sysmbol()",OP_BUY,Lots,Ask,0,StopLoss,TakeProfit,NULL,0,0,Blue); OrderClose(OrderTicket(),Lots,Bid,0,Black); return value of 'OrderSend' should be checked return value of 'OrderSend' should be checked I tried nearly
Hello, How do I tell the iHighest and iLowest commands which direction I want to search. For instance, can I do: iHighest ( NULL , 0 , MODE_HIGH ,- 5 , 8 ); to do a search from shift 8 to shift 3 where shift 0 is the last candle, i.e. left to right search. I've tried it but couldn't get it to work
Dear experienced traders, When we use MT4 manual, we will have a chance to fail to close position and we will hear a voice is like "Wooo...". Does EA have same chance to fail to close position? What will happened if the EA fail to close position? Will the EA try to close the position again or never
[Deleted]
I need some help. Somehow I can't display one simple message box. if((Open[0] < (sum/MA_Period) && Low[0] > (sum/MA_Period)) || (Open[0] > (sum/MA_Period) && Low[0] < (sum/MA_Period))){ MessageBox("Pass Average", "Windown Tittle") The rest of the moving average file is kept the same. Is it...
What's the difference between the MetaTrader account & the MetaQuotes account? How do I create a real MetaQuotes account? I tried to create one, but it still says MetaQuotes-demo? Or will it become a real account when I deposit money into it? & what's the difference between depositing to my
hello everybody, my code repainting but i'm not use future bars, why its happen
Hi All, I am new to MQL, acn any one help me in getting my custom indicator output value in export advisor. Currently I am getting 0.0 value in export advisor. Code in custom indicator:- //---- input parameters extern int ADXPeriod= 28 ; //---- buffers double abc[];
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.