Expert Advisors and Automated Trading - page 73

  EA and VPS  (2)
Hello. If I rent VPS from metatrader terminal..can I run 2 metatraders on the same VPS which I rent from there? I am running an EA on a metatrader 1 and I want to copy the trades to metatrader 2.. S o if I rent VPS from here can I run 2 metatraders on that VPS? Thank you
I tried to change the Fibonacci display color but it only changes the color of the diagonal line across the levels as in the image below. How can I change the level colors? Please see my relevant code below: //+------------------------------------------------------------------+//| Create Fibonacci
Hello Please can you tell me what the error messages mean and what going on with my EA, also how do I resolve the problem. Thank you for your help. Andrew
Hi, I want to have a Custom moving average with a specific color, following this post https://www.mql5.com/en/code/19864 I have done the following: #include <Trade/Trade.mqh> CTrade trade; int handle_iMA_First; int OnInit () { handle_iMA_First= iCustom ( _Symbol , PERIOD_CURRENT , "Custom Moving
I bought many experts on the MT5 market who gave good results in testers but put in VPS on a demo and real account they gave completely different results but, not only, by testing a month in real life and at the end of the month by repeating the test over the same period the results are always
Is there a way to stop the EA if the equity reaches a ceratin level? Is there a built-in function for this or this function must be in the EA settings
Is artificial intelligence better or trading robot
hi everyone, hope you're well 🙂 I am testing the functions of the CSymbolInfo class , I notice that the Bank() function does not show me anything, do you know why string bank = m_symbol.Bank(); Print ( "Bank : " , bank); I can display other values such as the minimum stop loss and the swap, but
hi I have a normalized value MqlTick tick; SymbolInfoTick ( _Symbol ,tick); //--- double Highest = iHighest ( Symbol (),my_timeframe, MODE_REAL_VOLUME ,shift, 1 ); double Lowest = iLowest ( Symbol (),my_timeframe, MODE_REAL_VOLUME ,shift, 1 ); double Normalizado = ((tick.last - Lowest)*
Hi everyone I am seeking help on something I do not understand (code at the end of page). When I using this code with the parameters I filled in, and I fill in the desired time for trade 1, it works totally fine. But whenever I change the parameters, sometimes it works and sometimes it does not seem
I successfully used the code below to get the last n values of MACD and Signal lines : CopyBuffer (handleMACD, 0 , n , inputBufferNumber, bufferMACD); CopyBuffer (handleMACD, 1 , n , inputBufferNumber, bufferSignal); However, I also need the Histogram line. How can I get the the last n values of the
Hello, I'm blocking on a code. I wish the ea keeps in memory the last highest balance, here is my code but it does not work, can you help me? double  highestbalance()  {   double highestbalance1=1000;    if ( AccountBalance() > (highestbalance1 )) highestbalance1 =...
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