Expert Advisors and Automated Trading - page 173

[Deleted]
UPDATE NOTE: Finally the issue have been sorted out. Hi Wishing Happy Weekend to all. I am struggling hard to create an optimized "Normalized Volume Indicator ". I have used few other methods too including MAOnBuffer() functions. Following code is my latest attempt, the same code I am using in Price
  EA Transfer  (7)
Please I have an EA am using in demo trade. How can I can I transfer the EA to my real trade?
Hi all, Im having issues finding an EA that can trade the moment the Fast EMA cross up over the Slow EMA, then when the Fast EMA crosses the Slow EMA back down it can close the long trade and open the sell trade. I also want to be able have a Stop Loss and Trailing Stop Loss. I keep downloading
  EA ISSUE  (1)
when i add my EA onto the mt5 charts the mt5 just closes down. HELP
Hello guys, i've just started making this experts advisor. The entry is running well, but i cant sorted out about the closing code. Please help :) #include <Trade\Trade.mqh> CTrade trade; void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits );
Hi, I would expect the following code to work. But MQL giving "'Order' - illegal returned type". Any idea why? C # namespace ExpertAdvisor { public class ExpertAdvisor { [DllExport] public static Order Order() { Order Order = new Order();
Hello There is a problem in new metatrader5 release This is an expert int OnInit () { Comment ( "Please Wait..." ); return ( INIT_SUCCEEDED ); } Problem is Comment When Comment a message whole metatrader5 crashes Thanks
I wrote the following code. I expected to have one operation per year. However I see that many operations are missing. For example: EURUSD (1971-2021) it has 50 years of history but I only get 23 trades. I have tried with many currency pairs and commodities and many operations are missing as well
  EA Development?  (2)
Hello, I am struggling to find anyone to develop my EA. Its up in the freelance section and is relatively simple if not already exists. I have been trading manually for a few years now but having decided automated trading may be worth trying, I have very little knowledge of MQL5, code base,...
I am trying to create an EA. I have a strategy I would like to try out. I have very minute coding knowledge. I need directions on how to go about
[Deleted]
Dear Members I am trying to use <MovingAverage.mqh> SimpleMA method in a Class. I have defined arrayClose[] and used CopyClose to get closing prices into array. However, when I use this array in SimpleMA(index,MAPeriod,arrayClose); it is returning 0.0 for SMA values. Is it necessary to use SimpleMA
Hi! I have a question about a hotly debated subject, but I still don't have a solution to my problem, so I would be grateful for suggestions on how to get a solution for my case. I have a strategy in an EA that uses Martingale, and therefore doubles the lot when the previous operation is at loss
This EA is here https://www.mql5.com/en/code/15848. Please fix it to work in Metratrader 5.
I want to read, for eg. the live RSI of EURUSD, AUDUSD, CADJPY when I'm running EA on NZDUSD chart every several ticks passed on NZDUSD, however, I don't want to open the EURUSD/AUDUSD/CADJPY chart all the time. I remember in such case the EURUSD etc. might not always keep refreshing and will return
Hi. I've created my first EA. If I set SL and TP in the code, the Tester runs but no operation is opened. If I don't set SL and TP (or I set them to 0) the Tester runs and open operations, but obviosly, no action is taken by SL and TP: the operations go on until the end of simulation and the
[Deleted]
I have coded an EA which trades the Ichimoku of RSI. It is compiling no errors, no warnings but its not running any trade even on the strategy tester . In case i missed a certain line of algorithm or did something wrong, may you assist. #property link "https://www.mql5.com" #property version
Greetings, I'm wondering if anyone of you could tell me if it's possible to have a developer from this MQL5 forum create me a program that scans the Telegram Signal channels I'm following for latest messages and if it shows wording like the following down below, it will instantly place those 3
[Deleted]
UPDATE NOTE: Sorted out by correcting the dot with colon in Time, as pointed out by William. Dear Members Please help to debug what is causing the second Data definition as "invalid time" warning !!! Warning "invalid time" CTradeState.mqh 141 40 SetTradeState(D'2021.01.01 20:00', D'2021.01.01
Hi, I'm opening this thread here to discuss possible things that can slow down the backtest. I created an EA and its backtest is very slow and I don't know why. I would like to know what the possible causes of this slowness are
Hello, I am starting to code in mql5 and I am devloping a code that opens one positions every time there is a crossover of daily EMA8 and daily EMA21 and price is above daily SMA200. I do get to open 2 positions, but there are not any more positions but conditions are being met... I am not getting
Hello! I am new to developing on MQL5 and basically coding in general. I watched a step by step tutorial in order to learn how to code a simple MA crossover. The problem is that I am getting several errors in lines 23,25 and 41 and despite the fact that I have been trying to resolve them for a few
This piece of code is from starting with mql5. it works fine when displaying comments and also opens an order correctly at odd times, the conditions pick up the correct value for the current candle wanted and displays it , buffer is set for 0 because it gets the current candle, as before it had
  magic number  (1)
Hello friends If the magic number of the experts is duplicate, will there be a problem in their performance
Hello dear friends I want to know how many signals and indicators to enter into a trade in an expert that Meta Trader 4 can easily process. I mean only in one expert Thank You
Hi i use this code in my EA to use Zigzag indicator int q, l; double r0, r1, r2, r3, r4, r5; l= 0 ; while (q< 5 ) { if (r0> 0 ) {r5=r4; r4=r3; r3=r2; r2=r1; r1=r0; } r0= iCustom ( Symbol (), 0 , "zigzag" ,depth, 5 , 3 , 0 ,l); if (r0> 0 ) {q+= 1 ; } l++;
Dear all, I have a problem with a signal I am subscribed to. The opening trades arrive with a delay of 20-30 min while the closing arrives immediately. I contacted my broker, but they could not find anything from their side. The signal owner did not respond yet. I increased the slippage requirement
In the thread Standard way to detect stop loss transaction executed on a position it was suggested to catch SL and TP events by waiting for TradeTransaction a event for the "opposite deal, with the same volume and your sl price" as this "means stoploss has been triggered" The thread...
Dear all, I have been trying to find this, searched for it, didn't find it, not in the documentation, not in the forums. Maybe someone knows the answer to this. I bought several EAs, Indicators, etc. I have a computer with different users on it. Windows 10, two users. If I install MetaTrader 4 in
Hi all, I'm trying to code a dollar cost averaging expert advisor. I have gotten to the point where it will "average" buy lower and move the average price down. However, what I would like to add is a means to remove the take profit if the lot size equals more than 1 contract and replace with limit
Hi there. I tried VPS MQL and one EA seams non running. Different EA runs. I tried both EA from PC metatrade and al run fine. Is any new issue on VPS in those days