Expert Advisors and Automated Trading - page 85

I tried 100x to upload my EA in MQL5 market place. Always bringing a error msg when i do upload. Can someone help me in this one
I want to print value of "i" but that is printed incorrectly and it does not start printing from zero This problem does not exist for loops with repetitions below 100(or 150) for ( int i= 0 ; i< 500 ;i++) { Print(i); }
Hello, So Meta trader 5 allows you to use Custom Symbols. With custom symbols to an extent you can use an expert advisor you bought on the market and test against this. The idea behind testing using a custom symbol is that I can take some arbitary period of the real data, export it out to a CSV
Hey hey People Tom here, I want to detect the psar reversal up/down wich i have managed to succeed, however the psar can sometimes "flicker" like reverse multiple times in a candle. Wich is why i first want it to wait for a candle close and then check for a reversal, however when i check for a new
I have this code which should close all trades when a certain condition is met. Normally 3 open trades of the same symbol are open when the condition is met. However, the code closes one trade and leaves 2 others instead of closing all the three trades how do I amend the code to close all the three
  OrderTotal()  (6)
OrderTotal() returns all pending orders. How can I make it specific to return only for a particular symbol and only for BUY_STOPS. I’ve been searching for hours in the forum. Only solution I found was written in MQL4. Is this even possible? Please kindly assist
Hi, im new to trying fx blue, but the ea cant run and it shows "can't reach ......." Anyone know whats wrong with this one
Is it difficult? Is a complete rewrite of the code required? I am asking for my EA seller. Because i want his EA can trade all 28 pairs at once
What the topic says, I have tried to look for some but all of them has to do with rewriting the whole mql4 in mql5, so I am here to ask if there is a simpler way
is there any EA which can close all opened charts and all opened trades when the price reaches a certain level
Hi to all guys , I am struggeling my head with a problem that sesms easy but i am not able to get rid of. the problems is with pair XAUUSD where my broker give me these values : Ticksize = 0.01 and contract size ( or lot size ) = 10. ( very poor value ) . the open price used is 2006.535 and the
preface : I know this is something i'm doing wrong 100% but i can't see it unfortunately so thanks and sorry in advance I'm using a union to quickly turn argb to 4 byte channels and vice versa union ucolor{ uint col; uchar argb[ 4 ]; }; Now , on init i'm creating 2 global ucolor objects and i'm
Hi, i'm learning so please have patience.... :-)  I'm using the Strategy Tester function to try and write a simple program to auto trade based on RSI breaches, as a training exercise. These are the settings i've applied, which I think should buy at 30 and sell at 70.  However when testing the...
Hi I have created a trading platform that automatically trades my strategies. I can open trades, but each time I try and close then, it fails. Open Position (Report extracted from the trade tab on the MT5 terminal): Symbol Position Time Type Volume Price S / L T / P Market Price Swap Profit Comment
If I let my chart run with all my indicators and EA, it will sometimes stop processing new events and ticks until I force it to get unstuck by changing timeframes. 1. No errors in the log 2. MT5 is still perfectly responsive (I can draw objects on the chart and change its settings while this is
Could anyone help me Pls!!!! I get this error after try to sell EA on the market test on EURUSD,H1 (netting) 2020.04.01 01:13:51 current account state: Balance: 658.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00, Equity 658.00, Margin: 0.00, FreeMargin: 658.00
During my backtesting, I encounter a few invalid stop errors when using the "random delay" setting. However, when I switch to the "zero latency, ideal execution" setting, the test runs error-free. Could this inconsistency be attributed to slippage issues arising from trade execution speed? If so
Hi Can anyone tell me how I can color (or highlight) a portion of the current candle on a chart? I have code I wrote that checks for a possible run-away candle that is based on a certain number of pips The code works except I don't know how to draw attention to that specific candle other than a
I have a news filter that disables / enables auto trading button before/after news releases. For this it uses DLL. I would like to share it for free. Can I submit this news filter on mql5 market
Hi, I have MT5 open with 5 or 6 charts. I use an expert advisor and various custom indicators . The charts move automatically, each tick is refreshed. But there comes a time, some chart stops, the ticks do not update, as if the market were stopped. The only way to refresh and resume tick event is
Hello, When running an expert advisor on MT5 with the broker AMP, the execution fails and returns error code 10017. This does not happen when utilising of brokers for trade execution. Has anyone else experienced this or have a solution ? Thanks in a advance
  Highs and Lows  (5)
I wrote a code to calculate the values of the the fractals and put them in an array. At first, I had results of weird numbers but when I added the line that makes fractal=0 when the value of the fractal is "EMPTY", I started getting results as 0 on the chart. My question is, why is the value empty
Hello, I am encountering the "Invalid Stops" error message in my EA code. After conducting a check, the value that is being returned is 0. I have confirmed that the issue is related to the stop loss and not the take profit, as I am not placing a take profit at execution. I would like to know if you
Hello, can someone explain to me why this does not work? void OnTick () { myfunction(); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+
Hi there, I've been woring around this idea for some time and I still haven't found the way to make it work properly. The idea a is quite simple, on a multicurrency advisor , let's say 28 fx pairs and 8 traded currencies filter (do not trade) those pairs with an already traded currency. For this I
If I have an EA (MyEa.ex5) and a set file (Params.set). Can I use a python script to automatically start the EA, read the results when done, update the .set file and repeat the process
  just ready EA  (5)
Hi I need any expert advisor for any trading system that is open source ( mq4 format) , provided that it is fully prepared for adding here on the site (market/mt4/experts) without errors in the code such as lot size and margin I will modify it and add my own strategy thanks
  Order Size Error  (9)
My EA is having an occasional issue calculating the correct lot size. Most of the time it functions properly but occasionally it will try to send an order for the maximum lot size that my broker will allow (I can tell this because of the journal tab, along with a 'not enough money' error). The EA
#include <Trade\OrderInfo.mqh> COrderInfo eapending; void DeletePendingOrder() { ulong ticket = 0 ; for ( int i = 0 ; i < OrdersTotal (); i ++) { if (eapending.SelectByIndex(i)) { string OrderSymbol = eapending. Symbol (); ulong Ticket
Hello I have an EA and I don't have the source code and I cannot modify it I activate it for multiple pairs and when he open a trade in one of the pairs I want to close the EA of the other pairs and only hold it in the pair the order was opened in