If I run the script below and change charts during it I get the message shown - does anybody know how to get the script to "ignore" a chart change command and just continue? thanks void OnStart() { while(IsStopped() == False) { . . some code Sleep(200); } }
Using the crosshair functionality, one can click on a point in the chart, keep the button pressed and move the mouse. This will display a line a distance in points between the initial point and where the cursor is. I would like to read that distance in points (or to calculate it somehow) from my EA....
[Deleted]
It is confusing. Since expert advisors and indicators execute just based on basic historical data such as D1 (close, high, low, open) , and on the other hand historical data in demo and real metatader is equal, so why expert advisor and indicators result differs in demo and real MT4
Hi, I'm trying to run multiple EAs at once using live data. My bots work fine, and they make trades without clashing. My problem is that I want to be able to pick out which bot made which trade, from the trade report. Is it possible to append some sort of identifier to the trade report? I've...
Here's the importing hello world indicator: //+------------------------------------------------------------------+ //| MyLangTestingGround.mq4 | //| Daniel Donnelly | //|
[Deleted]
Hi, I am a programmer, my boss has required me to develop a program for MetaTrader that can read his current indicators (7 moving average , 1 MACD and 1 Konkorde). His Idea is that a program recognizes certain signs from those indicators, so then a buy or sell. What language, script, MetaEditor or
How do I get at the datetime string? In the sense that the following code will then work: datetime now = TimeCurrent(); almostUniqueIndex = StringSubstr(now, StringLen(now) - 3) + WindowsTotal(); I'm in the processing of migrating legacy mql4 to updated mql4.
Hitraders, I’m quite new on MT4 forums and couldn’t quickly find answers on my 2questions below. Forstudy of price patterns I indent to print MT4 chart-pictures, each containingbasic info, linked to time-price bar-positions [ ObjectCreate (objname, OBJ_TEXT,0,time,price) ]. For instance...
Hi, With some indicators that I have code for, when hitting "Debug / Play" in the MetaEditor, the terminal will bring up the input parameter dialog, I hit Ok and then nothing shows up in the chart (where as drag-n-dropping in terminal shows something), and the window focus moves back to MetaEditor
i am currently coding a trading log which executes everytime a trade is closed. one of the values for my log is the stoploss. however, i want to use the original stoploss when my trade opened, but since i modify the stoploss during the trade, calling OrderStopLoss(), does not give me correct value....
I am doing demo trading where an EA (called "Morning System") places pending trades which I then manage further. Now and then (so far it happened two times out of 45 trades) MT4 opens and closes a trade after the closing time of the original trade with an incorrect lot size (based on a parameter in
Hi all, I am trying to put together an EA but have a few issues. I can only get the EA to open buy orders. I am unable to placea stoploss due to error 130m so i tried ordermodify. I am new to coding my own ea so I am struggling with this. Can anyone have a look and point out my errors and how to...
New article Drawing Dial Gauges Using the CCanvas Class has been published on mql5.com: We can find dial gauges in cars and airplanes, in industrial production and everyday life. They are used in all spheres which require quick response to behavior of a controlled value. This article describes the...
[Deleted]
Hi, i have many csv files by data and want to import to metatrader; i dont know how can i do this. thanks for information and answers about how importing offline data as many .csv files to metatrader
could any one explain for us how to generate this wave , as i don't understand it thanks in advance -------------- Any object vibrating will produce a wave as a function of time. That is to say, all vibration produces a wave form . . . momentum up . . . momentum down. Price vibration in the...
When I hit Ctrl+F to activate crosshair for my cursor, it will only stay until I click the mouse on the screen and then it will revert back to the pointer mode. Why is that? Why doesn't it stay that way? Thanks
Apparently Alpari UK used to be one of the only brokers to trade carbon emissions until they were dissolved earlier this year. Does anyone know of any other broker where I can trade carbon emissions on a demo account, or find tick data for some back testing?
Im looking to print the following value :3 as 00003 value :124 as 00124 value :8324 as 08324 in this case it would be 5 characters.. is it possible? Thanks
Hello I'm just checking with more experienced developers of MT4 than me that there really is no way of upgrading multiple charts' EAs simultaneously? I have a 28 symbol strategy, and although I use a profile to set up all 28 charts arranged as I like on my Terminal, with template assigned, when I...
I started my trading on Mt4 and get used to it. Mt5 is advanced version and I tried on it also. But I was not comfortable with it; maybe I am used to mt4 now. Did the same thing happen to you abot trading platforms ?
I use Tickstory to download data for testing in MT4 Strategy Tester. When I download the data in CSV format and import them into MT4, the results in "Every Tick" model and "Open Prices only" model are the same, with a tiny difference. But when I download the data with Tickstory's "Export to MT4"...
Please help me rewrite this code to draw vertical line on charts instead of opening trades. //+------------------------------------------------------------------+ //| This MQL is generated by Expert Advisor Builder | //| http://sufx.core.t3-ism...
Hello, was wondering if anybody had any answers to why my mt4 platforms crash when inserting some indicators after downloading? all indicators are in the correct folders. Using windows 7. i emailed one provider of the indicator i bought and they didn't seem to have the answers to why it was...
[Deleted]
Hi, I'm trying to create my own log of my trading actions. I'm using FileWrite which keeps writing the first line over and over again. How do I write to a logkeeping each entry on a separate line? Many thanks, T
Dear fellow traders, I am working on a strategy on EURUSD , that is based on Martingale but with a stop after the 3rd open position, and without any indicators. It should work like this (let's assume there is no spread): - On EURUSD, at all times, but I expect profits to be better during active
bool mh = OrderSelect(tck, SELECT_BY_TICKET, MODE_HISTORY );bool mt = OrderSelect(tck, SELECT_BY_TICKET, MODE_TRADES );Print("mh: ", mh, " mt: ", mt, " OrderClosePrice(): ", OrderClosePrice()); That is my code. I am running MT4 build 840. Using the history tester What is the problem? BOTH the...
hi I've researched a lot I did not find a comprehensive definition of the Code MqlTick Can you give a definition of the role of this code thank you.
I don't know if this is a MQL4 question or a Windows question. This has happened a couple of times now with a demo account. I don't want to lose a live account this way: • I make a mistake in a Custom indicator, infinite loop for example, the terminal freezes and I have to close it through the...
Can someone tell me if it is possible to code an EA to draw a linear regression channel and open and close trades on breaks from the channel??
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.