Expert Advisors and Automated Trading - page 72

hi! I've never used this before, I whant to know the ohlc from the first 7.5 minutes for a 15 min candle sticks. Is this possible? how can I approach this
Hi, Could anyone tell me, is there a way to automatically stop the EA if the equity is less than a predetermined value. Is there a bulit-in function in MT5
Hi I'm still a beginner, and I'm just getting to grips with MQL5's native functions, for example, when I need to call native functions like iMA, should I call the Buffer from the OnCalculate() function? And sorry if my question is silly, that's okay it's a question. If you have any links to good or
Hello, I am new to MQL5 and may be missing something, that is why I need your help. I have simple EA that checks the performance of the indicator and it seems to work fine, but I found that it has ignored indicator conditions and hasn't opened trades several times. Can't seem to find the reason for
how come a line of my backtest has a profit x and a dd y....and when i run the single test the profit and dd is way different from the backtest line result
Hi everyone, how are you? I'm still a beginner and I realize that the time rendered by the TimeCurrent function is 3 hours longer than GMT? MqlDateTime timeCurrent; TimeToStruct ( TimeCurrent (), timeCurrent); Print (" TimeCurrent Hour = ", timeCurrent.hour); Or am I missing something
// Input parameters input int myParameter1 = 5 ; // an integer input parameter with default value 5 input double myParameter2 = 1.5 ; // a double input parameter with default value 1.5 input string myParameter3 = "hello" ; // a string input parameter with default value "hello" // Global variables
  Symbol Point Value  (37   1 2 3 4)
Morning! Can someone tell me how MT5 calculates the symbol point value using the SYMBOL_POINT enum. For example the result of the following: // GET POINT VALUE OF CURRENT SYMBOL double symbolPointVal = SymbolInfoDouble (CurrentSymbol, SYMBOL_POINT ); What is the calculation that it is doing to get
please check my code below MqlTradeCheckResult m_check_result; MqlTradeRequest request; request.price = 132.628 ; if (! OrderCheck (request,m_check_result)){ return false } return OrderSend (request, result); OrderCheck is failing and returning false because the price value is wrong. The
in this case I try to delete objects that have the same name as the position or order comment. it works only for orders while for positions I don't understand how to do it. void OnTradeTransaction ( const MqlTradeTransaction &trans, const MqlTradeRequest &request
Hi all! We run one EA on MT4 for two brokers Exness and LiteForex, same leverage, only maximum 1 order opening in the time When trading, the history are same again for two brokers. And we sure about of the maximal deposit load for two accounts are always less than 10%. On live signal on MQL5 we see
I've looked through the market and cannot find one. I'll give an example of what I would like it to do: Price is currently at 150. I want to enter a buy position, on the following condition: Price goes below 100, this is then the trigger to turn the bot on. A buy stop order is then placed at 110
Hi, I don't know what's wrong, I'm traying to modify an open order when there is only one order opened, but keep getting this error. What can I modify to make it work? this is the code newTPb= level4bbb; newSLb= level3bbb; total; // number of open positions //--- iterate over
Hi, I am having troubles deleting pending orders when I release the EA from chart. OnDeInit() I use the following code void OnDeinit ( const int reason) { //--- // delete pending orders for ( int i= 0 ; i< OrdersTotal (); i++) if ( OrderGetTicket (i)) if ( OrderGetString (
How can I extract the name of the symbols whose chart is on the open on the screen
Hi. All I spent nearly 8 hours to find out how to change spread during backtesting and optimization. I googled everywhere even thinking of using paid software on the net. Please don't do that. MT4 has a built in feature so you can change spread during backtesting or optimization. Just sharing...
Dear team can help me ? i use this in my bot to close particial when come same price, but how i close the sum all tickets i think is better when 50 dollar is come, close all tickets and iniciate a new cycle example ticket swap price magic number 1 -10 40 0001 2 +20 -30 0009 3 0 40 1212 close all
Hello, Here is what I have done so far: #include <Trade/Trade.mqh> CTrade trade; int maHandle; int OnInit () { maHandle= iMA ( _Symbol , PERIOD_CURRENT , 21, 0, MODE_SMMA, PRICE_CLOSE ); int subwindow=( int ) ChartGetInteger ( 0 , CHART_WINDOWS_TOTAL ); ChartIndicatorAdd ( 0
Hi . My strategy work with H4 time frame , but my broker(Alpari) Time zone has different with my test broker (FXCOM), You might say why I don't register in FXCM. because it can't It does not support my country. I searched many brokers, but all the ones that accept my country all has same time zone
  Requests & Ideas (MQL5 only!)  (682   1 2 3 4 5 ... 68 69)
Terms and Conditions: You describe (you provide) the idea. I place an open MQL5 code in this branch. I place this code in a CodeBase. I specify the author of the idea and the author of a MQL5 code in a code. The coding services are provided "as is" and you use them at your own risk. List of ideas
Hello everyone. Am new to MQL5, please can someone show me some mql5 code that can do the following: pick the first candle of the day, check if it's bullish or bearish. Let's call it candle A, If candle A is bullish then check the previous two candles to it if they are both bearish. If yes, then
I can successfully place order and retrieve the ticket id by result.order, but when i try to close the order always get invalid request 10013. Tried to close the order 2 ways. With the below function CloseTradeOrder AND using CTrade.OrderDelete( result.order ). Here goes my code: void
Looking for a script like below example (done for indicators) to remove and EA from the chart: Scripts: SD Delete Indicators - Indices - Articles, Library comments - MQL5 programming forum I tried following but ExpertRemove() does not work on a script. ExpertRemove - Common Functions - MQL5
Hi, I find the following fact quite shocking: I have an EA that I tested with exact same settings, exact same spread (chosen in the startegy tester) and exact same time period on 3 different brokers. Believe it or not, all three results were different. Not only that, in one broker, the EA was
Hi Friends, Im trying to upload a Trade Manager ( Utility ) and I get the following error message - What can be the issue ? Its a Utility and not an EA . test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) tester takes too long time strategy tester report not
I've been google and searching in the forum but still not able to find the solution, what i need to know is how to get the reserved margin PER position, like: Position 1: 50$ Position 2: 75$ Position3: 33$ ... You get the idea, important, i'll have DIFFERENT symbols too. Thanks
Hi, Is there an existing EA that will not allow opening new trades if the risk of existing and new trades goes above a threshold level. If there is a already a robot for this, then good. Thanks ckm
I'm new to MT4/MT5 learning things with doing some project on each concepts can anyone tell me how to create a Forex trade management tool for MT4 which will continually move a trailing stop loss based upon when new higher highs or lower lows are being formed for that particular currency pair. When
I'm new to python and mql5, I'm teaching myself both currently. Can someone explain why this code always prints volume equal to 0? (blocked my user & pass for my mt5 import MetaTrader5 as mt5 from datetime import datetime mt5.initialize() if not mt5.initialize(): print(f"initialize() failed