MQL4 and MetaTrader 4 - page 839

To post a new topic, please log in or register
New article Averaging Price Series for Intermediate Calculations Without Using Additional Buffers is published at mql5.com: This article is about traditional and unusual algorithms of averaging packed in simplest and single-type classes. They are intended for universal usage in almost all...
Can anyone tell me if it is possible to code something to stop and reverse a trade immediately? I was told it could be coded and run off a hotkey. If anyone knows NinjaTrader, then you'll know there is 1 single button to click and it closes the existing trade and reverses it using the same...
I am learning MQL but as I have never programmed before, I find online tutorials difficult. Could you please tell me where I can find very simple, small working examples of EA's to learn from ? Thankyou very much Michael
  Help please (9)
it it possible to place an EMA in say a stochastics or macd window so I get an MA of that and not price?
Hi I have an EA that covers all 3mjor timezone trading sessioms, what I am trying to do is only allow the EA to trade on a particular trading once per session. The problem that I am having is the EA will only trade once per sesssion per running of the EA but I have it attached to many charts and two...
Hi people, Instead of measuring each candle from the extreme high point and extreme low point of the candle in question individualy with the use of the 'click and hold' scrolling tool, is there a way to just click over the candle and see the total range that has been achieved in that candle. I want...
Hi, I was trying to send only one order to each bar. But, I’m having some problems with that, since my EA still sending millions of orders. My code is : Orders_total=OrdersTotal();//---- Checking for orders ----//   for( int z = Orders_total - 1; z >= 0; z -- ) // checking for orders      {...
I have a string value 1.44567 how do I change this back to a double value ? thankyou
Hi everyone, i am currently working on an EA that will place a buy order when stochastics is below 80 and a sell order when it is above 20, so i came up with this instruction, buy if iStochastics(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,1)<80 AND sell if iStochastics(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN...
I am using the function iSAR(NULL,0,0.02,0.2,0) and what I want to do is return the latest value of ParaSAR, and add it as a comment in the main window Comment("SAR 0 : ",iSAR(NULL,0,0.02,0.2,0)); My first problem is that it only returns the value to 4 decimal places when my chart shows and...
On my new laptop running windows 7 Liveupdates won't run. I've checked with McAfee and it is not a firewall problem. How can I getupdates to run?
Hello, i got some problems with backtesting and historical data. I used for my EA a backtesting-periode of "5 min" on "EURUSD" and a timeframe from "2009.01.01 - 2011.02.18" and tested it on 3 metatrader-Accounts (4XP, InterbankFX and IncoNeon) with different results. 4XP( Profitfact. - 1.07)::...
tushar102011.02.21 10:47 I want to chang the coad in my ea. I want chang //+------------------------------------------------------------------+ //| HandleTrailingStop | //| Type 1 moves the stoploss without delay. | //|...
HerrHimmler
I have a csv file that needs to hold only the last 100 lines of infromation. The csv updates regularly so it needs to remove the oldest line and make room for the new one, in order to keep the number of lines at the maximum allowed 100. If possibile, how can I delete just one line (the first one) in...
Hello I have an EA but it keeps entering the trades where the RSI is above the maximum buy level, it seems to output a constant figure of 1.000. Here is the code: indicator properties: extern   bool       RsiVerified                     = true;extern    int       RsiPeriod                       =...
Thank you to the providers and members of this forum. This forum has avoided the tendency to deteriorate into negatives witnessed on just about every other forum. Perhaps that happens when you charge a fee. The contributors and participants here are simply refreshing; a tip of my hat to Mladen in...
Hello guys, please i would like to know the difference between extern double and extern int, how and when to use each of them. Also, i want to know if in mql4 language, if 20.0 is different from 20, if yes, what is the difference? any helpful response will be appreciated. thanks in advance
Hi All, Is it possible to export an offline/ Renko data series to a csv format? Or is it possible to open a .hst file? Thank you
Hello I was wondering can someone please confirm: On the current candle you refer to the candle body as close and open if(AtrVerified){if(Atr(0)>Atr(1)&&(Close[0]>lev[0][1]+(Pointnoreturn*Point*mno))){ If I wanted to reference the shadow and not the main body would I replace the Close[0] be...
Hey everyone, I recently got an answer to a problem I was having while trying to make an EA based on ZigZag breakouts. Looks like I got the ZigZag code working (don't worry, I realize that ZigZag repaints...), but now the EA isn't trading. I looked in the log, and the values are being displayed...
seems i cannot post in the library thread itself yet but i need info quickly if possible regarding the library: https://www.mql5.com/en/code/10121 I am getting an empty response from my http call using this library - im wondering if anyone has ideas what the empty response might mean in order for me...
Hello I was able to run the Mobile MT4 on my old Windows Mobile phone. My New Windows Mobile has the NEW Windows Mobile OS7, and it doesn't work or install properly, is it compatible? will it be compatible? I would appreciate your feedback Regards Roki
How do I change Line chart to candles in meta 4
I am using metatrader mql4 now. According to my knowledge, I know that every new coming value will trigger the start function . How can I get the new incoming price of the current chart? Since there are many values in a bar, how can I get every value in a bar? Not only the Open,Close,High,Low...
If you want to have an MetaTrader Server with German Support? Please find attached informations. MetaTrader Server Text: Sehr geehrte Kunden und Interessenten, wir freuen uns, Sie mit diesem Newsletter, über ein erstklassiges Serverangebot für das automatisierte) Trading informieren zu können....
hello everybody I have some trading strategy working manualy well I want to cooprate with programmeres to code my strategy with good partnership offers anyone intrested contacat me tavana_ms@yahoo.com thanks VICTOR1967
Can someone please code this for me? I am looking for an indicator that does this - whatever time frame I am in. 1. look for the last 2 bars that are closed. 2. if they have the matching high or matching low then add a line to connect the highs or the low. I have a broker that has 5 digits so it...
I test my ea a week in strategy tester and then same time i test my ea in live account, BUT both report are different . I test my ea in different demo account(alpari, NordFX,Go Trader MT4,Ava MetaTrader......)BUT all time report is different. so i want this robot work in strategy tester report to...
I'm trying to figure out how to display the server time in 24 hour + minutes format and vertical lines at adjustable intervals on the charts? Thanks for any and all assistance.
It's time to give something back to this forum and the mql community. Next week we will release a free software to create forex signals for MT4. In short, this software generates expert advisors that send signals by email or display alerts in the MetaTrader terminal. No coding or mql knowledge is...