Download MetaTrader 5

MQL4 and MetaTrader 4 - page 927

To post a new topic, please log in or register
1. NormalizeDouble(Ask,MarketInfo(Symbol(),MODE_DIGITS)) < ====> ASK WHY RESULT DIFFERENT FROM EACH OTHER?
Hi, Wondering if anyone knows how I can make a label fixed on the chart so it cannot be dragged around after double-clicking on it? Thanks, Jason
Does it make more sense to run an optimization for 2-3 years and use those settings and hope that it captures 99% of all scenarios? or Run a 1-2 month optimization every month? and use those settings for a month...and then run the optimization again? Thanks, -Ron
Gentlemen, and Gentleladies, I've been developing and backtesting an EA from scratch from some time. It will be trading strictly EURUSD to begin with. From the beginning I designed the EA to only handle one trade at a time. I now realize that I want to allow not only up to two Buy or 2 sell...
  Text vs Label (2)
What is the difference? There's no good description of each in the documentation. Can anyone elaborate please?
New article Auto-Generated Documentation for MQL5 Code is published at mql5.com: Thearticle describes the use of Doxygen to create HTML help file fromstructured comments in MQL5 code. Then it can be compiled into a .CHMhelp file by Microsoft's HTML Help Workshop. Author: Paul
Hi all, I have an idea on how to work out support/resistance lines but do not have enough time to program it. I hope those developers who offer their skills at no charge would be interested in implementing this thing to help me out in my trading as well as making a good tool for themselves. Traders...
I've read a few articles on the subject of calling the MT4 terminal from an external program, but haven't found anything yet that addresses the issue of triggering the start() function without a tick arriving. What I am trying to do is to 'wake up' the start() function so that it will invoke one of...
Hi people, I´m looking for MQL programmers in order to encode 2 workable strategies. Conditions we better discuss one to one. Skype me best on: palvort or email me with your skype and email adress and best hour to reach you in GMT format. Hope to hear soon from you! Pablo
Hi, I am new here, but I've been working on a EA project for some time. I have a question: Is it possible to overlap graphical objects (text, label etc) in a specific order. In other words, I understand there's no such property as zIndex (as in some other high level programming languages), so how...
Hello what should I change this code to display the time in seconds to 2 digit constantly? double i; int m,s,k; m=Time[0]+Period()*60-CurTime(); i=m/60.00; s=m%60; m=(m-m%60)/60; //Comment( m + " minutes " + s + " seconds left to bar end"); thanks
Hemmat
Hi I would be very grateful if somebody helps. As you probably can find out by reading my questions, i'm newbie in forex and programing it. I searched the forum with several keywords but i didn't find my answer .However i want to ask some questions that may be very elementary and hope to be...
I've searched the forum and book and couldn't find the answer. I'm trying to write a code that will do the following: if (ticket1 || ticket2 || ticket3 || ticket4) closed{   ticket5=ordersend(...) ...} how do i write it correct? which function to use? Thanks!
Hi! I'm a newcomer programmer and something is really complicate at the time. I am trying to develope a function that - in case of orders that are closed with a loss bigger than XX pips or - orders that are still opened but loosing more than XX pips doesn't allow to send other orders for 30...
I am not sure what I am doing wrong with the following code: I am trying to fill an array with a built in custom, and then call the individual array elements after the array has been filled. What am I doing wrong? Here is my code: <code> for (i=0; i<25; i++) { ADX_bull[i] = iADX(NULL,0,14...
Hi, i am having a problem with the above. Im pretty sure its due to the some sort of size limit / restriction with the string variable type in MT4 but i would welcome others thoughts. I have a single dimensional string array with 40 elements. some of these elements are set to specific values during...
Hello friends !!!!!!!! I´m very interested in patterns like this if((Open[i+1]>Close[i+1])&&(Close[i+1]>Open[i])&&(Close[i]>Open[i+1])) Swing up; if((Close[i+1]>Open[i+1])&&(Open[i]>Close[i+1])&&(Open[i+1]>Close[i])) Swing down; Combinations of closes, Openings, highs and lows....... Anyone is...
  WPR ' s MA (4)
Please Help. Moving Average value chart of WPR was not able to draw encoding. Can you help me do ? Thank You WPR' s MA
I would like to create a stop loss facility that once hit it will flat all the open position for a specific instrument, the distance should be in Pips. To make thing clearer, I am using a scale in approach,yet I want to get out of the entire position if any of the open trades pass the stop loss...
xxxxxxx yyyyy
hi, i'm currently using 1 customize indicator from others vendor and i want to retrieve the value return by this indicator, is it possible to retrieve the value?
I could figure this out on my own but it would take weeks or months of forward testing, so I'd just like to hear what your experience is with this. Some indicator driven EAs can work quite well, but its well known that these need frequent optimizing to work. So lets say I optimize on last 2-4 weeks...
I have a delicate situation. This is what I am doing. I need to place an object (let's say a SQUARE) at a certain location like x, y coordinate and NOT price, time location. It has to be at x, y location because the SQUARE's location is OUTSIDE of the time but can be within a price. This means I...
I use this indicator at parameter setting 1250 for EURUSD works good. I trade this 2 minutes only at GMT0 follow the color bar at Daily Chart. I would like to know the parameter for other currency pairs, can someone please help me? Can someone help me also to modify this indicator at the color...
  Forex Trading TIP #2 (13   1 2)
When programming your EA, keep in mind that EA is only as good as your trading level. THIS MEANS: 1) If you are new at trading, don't even waste your time with EA programming. 2) Demo trade and then trade live for a few years. 3) Once you are profitable live, then consider building an EA. 4)...
I am looking for the numbers/terms related to programming moving averages in an expert advisor - such as in Methods - what numbers in "MA method" corresponds to Linear Weighted, Simple, Exponential and Smoothed - the same for Apply To - Weighted Close, First Indicators's Data, etc. if in mql I use...
 Can some please help me here, just wanting to know how to use this inidicatorand what the rules are and also whether the stop loss on this indicator is accurate?Thanks
i attach an ea to eurusd chart,the chart shows the price as five digit like 1.488888 but i use Print function to output,i got the price is 1.449. and i got similiar result on gbpusd in the same EA . may someone help me to explain it ? thank you the code as follow: ......... .....................
Hi Currently coding an EA which is taking into account Asian session high/low for buy/sell signal. Can anyone help me on the code below? I don't get the correct session high/low values: datetime dt=CurTime(); datetime Asia=StrToTime("01:00"); datetime AsiaClose=StrToTime("10:00"); if (dt ==...
How to say " if an actual price move up, above the current OrderOpenPrice() B23 in this example, make S22 with the price 40pt below B23". i tried with this : if (B23open(OP_BUY)==1 && change23set()==1){ for (int b23=0;b23<OrdersTotal();b23++){ OrderSelect(b23,SELECT_BY_POS);...
My Expert Advisor is not compatible with this... Is there any special instruction for ModifyOrder(), OrderSend(), OrderClose() functions? I wrote EA for standard values as 1.4555 for EURUSD not 1.45559 for example... then Spread equals 23-25 points The brokers write that spread is smaller but...
1...920921922923924925926927928929930931932933934...1249