MQL4 and MetaTrader 4 - page 212

To post a new topic, please log in or register
I have an EA that does well but is in need of help! What I need is a Stealth TrailingStop... so my broker (who has large TP/SL spreads) cannot limit me. The EA already places a TakeProfit and StopLoss when the order is placed, what I want is the Stealth TrailingStop to have an activate area... such...
Dear All, as default mt4 there are 2 change color, body and shadow, for outline body color will same with shadow color how to change the outline body color to be same with body and difference with shadow color can someone help me to provide an indicator or something else ? please see attached file...
Hello, I have an indicator that I use in an EA, which does its calculations using many symbols, which means that while optimizing the EA, the indicator gets different results than on live. So what I'm trying to do is export the live indicator buffer to a csv file, which I was able to do, and then...
Hi, could you please help me with my notification EA? After action on B1 (call it for example actionBar), should send me an email about it on the current bar B0, but it send it with one bar delay.  This is how it shloud do: if(B1 == actionBar){SendMail();} => actionBar is actualy B1 and send it on...
  Add Alert (4)
Hi I am new to metatrader I found this wolfe wave indikator called wolfe wave_nan https://www.forex-tsd.com/59615-post1601.html and i would like to add an alert, if the 1-3 line is broken at point 5 . i tested different alternatives, but without success void Alert( ...) if(Close[0]<signall)...
Hi Friends, I Am Not A Mql4 Programmer But I Am Stuck In a Situation. I Have A Simple Moving Average Robot. Only I Want Is That If I Have Placed A Order manually Then My Robot Should Wait For The Order To Close Before It Start Trading. What Line Of Code I Should Add In My Ea So That It Only Places A...
//+------------------------------------------------------------------+//| DeMark Trendline Trader.mq4 |//| Copyright © 2005,Kara Software Corp. |//|...
Hi Friends, I know the problem is so simple so that I coudn't solve it as I'm not expert on coding yet... int a = 0;int b = 2;a += b;  The result will be like a = 0, 2, 4, 6, 8, 10,... It's okay until a certain condition will be fulfilled but my problem is How to initialize the variables again to a...
Hi guys, basically i have built a simple ea that only trades at the start times i specify, sometimes it works well and other times i think theres lag because the time on the market watch is slow, its slow to kick it.  I have tried to change the time from currentbartime to TimeLocal and then add in a...
  EA problem! (11   1 2)
Hi, Can anyone help me. I am having an intermittent problem with my EAs. My EA's are very simple. They calculate the order size based on the previous high/low and place an buy/sell order and place a stop. When I start my MT4 platform the EA's will sometimes load automatically! They are not coded to...
here is my *flat chart* indicator. I want to add ofset to every new bar which is the same type as their own previous bar ( every bar that is not the first of its own type). The ofset value will be = (Open (present bar) - Open (first bar of the *present bar* type)) I'll be glad if someone can help....
husonchows
What does it mean by , bool x=(a,b); ?  I am reading code . and i dont understand what's this about . a=true and b=false ?     if(CompareDoubles(sl,OrderStopLoss()) &&       CompareDoubles(tp,OrderTakeProfit()))return true; Thanks for answering 
hello  i am trying to make an indicator  everything is well and good except for one thing  as you can see when the conditions are true the x sign is appearing in a separate indicator window but its not fully visible so how can i move the x sign a little bit above so that the whole sign is visible...
hello i am currently working on a system, and i am trying to create a histogram like the one attached below  but what i currently have is this: so a little help would be appreciated.  source code to my indicator is:  #include <stdlib.mqh>#include <stderror.mqh>//--- indicator settings#property...
Comments that do not relate to the "EA problem!", have been moved into this topic.
Hello everyone, am building an EA to display the pips in a candle stick as a comment. But am confuse on how to go bout it. I used ((High[1]-Low[1])/_Point) but when displayed am seeing a different value.  When i use((High[1]-Low[1])*_Point) i get a totally different value too.  so please guys what...
I have an EA loaded and running in metatrader on several symbols and timeframes that has been running for the past week on a demo acct, and is placing trades; however, it seems to be placing trades in the opposite direction than I want them. Meaning, it biases placing trades toward SELL when it...
When I place the following code onto the chart why does it usually take 5 minutes to load onto the chart. I know im doing something wrong with buffers and iMAOnArray but cant see what? #property indicator_buffers 1      //---- buffersdouble...
Hello to everyone, and thank you for your very generous contributions. I'd like to contribute too to your amazing community! I have studied MQL4 book and doc a year ago in the website and I found it very amazing. Right now I'd like to take my skill to a new level. I'd like to create custom graphical...
Hello everyone, I have been trying to call a second EA from my main EA. I have tried to use #include <KeyBoard.mq4> which causes an error "Can't Open D:\xxx\xxx\xxx". I would like know the correct way to make this possible.
Hello, I am new to mql4 and i start to make my own EA using condition which i take from some free indicators and some bought indicators from the market. I was so disappointing today ,when the developer of an indicator(pattern detection) tells me that is a trading system and it is not have iCustom...
I am trying to open .txt file for read and write access to log some information. Following is the code snippet. int OnInit() {    string fileHandle = FileOpen("test.txt", FILE_CSV | FILE_READ | FILE_WRITE, "+");    if (fileHandle < 0) {       Message("Can't open test.txt in MQL4\\files folder for...
Hello, I am very new to this site/community, but I have become a real fan of making EA´s. Through various websites and youtube I have become introduced to MQL4. Just finished my first EA and after quite a lot of syntax errors that I was able to correct/improve the syntax. After testing my program I...
I made this ea to close all open trades when total pips reach +30, but it doesn't seem to be working, what's wrong with the code? //+------------------------------------------------------------------+//|                                               close on pips1.mq4...
It's just a simple candle pattern recognition indicator that has an alert already on it, but there is no sound to the alert.
Hello everyone I'm trying to setup a new trading strategy It's my first, so I have a question. Let's say I start with OP_BUY with a TakeProfit of 2 pips If the martket goes down, so taking no profit, I want to do something else So { OrderSend(Symbol(), OP_BUY, etc...) if(the market goes down open...
Hi guys, I'm relatively new to building my own EA's and would appreciate some assistance coding a customized exit. I would like to close both long and short positions at the middle BB. Thanks in advance for your help!!
Hello fellow traders, I want to modify an existing Murrey Math Line indicator (https://www.mql5.com/en/code/8570) on how it drawth the lines. Right now it draws the Line as a Horizontal line on the charts but I want to change it so the line will be only displayed from the current candle (start) to...
Hi there,  Just want to ask, if I use an activation on my current PC. But my PC seem have some problem so I have to take it to the shop and might reformat the PC. So is that mean that I will need to spend another activation on the next? 
I am trying to write ea that will place buy when the indicator show arrow sell or buy. I am using icustorm to do that but i am struggling with comparing values. here is my code:        void OnStart()   { //---        double sell=iCustom(NULL,0,"myIndi",0,0);        double buy=iCustom(NULL,0,"myIndi"...