I coded my EA to buy this way: bool buyNow() { Print ( "*************************** PRICE: " , this .form.price); return ckErro(cTrade.Buy( this .form.vol, this .form.name, this .form.price, this .form.stopLoss), "MyClass.buyNow " , this .sBoleta); } But Metatrader is buying
Hello! I am trying to make and EA that will search in my historyordes and check if my last 4 orders of today are all lost so that i can change my lot for the next trades. For example if the consecutive loses are 2 increase next trades lot to 0.2 OR if the consucutive loses are 1 increase the lot to
Can someone please help me how to make Automated MACD Trader, trailing stop and ability to change the MACD Default settings.... Thanks Babar
[Deleted]
Hi again folks. After working hard on the pivotmagic EA (which is getting popular every day), I found that simpler mechanisms are probably better for profit in the long run. I therefore developed an extremely extremely simple system based on 2 MACDs: MACD1 is to identify the entry point: When the
Hi, I just made some EA with simple function, but I have a problem. The settings of my EA is when 2 EMA crossed the numbers within the DX variable will change. For example Dx = 10 If fast EMA crossing up Dx += 1 that mean Dx = 11 If fast EMA crossing Down Dx -=1 that mean Dx = 9 But, when EMA
Hello, i try to write a file in the file section. The should be created. string terminal_data_path= TerminalInfoString ( TERMINAL_DATA_PATH ); string filename=terminal_data_path+ "\\MQL5\\Files\\" + "myfile.txt" ; int filehandle= FileOpen (filename, FILE_READ | FILE_WRITE | FILE_TXT ); ///
My Multi Symbol Multi Period Scanner EA performs 6400 calculation per second, and consuming 80% CPU and 3GB Ram My CPU is Core i7 6700 and GPU is Nvidia GTX 970 The calculation scans 14+ buffers on 11 timeframe on 130+ symbols I am thinking to convert my EA calculation to OpenCL Here is results for
Hi AFAIK it's not possible to open a trade withing the candle duration on Open Prices . other systems allow that. it's just a matter of checking if the price asked for entry is within high and low of the bar, then computing the Drawdown as if price went the opoosite way and came back (worst case
Is it possible to create a robot that does tape reading? Check the order book, times and trade and the volume at price
Please Help Please advise this error suddenly appeared. Is there a way to disable auto update ? RE 2 16:30:52.832 AiFetchV2.03 (EURGBP,M5) Access violation at 0x0000024A29BF7215 read to 0xFFFFFFFFFFFFFFFF in
Hello all. I am looking for a way to toggle the "Allow Algo Trading" checkbox (counterpart to the MT4 "Allow Live Trading") and not toggle the "Algo Trading" button on the toolbar. Is there a way to do it? native or dll any method is ok. Apologies in advance if this question has been asked /
Hello All I am seeking some advice from more experienced members of this community Basically I am working on a Socket client EA which connects to a remote Socket server and get some calculated values from the server , after receiving those values I am saving these values into a text file and
Hello everyone, in brief, I design an EA increase linear value of lot with Balance (Money Management) For Example: for balance 100$ --------> 0.03 Lot so, balance 1,000$ -----> 0.30 Lot and balance 10,000$ ----> 3.00 Lot .... or balance 33.33$ -------> 0.01 Lot But by backtesting (8Years), I
Hello, I've read topics on here already regarding creating multiple terminals on one computer. i.e. copy directory folder - rename - create shortcut.. seems like a simple process to have multiple terminals for running different EAs but are there any shared registry settings or other settings in
When placing an Order using CTrade, I'm adding a comment string in the arguments. I'd like to retrieve that Comment later, once the position has run its course and hit its TP/SL. I must be looking in the wrong place, however, as the only comment I can seem to find looks something like "sl: 1.12345"
Hi, I have no ideas anymore what might be wrong with my code. I try to open a SELL LIMIT order but the terminal just says "invalid order", Error code 10035. Here is the core fragment: int OnInit () { const string symbol = "EURUSD" ; datetime exp_time = TimeCurrent ()+ 9923 * 60 * 60 ;
metatrader after a few hours deletes my pending orders, why it happens, how to fix it
Hi all Fairly new to this and I've been working on an EA, and I needed a trading-session piece of code, which I found in the forums and copied in, but it has a sleep timer in it of 2000ms (which actually backtests the highest/best results). When I backtest and optimise that sleep timer value (from 0
Let say we have 2 conditions for trailing: Trail with 300000 points at a defined signal. Else trail 100000 points if previous trade was a loss using martingale. We have 2 Open Positions at 0.2 lots on diff pairs (Boom1000 and Boom500 and Boom500 hits Sl. On candle open, Boom500 a position with 0.4
I'm asking someone to suggest a simple (knowingly losing, not the point) trading strategy. If the message is sane, that is, will be more or less clearly set out what needs to be done, implement here, in this thread, trade on this strategy, in Python. I'm waiting )
Hi everyone, I'm designing a Multi-Symbol EA and I tried to count every position of each symbol method of symbol splitting input string TradeSymbols = "EURUSD,GBPJPY,AUDNZD,CADCHF" ; string SymbolArray []; int SymbolsNo; // Number of Symbols
I believe a StopLimit order has 2 components Stop price and Limit price I want to know if the stop price has been reached or not. If it has, what elements of the orders has changed. E.g. Can the StopLimit be modified and how? As this is not a limit order should I update the price? When accessing the
My EA needs to pick up the data from every candle for a specified day for a specified currency pair.
(3)
My EA needs to pick up the data from every candle for a specified day for a specified currency pair(on M1 There would be 1440 candles, on H4 there would be 6 candles). Is this possible, because my EA says there are 19 potential trades that day, but my data print tells me there are at least 301. So I
Please MetaQuotes expand the number of currencies available in strategy tester. We really need JPY. Also the addition of ethereum or solana (some cryptos) would be ok. Thx
Hi all! I should point out right away that I tried to ask these questions in the relevant thread here , but somehow the question didn't get the attention it deserved. Although, it seems to me, the topics touched at least once touch/emerge in many people's minds. Sort of like questions from the FAQ
Hello, My local time is frequently trashed by Windows 10 on Windows Update survey, so local time gets unreliable to the point I need popular web page like worldtimeserver.com to set it right, Have you heard about a module able to grab Local Time from this page through MQL , because it is well
I'm trying to make EA for 2 EMA crossover but when 1st ema crossed 2nd ema I want it to send a pending order instead a market execution order, I got source code from this website. But when I try to edit for my EA version , I get confused about code that I want to edit. I think, the code that I need
i have my EA running in two different platform but in one platform my pending order is deleted as soon as it take .I have pending order strategy against the main order. But in another platform my EA is running with no problem
Hi All, I need some help here. I'm trying to detect pending order of the same price so that I will not send same PO for the same price but it is not working here is my code double adjustpt = SymbolInfoDouble ( _Symbol , SYMBOL_POINT );
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.