Expert Advisors and Automated Trading - page 69

To post a new topic, please log in or register
Expert Generated from MQL5 Expert Generator I have Created Expert From MQL5 Expert Generator and it's Trade mostly Correct but some time it's Trade wrong when to sell at the High level of indicator it's trade Buy vs. at the lower level it's trade sell how can it redistrict This expert to stop the...
Hi all, I have written a snippet of code which draws a horizontal line at the bid price. But I want to change its colour and the code compiles but the colour is not changing! It's only staying red! Any help would be greatly appreciated.    long cid = ChartID();      ObjectCreate(cid,"bid_price"...
When buy an EA from the market. Can i use it on my all accounts? I have 4 accounts from 4 different brokers. Is possible to use it on all of them?
Hi, I'm running an EA that writes to a file located in:   MT4/Files/ directory on my computer. But when I synchronize the EA to the VPS, how can I check the output of that file? Many thanks
How to cater for "Broker's Commission" in MT4 Strategy Tester?
Hi all, I get the array out of range error and I cant seem to figure out why! Any help is greatly appreciated!    MqlRates PriceInfo[];//Sorts it from the current candle to the oldest candle   ArraySetAsSeries(PriceInfo,true);//Copies the price information into the array   double...
I've been struggling to solve this. Based on what I saw I should use OrderSelect() but have been unsuccessful. See "SL" and "TP" below. SL works everytime because it is set to the low of the previous candle, however I'm trying to base the TP off of the SL to have the Risk:Reward ratio of my liking...
Hi. A question for the people. Is it possible to sell an EA on the market, if the EA is connected / relies to an indicator i made myself? Or do i somehow have to rewrite my code so the EA can trade on its own without the custom made indicator? Regards Sebastian
Hello 1-As a title How can i delete indicator automatically after run EA on strategy tester ?    I mean use code in on deinit ! 2-When i use indicator in my EA and run it on strategy tester , after tester end it draw indicator on chart !, is it possible change it that nor draw on chart ? Thanks
Hi Traders. Just curious if there is any function that does the same job in MQL5 as in HideTestIndicators in MQL4. So far, I did not have any luck to find the same or similar function. Your sharing of your knowledge will be deeply appreciated. Kind regards.
I wasn't able to find any documentation on how to override the CObject virtual methods Load, Save, and Compare to make use of(CList and CArrayObj) load, save, and sort features - so I managed to hack my way through it. I'm posting it here in case anyone else is interested in using the Save/Load/Sort...
  Ichimoku EA (6)
I am looking for recommendations for an ichimoku based EA to employ a TK cross strategy using 4 hour charts in MT4 . 
Hi all, Thanks for looking at this thread. I've been developing a simple EA which essentially increases the position size based on volatility. However, it is only meant to be increasing the position size once per trade and then once again after another trade is open. I've attached the code that I...
The order is positioned with takeprofit and stoploss. But when the price hits both take and stop, it's executed but the message appears in the image below in the diary. I'm testing on demo account. if(latest_price.last > maCerto && (highCerto - maCerto) == Pontos && LastBar != ThisBar       &&...
I have been trying to find out what is the use of IsTradeAllowed function? in the definition it say " Checks if the Expert Advisor is allowed to trade and trading context is not busy." does that mean all trading Expert Advisers share the same context for all terminals/currency pairs? Thank you
This is the code I have so far but for the sharpe ratio. int OnInit () {   if (IsTesting () || IsOptimization ()) GlobalVariableSet ("InitialBalance", AccountBalance ());   return (0);}void OnDeinit (const int reason) {   if (IsTesting () || IsOptimization ()) GlobalVariableDel...
   Dear coders,     I want to loop back 20 bars. Is this correct ?    for(int i=0; i<Bars;i++)   {   some code...[i] but I m interested how much loop is going to interate }   In this case it will loop on all Bars on chart. How can I loop only 20 bars back ? Thank you
Will magic number disappear if a order is closed?
 Hello,    can you tell me how shall I done to trade fibo standard levels ? Shall I use ObjectGet and get value of fibo object    and when price is equal to fibo object do something or calculate through code the fibo level ?
Hey, I am totally new in automatic trading and I have a question: I follow a signal. The trader has an equity of $1500. Last night he got 2 profit trades of $12 and $13. I have an equity of $1000, I just earned $4.90 and $5.20 by those 2 same trades. It does not seem logical to me. Is it? What can...
Hi, since yesterday, the debugger is not able to compile the project anymore, just like that. It started when I created a macro and inserted this into some source files. This was the first time when the debugger created an invalid EX5 file, while the normal compiling process created a working...
Hi to all, I have 4 subscription to signals and also 4 VPS. From yesterday I have this strange errors : 2019.02.08 09:55:40.420 '**********': Signal - '***********' for '*************' subscription found, 2019.03.07 expiration, disabled I see that expiration is next month, but at the end i see that...
Hi, anyone an Idea? There is no additional information from MT5 and the project compiles without any errors or warnings in strict-mode. This buggy platform is really starting to annoy me, every day I find something new.  Another one is: "Pure virtual function call", this I get in the MT4 version...
Hi, I want very simple EA  which can work on 1 hour and a day. If the current candle break the high of previous candle it should buy and if break the low it should sell. trade should be close at the closing price of current candle. trade may be place 10% of available balance. you may contact me at...
Hi, I'm using mql5 VPS services with ICMarkets. I have rent an EA, but no trades are opened. How do I know if the EA is running on the VPS or if it tried to open a trade? Many thanks
Hi guys i need an adx arrows indicator shows di+ crosses di- only if the di+ crosses di - to up side for example: at 08:00 O'clock on the 1 hour chart and on the 4 hour chart exactly the same time if the candle closed then appears the green arrow. Can any one help with this?
Hi ,  Learning how to draw lines - I made a code to draw Maximum and minimum of previous Day and current day. It works if  printing - however, it does not work correctly with fixed lines.  I mean, lines remain linking instead of fixed .  Started with EA ..but, will code an indicator afterwards. with...
Hi, I wonder if I can test a signal, with like 50 or 100 US$? This signal <deleted>) does not say how much you need but I was thinking to allocate a percentage of money that will result in 50 or 100 US$ Is this posible or do I need to invest 1000 US$ or more in a signal? Regards, Oliver
is it possible to somehow get more than one color from user, using one input ? (where user chooses the desired colors from the standard palette) (it's possible for indicators.) EDIT : structures are not permitted as inputs. :(
Hi, I have done a mistake. I've assigned a signal to an ICMarkets account but th esignal is to assign to a FBS account. Can I move the signal to the correct account ? I didn't found how to do it in MT4.  Thanks