MQL4 and MetaTrader 4 - page 759

I would like to find the price difference between the outerlines of a Standard Deviation Channel. The points that are marked A and B. Ican find the price and time of the center line but this doesn't seem to behelpful. I've also explored using iStdDev. Does anybody have an answer how tofind the price...
Please help me calculate rollover, i`m so confused about it. So here is the formula that my broker has on its site Rollover= Swap rate / 10000 * [POSITION SIZE] * [NR OF DAYS] And for Yen Rollover= Swap rate / 100 * [POSITION SIZE] * [NR OF DAYS] I also saw on other sites other formulas like:...
[Deleted]
Good morning, I write a simple EA below to run my indicator   if (lastCandle != Time[0])  {   if(iCustom(NULL,0,"MY_INDICATOR",0,1)==2)       {  buy=Close[1];         sl=Close[1]-0.01;         tp2=Close[1]+0.01;         tp1=Close[1]+0.01;      }      else buy=0;  I find that this trading will run...
[Deleted]
  I want to deposit funds directly into my MetaTrader acct. Can I do this or do I have to transfer funds from my TradeStation acct.?
Hi I wrote a simple indicator to show an alert when price breaks out of either the high or the low of the previous day's candle or the previous H4 candle.   It seems to compile Ok but the problem is, every time I close and then restart MT4 the indicator disappears. I've shown the code below (I know...
void DrawAllert(string text, color C=LightGray)    {    ObjectCreate ("rect",OBJ_LABEL,0,0,0,0,0);    ObjectSet ("rect",OBJPROP_XDISTANCE,10);    ObjectSet ("rect",OBJPROP_YDISTANCE,20);    ObjectSetText ("rect",text,10,"Times New Roman",C);    }    bool IperComp (double stochastic1now, double...
[Deleted]
Hi Everyone, I cannot understand why the following structure doesn't work. When I attach to chart, ONLY buffer buy has value. To my understand, it will run the 2 sequences one by one. So the first FOR() will be fully run first  --> I have buy buffer. Then the second FOR() will be processed. (it is...
Hi, I have to send and will receive ASCII - code from/to the other side of a named pipe. Here https://www.mql5.com/en/docs/constants/io_constants/codepageusage I found lots of encodings - but which one is the old fashioned ASCII ? Thanks in advance, Gooly
Dear Traders , Please help me to call this indicator in to an Other Custom indicator I create, some problems I face now, iCustom(Symbol(),0,"FractalZigZagNoRepaint",ZZDepth,ZZDev,0,i) '0' Buffer For BUYiCustom(Symbol(),0,"FractalZigZagNoRepaint",ZZDepth,ZZDev,1,i) '1' Buffer For SELL I have Added...
Mind some discussion on the MT4 terminal features? Let's help MetaQuotes! They made an impressive progress on build 600 but still what boils your blood? My evaporates when cursor loses control of an cought object, eg. vertical line, when moving outside the chart. Instead, the whole chart is flying...
Hi, as fas I remember that functions that are not used by the e..g. EA are not included by the compiler and I could see the compiler-message, which functions has been eliminated. Now I don't see those messages any more. But is it still true that 'useless' functions are 'ignored' by the compiler?...
  please help assistance  (13   1 2)
please my broker changed their order symbol to ERU/USDX or GBP/USDX and my ea can not trade again please can someone tell me which line of code to change to get it working again.please i really needed it urgently.thanks
Problem – Object Search Time I refer to my previous post titled Feature Request - Access Global Variables By Index. There is also a similar search time problem with objectfunctions which use an object name to locate an object on a chart. EA creates, modifies and deletes a significant number of chart...
Hello, ever since upgrading to build 600+ and the new editor, I've been experiencing horrible delays when coding. Previously it worked just fine, but now when I'm typing in the editor there will be a delay of up to 30 seconds before what I typed actually appears. The odd part is that it seems to be...
[Deleted]
I am new to working with mql4 and I have ran into a small issue that I am not able to get fixed! As I use the code before every time it try to sell it gives me the error #130 which means invalid stoploss . But I don't understand what is wrong with the code to cause that. [code] extern double
[Deleted]
  EA not working  (2)
Hello lads, could somebody help me? I am totally novice with this. I am just trying with tester this code and it is not working 100%, not every possible trade is executed. (I hope u can see, that I want to buy/sell when current price reaches min/max). Should I write some other conditions or...
can i follow a mt5 signail on my mt4?
Hello all, I am using the following pivot point technical indicator (mql file attached) which is working fine but problem is that it is showing S/R level line's labels all over the chart which is creating difficulties in reading price action. i tried to manually delete the text labels but they show...
[Deleted]
He everyone, sorry my english. I have this problem. My idea what do I want do: On first graph (ex. TF H1) I choose some bar and I want automatically move second graph (ex. TF M5). Second graph is moving that I would like seing time range H1 from first graph. I am choosing bar on first graph my own...
I suspected that when the value of H=C, O=L or C=O happen in the below equation, the "Zero Divide" error will trigger. But how can I rectify the coding? Anyone care to assist? Thanks and appreciate much.    double upbar_upwickvol=((High[a]-Close[a])/avgvol);double...
[Deleted]
Hi peeps, I'm a bit confused as I've had an EA ( Drag SLTP ) working before which let me drag SLs and TPs by mouse without needing manual confirmation. Previously I disabled manual confirmation by unchecking it in Tools/Options and in the Properties of the EA...however Ive recently got a new PC...
I'd like to be able to see my entry, exit, and profit/loss angle line on my chart after setting up a manual trade, like I do when using an EA.  I hate setting up a trade, then having to shuffle through the account balance to analyze it. Is there an option for having these graphics printed on screen...
[Deleted]
Is there a way to suspend pending orders temporarily in MT4?  Eg. There is a news event that I want to avoid due to it's effects on the market, but I have dozens of pending orders set, which I would rather not cancel & have to re-set after the event has passed. If I could just "suspend" them from...
I don't have this error previously but suddenly this "Array out of range" appear when I tried to execute the EA. Somehow, it's not giving any error during compiling in MetaEditor so far. Thanks. for (int a = 0; a < ArraySize(Pairs); a++)    {        string     CurrentPair = Pairs[a];        double...
Hi guys, I have almost never used the strategy tester and so I have some problems with testing a trailing-stop I just coded. I chose a pair, a timeframe and the dates from yesterday until today. I saw the chart opened and the first bars were printed. That's something I have seen before when testing...
I have defined an external variable as follows: extern bool Level = false; During program execution I need to change "Level" from false to true so I open the properties window and change it. No problem. Then I go away and leave the program running and whilst I am away certain things happen which...
Problem – GlobalVariable Search Time The time required for searches of global variables is atleast an order of magnitude slower than accessing variables through an array.Testing has shown it to be at least 40 times faster to directly read from adouble data type array of global variable values than...
[Deleted]
Hi, i am creating my own Ea, i don't know of programming, so i contracted a programmer to help me. I am developing my Ea in the way i see what is doing for me. But i need to make some changes, maybe can somebody help me? What the Ea does: - Its a grid Ea, works with pending orders - it opens a buy...
hello ;  i want to get list of all receiving quotes symbols programatiaclly..Can i do this?
Is there an easy way to write a script to list out all of the symbols available to MT4 for that broker?