Hello I'm struggling with making my stopLose break even when my take profit reaches the half way I did this code but it doesn't work. can you help me ? thanks if (takeProfit=takeProfit/ 2 ) // I don't how to apply it to the code below ? {stopLose= 1 ;} { ticket= OrderSend ( Symbol
As the title says, when debugging, the debugger randomly stops with uninit reason 4 ("Chart Closed" according to the Uninitialization Reason Codes). It could be anywhere from 7-15 minutes. I'm not closing the chart and there's no functions in the EA that would cause the chart to close or even...
The RVI indicator ( Relative Vigor Index ) is a pretty good indicator which can be used in various ways to identify reversals. I developed a way to use it for making absolute fool-proof extremely safe and reliable entries, at the beginning of very significant trend direction changes. It can work as...
Hello, is there an easy way to convert any timestamp from MT4 time to local time ? Something like TimeLocal(Time[5])? I tried it with TimeGMTOffset(), TimeDaylightSavings() and some other things but it doesn't really work.. Any help is very appreciated
Helloo Please help me i will open position and i want if this position Close or stop loss i want to open again trade and i write this code but can't run !! " if(( OrderSelect(i,ORDER_SL)==true)|| OrderClosePrice() || OrderStopLoss () || ORDER_SL); {
i downloaded a free indicator but the file is not opening any guide please
i wrote a function to give a vector [ z1...z10] of zigzag index of any forex currency in function output. but it show error in compliation. // int ExtDepth=12; int bigshift= 1 ; int ExtDeviation= 5 ; int ExtBackstep= 3 ; int counted_bars=IndicatorCounted(); int izig= 0 ,MaxZig= 8 ;
Hi I need help with this, I can't find solution. I had MT4 on Win 10, Editor works perfectly but I had to do WIN reset to factory setup. After installing MT4 I have some issue. MT4 terminal Help (F1) works fine but if I will go to MetaEditor Help (F1) doesn't work, Online search (Ctrl+F1) is "OFF"
Hello Is there any article that explain how to use or calculate the Moving average of an indicator not the chart ? or sample code I can study. thank you
int start() { string char [ 256 ]; int i; for (i = 0 ; i < 256 ; i++) char [i] = CharToStr(i); Comment ( /* Copyright © 2009, Sergey Kravchuk*/ char [ 67 ] + char [ 111 ] + char [ 112 ] + char [ 121 ] + char [ 114 ] + char [ 105 ] + char [ 103 ] + char [ 104 ] + char [ 116 ] +
Hi community, recently started algo trading and creating my own EA. When I try to test my EA on tester, it works pretty well but when I use it on real pair, something go wild and it opens a trade at random time (the signal is Valid but I made max trades allowed per symbol which doesn't work). Here's
Hello dear, I submit this topic to get your help as a christmas gift :-) I'm coding an EA, and I would like a way to get events (as notification, or something else) every round quotation. For instance my EA will send notification each time DAX touch 13100 then at 13200 then 13300. I don't want
Hi guys, Im trying to call the blue and yellow buffers for the attached indicator, im using icustom like this "//Indicator Buffer 1 if(iCustom(NULL, PERIOD_CURRENT, "trend-wave", 10, 21, false, false, 0, i) != 0 && iCustom(NULL, PERIOD_CURRENT, "trend-wave", 10, 21, false, false, 0, i) !=
My EA tried to OrderSend(...) a direct order (OP_BUY) and encountered Error 138: Reference cannot be initialized. Please what is the meaning of the error and how can I get rid of it? Thanks
hi, I have tick data in CSV files, however the data is broken into columns whereas when you look at data exported from mt4 into CSV the data is in a single column. Can anyone tell me a way to easily format my CSV files so they can be imported into MT4?? my files are 10years of ticks, so pretty big
I just want for the EA to not execute anything when a certain condition is met (expression1) for (int i = 0; i < OrdersTotal(); i++) { if (!OrderSelect(i1, SELECT_BY_POS, MODE_TRADES)) { Print("Error Selecting Order: ",...
I would like to make an universal indicator tester that follows some concrete rules and I'm looking for best way to input parameters. I couldn't find any good example on the internet. Every example assumed, that we already know all the parameters that indicator has. I made 8 double inputs that we
Hi Experts, I wonder if these is any method that can test one MT4 strategy on multiple pairs / instruments in the same time. More like a simulation of a running account with multiple charts. Thanks
hi my EA that i writed, somedays automatically removed and reloaded (Attached Pic) please help, and please see my other topic and help
[Deleted]
Does anyone know of an adjustable EA that is specifically designed for the range bars or RenkoRange bar charts? Thanks TEAMTRADER
I am confused bet ween the 'Optimization Results' and the actual results. What I am doing is right click on the optimization results 'Set input parameters'. I am running the same Pair. Same time frame on a month old data(from Aug to Nov). But I am getting different results why? What am I missing
I need to stream tick for all pairs from my EA to my external python application via zmq. It currently sends string data but it's uses more CPU than I need it to so I'm considering sending the data in the binary format. The data being sent is mostly double values, with some strings. It seems the
Hi, I am currently working on an indicator that uses iADX data from different time periods. After completing the initial version of the indicator I noticed that there were gaps in the data. I have subsequently created an indicator with multiple for loops that are populating arrays. I though still
extern double PB1= 104000 ; // Buy price of Phase 1 extern double OS1= 0.01 ; // Order size of Phase 1 extern double TP1= 100 ; // Take Profit of Phase 1 extern double PBDip1= 100 ; // Dip Level for new buy in Phase 1 extern double CL= 10 / 100 ; // Cut Loss level extern double PB2= 103000 ; // Buy
welcome everybodyactually I have a EA Robot it only work all demo account and this EA not work real account, I want to work it on a real account so How can I give it a copy? I already made a copy here and I've pasted this file expert folder but that file not EX4 file, after some time A new EX4 file...
int start() { double FastMA,LastFastMA, LastSlowMA,SlowMA; int X; FastMA=iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,0); LastFastMA=iMA(NULL,0,10,0,MODE_SMA,PRICE_CLOSE,1); SlowMA=iMA(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,0); LastSlowMA=iMA(NULL,0,20,0,MODE_SMA,PRICE_CLOSE,1); if((LastFastMA <
Hello How i can recieve mt4 log information (journal-expert) to my email address
Good afternoon everyone, This is my first post on the forum, so please be gentle. I am a fairly recent Forex trader (3 months) and have a live MT4 Account with Oanda. I have noticed that on my 'Account History' in MT 4 I have seen 'Non-MT4 Activity #1314' on 2 occasions. On both occasions a certain
Hi at all! sorry but: OrderSelect(intMyTicket, SELECT_BY_TICKET, MODE_HISTORY) It return always true! But intMyTicket is a int Ticket of a opened order. Another way, with OrderClose() of same opened order si always a actual price How can check if ticket is closed order ??? Thanks at all
Hi, When i'm trying to download MT4 from MQL5.COM but it automatically getting MT5 downloaded instead of MT4. Whenever i am clicking download MT4 button : It getting downloaded MT5 (Redirect Link after clicking download MT4

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.