Expert Advisors and Automated Trading - page 141

To post a new topic, please log in or register
I want to ask question that There is invalid fill in Expert Tab i got solution but dont know what to do further.That is where to put this coding.I saw this link https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes 10030 TRADE_RETCODE_INVALID_FILL Invalid order filling...
I have 2 desktop an one laptop.  All running Windows 7 I have  working setups of Metatester on the 2 desktops My local network is 192.168.10.xxx All computer work as expected accessing intewrnet One desktop with ip 192.168.10.44 the strategy tester takes on the following ip adress for...
what code to create an grapict in ea like this?
Dear everyone,   Anyone know what is wrong with the following statement?    Comment(Symbol());   When I compiled, it says "Symbol'-ambiguous call to overloaded function with the same parameters.". Or is there a way to write code to store the value of Symbol()?   Thanks you in advance.
  timeframe (7)
Is there any EA by which i can get 2, 4 , 6 8 and 12 hours time frame, bcz for multi time frame analysis i need these charts, but dont want to use mt5 , i dont like that platform at all.
It's said in MQL4 Reference that "Function templates can also be used for class methods". Then I tried th folwing code: class CTest  {private:   public:                                          CTest();                    ~CTest();                    template<typename T>                    void...
Can anybody help me: Why price of XAUUSD is 1093.09 but digits=0 and point=0.00 from MarketInfo? Thanks, a lot.
Hello I want to add a condition to my EA. I want it not to open a new buy until the short is either stooped out or meets the take profit criteria. Similarly, I want my EA to not initiate a sell until the already open buy meet either the stop loss or take profit condition. I am using Molanis...
Hi, I'm trying to retrieve the new price property from a object (horizontal line) after it's dragged, but it returns the old value and not the new one. Am I doing something wrong? How to get new new value (price to where it was dragged to)? virtual void OnChartEvent(const int id,const long...
  HELLP
Hello friends . Do you know EA, which can make a deal when I tell him, and take the data than the closing or opening of that time. And close deal after a gain of 10 PIPS (I like to transact business at the London operations and usa) Thank you OR
Hello i want to ask is it possible to make EA that can count closing trade in that pair in some spesiific range of time (ex: a day or a week)? since as long i know EA can only count order trade only, and i try to find it in google but found nothing please anyone who knows tell me anything you...
this is the open code of export for Heiken_Ashi_Smoothed can some one tell me wher is the mistakes and errors it is good the proplem that I see on the test is stop lose code and by on the signal can some body help me to make it...
Hi, Is it possible to get the list of EA params on the OnTesterInit function? I would like to do something like: void OnTetsterInit(){  string all_params[];  for(int i=0; i<ArraySize(all_params); i++)  {    ParameterGetRange(all_params[i], ...);    // Do some verifications  }} But how to fill the...
  Optimization (8)
Hi, I have one EA where I can turn on/off one indicator, and it also have params for this indicator. When I mark the option to use or not and the indicators params to optimize it generates some redundancies (as expected). OBS: "Não" means "No" and "Sim" means "Yes". But makes no sense to...
Hi there, I am after a support and resistance EA if anyone has one that actually works? I'm happy to buy it if it works.
hello, i write this post to have some advise how i can code this idea: i read the lesson post on babypips forum about the ema like dynapic support and resitance; and that is what i want to code: esample : i have 5 ema 20/50/100/150/200 the price go down , before the brake down for example the...
Good morning every one >< I'm searching for the man can create this EA for me. Please send me to marcogiacobbo@yahoo.it your price proposal. This is the EA working parameters: EMA100 (simple,close) + EMA1 (Simple...
Hi all! forward testing Lilith goes to Hollywood. ( free available on codebase btw) The EA closes all the positions including on different pairs when a target has been reached. if(Profit>=Amount){CloseAll();} How do I change this so only positions and pending orders on that particular pair are...
Hello, I want my EA to perform in live trading exactly as per the results I get during backtest in Control Points mode. Can anyone help advise what best possible codes I should add to my EA? Will highly appreciate any asistance. Thanks.
Hello MQL5 forum, I have some conversion warnings on my EA report. I just was wondering if there's any way of changing the type of a variable: double Open;CopyOpen(0,PERIOD_M1,0,10,Open);int price=Open[0]/_Point; //There's a conversion warning here, it shouldn't right? I have that problem and...
It's a minor problem, but i would like to clear it, can't figured out the logic computation, so I might need some help from the community. Elaboration: Test data starts with 0.01 min lot. I would have no problem if my test amount is $1000 or $100, 10% of these amount, it will still be sufficient...
I close all my orders with Stoploss hence TraillingStop with no takeprofit, But the slippage is soo horrible. I was wondering if Stoploss's slippage can be managed by using OrderClose instead of relying on OrderStopLoss alone. I hope you will get what I am trying to ask here. I am looking for...
Hello friends, In my code I need to encode a key into SHA1 hash but as I tried so many times the generated hash is not what it should be for the same src[]. Here is my code: From the code below the generated hash is: "386c7d21720cc304f8d97435de3080fbbdf3c7b1" While it should be :...
I get this error when trying to compile my EA file: 'vsl' - undeclared identifier 'vtp' - undeclared identifier It's for this part: { if (USE VIRTUAL STOPS) { sl = vsl; tp = vtp; } What do I need to do to make it work? Anyone?
I am attempting to creating a simple EA in MQL4 that sells a pair when the RSI rises above 75 and sells when it falls below 60, while only being in one trade at a time. For some reason, it will only continuously selling without ever closing a position on the strategy tester. Any ideas? Here is...
Good morning, I would need an expert advisor to open an order when the two indicators ADX simultaneously reach the set level. For example, the first indicator is set to ADX 14 level 40 and the second indicator with ADX 40 level 15. When both of a timeframe M5 generate an alarm with a lot of email...
Please complete the expert help me I want to signal when the indicator signal Hammer = sell and Shooting Star = buy But not execute buy and sell orders. Please advise on what part I am in trouble //+------------------------------------------------------------------+ //|...
hi experts, i'm new programmer in MQL5, so if my question is very easy i'm sorry. i'm create one EA and i use one custom indicator with a function ICustom, this indicator change candle color. I need to know what the candle color this so that my EA can take the decision to buy or sell. Tnks...
hi thanks for all who can help me i want to write a code that call many moving average when they cross they give me signal to buy or sell really i made the code but i have a problem that i want to call moving average in the h1 time frame or h4 but the expert isn't working according to this...