I personally had never used StringConcatenate because it would have made my code less readable and probably wouldn't have save much time anyway. https://docs.mql4.com/strings/stringconcatenate "The StringConcatenate() works faster and more
This script may or may not be of interest to anybody directly, but it does also show by example how to read the keyboard, which may increase its usefulness. Be warned that reading keys like this will take key presses that "belong to
Since MQL5 is now live with my broker I tried a speed test. Since I am a n00b at MQL5 I posted my code on the MQL5 forum to make sure I didn't mess up the test. https://www.mql5.com/en/forum/6475 On my test, the back test was 4x slower with MQL5. The
I wrote a speed test program for MQL4 extern int stops = 250 ; double lots= 0.0 ; bool buy= true ; int init(){ lots = MarketInfo( Symbol (), MODE_MINLOT ); } int start(){ static datetime lastTime= 0 ;
Helo,i just seen one of u r message on the fourm & i ws really impressed & choosen u to ask a question,if possible kindly help me
would like to kw "hw to put a stop (the last previous touch of the upper or lower bollinger band) & start my "adjust trail" & the adjust trail should nt exceed the stop"...plz can u help me in tht..(i donno hw 2 code tht)
thank u..much awaited fr u r reply..this is my email="tasaoirse@gmail.com"
I don't think this is a feature, more like a bug. I just spotted this on one particular EA I was testing. I tried 4 other EAs and three of them displayed Balance and Equity , with one just displaying Balance only. It's clearly not that the equity
Here is my self-destructing EA. The idea is that when it is finished doing its job, it removes itself from the chart. And it does do this very nicely and in not too many lines of code. // Using any sort of PostMessage is a HACK and not recommended
Having been directed to an old post about making MT4 do what you really want, https://www.mql5.com/en/forum/124688 the code below was my first effort. Since it is a weekend (with no incoming ticks) I thought I would put the code in the EA init
EDIT: Whilst it seems to me that this Normalization used to be a problem, the experimental test indicators and scripts below have convinced me that this is not (or is no longer) a problem (at least with the latest MT4 and with my broker). The thread
I have wanted to stop my indicator auto-scaling on the M1 time-scale as the result is more difficult to read. The ... #property indicator_maximum 5.0 is no good as it just scales the top of the window to that fixed value rather than using it as a
For UK traders only ... Let me start by saying I have no financial connection to Alpari, other than my FOREX account is with them. Alpari started doing Spread betting accounts about a month ago and I opened one which became available to trade this
I use different profiles so I can get EURO charts or JPY charts etc in groups. In one set of profiles I have 8 charts, each on a different timescale. This all works well apart from a bug with a custom indicator . When I change profiles the custom
My position size and pip value calculation works fine on FOREX pairs, including JPY pairs, but on the metals it all goes wrong. Comment( MarketInfo("XAUUSD",MODE_TICKVALUE) ); gives me 5 which is wrong since I have a GBP account. I am
I had a problem with Indicators in my EA when using the strategy tester. It used to be that when I would run an EA in the strategy tester the indicators used would automatically appear in the chart. Admittedly things like moving averages all had the
I want to program functionality into an EA so that it can effectively abort , for example if there are no open trades. I tried return (1) rather than return (0) but that has no effect. Is there a "die and don't get reborn on the next tick"