Expert Advisors and Automated Trading - page 151

To post a new topic, please log in or register
I know it sounds strange that I have these problems. First when I download the demo, "Manual Trader", it wipes out half of my indicators from my chart, and then when I click the "Buy" button, nothing happens. There must be some magic way of buying things?
I am testing an MQL5 custom indicator on historical data using Strategy Tester. See below: int OnCalculate (const int rates_total, // size of input time series const int prev_calculated, // bars handled in previous call const datetime& time[], // Time...
Hi, I'am a beginner in programming ea's. I start with strategy which open few pending order but after while are too much not actually pendings orders. For now I using a scripts like : --------------------- for(int i=OrdersTotal()-1; i>=0; i--)   { if(OrderSelect(i,SELECT_BY_POS...
i have to make an EA which use buy stop limit and sell stop limit automatically with stop loss and take profit and calendar it  
hi i have a indicator how to call my indicator function in to my EA? Thank you. 
Hi guys i've subscribed the virtual hosting services, i've syncronized my EA and then i shut down my PC. the next day no trades have been placed, is it normal? my pc has to continue to stay turned on and metatrader should always run on my pc to let the ea work? many thanks
Hi I am giving the ea code below double macd[2];&nbsp;&nbsp; double signal[2]; int i;&nbsp;&nbsp; for(i=0;i<2;i++)&nbsp;&nbsp;{ macd[i]= iMACD(Symbol(), 0, FAST_EMA_PERIOD, SLOW_EMA_PERIOD, MACD_SIGNAL_PERIOD, PRICE_CLOSE, MODE_MAIN, i+1); signal[i]= iMACD(Symbol(), 0,...
SSSNO1
Hello, I want somebody to compile my EA, it was performing well until the latest update by MT4 which has reendered it useless. Just need to eliminate TimeGMT function as I see in the Errors tab. Can anyone do the job?
I want to calculate the contract amount regarding the actual balance of the depot. Can anyone describe how I can read the balance ? thanks in advance
Hi, For some reason my stop loss gets triggered early. In the following example I have a stop loss @1.11460 but the candle that causes the stop to be triggered only reaches a high of 1.11435.
yudiforex
I want to find the EA or the Script that will be my name "REVO" that serves as an already open position justifies wrong on real transactions, e.g: when we open Buy position and turns the market falls then the Buy will change name to Sell and sign [-] is missing. So instead ... If...
Hello, I have a Bollinger Bands indicator on the chart. Also I have its handle. Then I would like to get the number of candles before it starts to be plotted? Please, check the image below: I want to get the number of candles betwen the two yellow dots, I mean: 39. I would like a clean and...
Could any of you recomend a EA with this functions? I d not need fancy stuff like % of profit or time closing, just a fast EA that works with only a "click"... Thanks in advance!!
I got into trouble when I will upload product version in the market for publishing EA. I upload the file ex4 EA as usual but the moderator asked to include indicators in the resources of the main indicator. By attaching captions below : I am confused, Why not upload files indicators also then...
Hello, now i can get the last/newest position info buy this code PositionSelect(_Symbol) ;ulong position_ID=PositionGetInteger(POSITION_IDENTIFIER);long create_time_msc=PositionGetInteger(POSITION_TIME_MSC);long update_time_sec=PositionGetInteger(POSITION_TIME_UPDATE);long...
Hello, I would like to know if MT5 do a time change when political administrations do it, and in that case which is the moment when MT5 do such times changes? As all we know, countries change the time to take advantage of the summer light, see link below: https://en.wikipedia...
Hello. I reinstaled my MT4, and now some of my indicators doesn't work anymore. Heiken Ashi smoothed and most of my histogram indicators show just couple bars at the end of the chart or dont show anything. Maybe someone can help me, and know what the problem is?
I recently subscribed to a mql5 signal and set my account balance percentage to 75%. However, I would like to change this percentage ratio now. How could I access the settings for the signal to which I am subscribed? Sorry for the newbie question and thanks very much.
Hi there ! On my last post I was wondering how to work with OHLC, founding no solution, I now use for the EA ticks. When I optimize, results appears, but when replayed the results differs. What that could be due to please ? thanks.
Hello, i need a simple code by simple steps to get the current open position open price and profit using mql5 thanks,
Hello all, I just started having this problem yesterday. Whenever I try to subscribe to any signal besides the few that are listed in mt4, it won't let me subscribe. I enter my password and then nothing happens. I also can't save them as a favorite, they're all grayed out. I've tried going...
Hi ! I kindly noticed how much optimization with OHLC price was quick ! On the other hand, in real it doesn't apply. Would using OnNewBar rather than OnTick made it accurate in real condition ? Thanks !
Slavin12
  Copy signal (2)
Hello, When i copy signal from mql5, must i have running terminal or no? Thank you
I'm learning MQL5 and I'm me with a question. In most EA examples, the stop loss and take profit are realized by points. However, I would like to use the stop loss and take profit by the price. How can I do that? mrequest.action=TRADE_ACTION_DEAL;...
How can I get magic number when i have&nbsp;TRADE_TRANSACTION_HISTORY_ADD event?
hi im new. i want to make new EA for Trailing Stop, so it can take care of all open trade on the chart. normally i will set manually for all open positions. i just what to make the triling stop to be automated. can it be done? can anybody help me ?
sir i need reverse order sir instead of BUYSTOP order in upper side i need SELLLIMIT order in upper side instead of SELLSTOP order in lower side i need BUYLIMIT order in lower side pls help me sir i tried but not work pls fix this one
  Martingale (2)
Hello everyone, I have a question regarding the search for a Martingale indicator. I would love to get an EA that just does Martingale and nothing more. One that monitors trades coming in and change lot's when losing. My trading (entries, exits) come from my personal EA, but I have difficulties...
any body able to assist fixing the compile errors in the code below //+------------------------------------------------------------------+ //| defines | //+------------------------------------------------------------------+ //...