Expert Advisors and Automated Trading - page 175

Hello everyone, in my EA the user informs the Stop Loss value in a field, and when the trade opens, the Stop Loss line is placed on the chart automatically. I use the "trade" Class and the "Trade.Buy(...)" command where I inform the Take Profit and Stop Loss position, but after opening the
What it is: Below, you'll find my Swiss Army EA. I've designed it so that it can manage orders in your MT4 terminal using a large variety of methods. Features includes breakevens, trailing stops, setting/removing for takeprofits and stoplosses, and many close-out conditions; you also have ability...
Hi! I have stumbled on a very interesting problem. If operator is executing the code inside if operator even if condition is not fulfilled. Here is the code: //adx formation type 2 Print (adx_buffer_slow[ 4 ], " " ,di_minus_count_good_enough_3, " " ,di_minus_crossed_adx_down, " "
Hello, I have EA on several charts that my EA's export data till live market when meta trader open is this possible update export till live market without reopen MT5? In fact I need tools to refresh expert list In chart I do right click and then click on refresh but it doesn't work, needs to
  Making an EA that work  (17   1 2)
I created several EA some of them where making good profit for few months, some of them gave me millions of $ with only 100$ starting but I had to enter at a certain time and date like 2017/01/06. I'm still figuring out the basic or a method to create an EA that will go up consistently in the
Hi . i create Regression Line with code : void OnTick () { datetime time_0= iTime ( _Symbol , PERIOD_H1 , 1 ); datetime time_1= iTime ( _Symbol , PERIOD_H1 , 29 ); ObjectDelete ( 0 , "a" ); ObjectCreate ( 0 , "a" , OBJ_REGRESSION , 0 ,time_1, 0 ,time_0, 0 ); ChartRedraw(); Sleep ( 50 );
Hello, I'm currently developping forex robot using Python API for Metatrader 5. Among different things, this robot places trades given by external signals (with price, SL and TP). I use euro funded account, trade XAUUSD, and have a 1:100 leverage ratio. In order to implement 1% strategy (meaning
  Distance of Moving average  (13   1 2)
Hi guys, Would it be possible for someone to help me find a way to tell me EA to only execute trades when there is a specific distance between two moving averages? For example  double ma50=iMA(Symbol(),0,50,0,1,0,0); double ma200=iMA(Symbol(),0,200,0,1,0,0); I basically want to know which command i...
Hi, Please take a look at the following code: //+------------------------------------------------------------------+ //| Get an event description by its ID | //| country_code: country code name (ISO 3166-1 alpha-2) |
hey Guys, I am having issues understanding how the ignore flags are working for the signal's filters. Based on the documentation and following up the comments in the standard library module CExpertSignal, it should be possible to ignore the signal generated by filters through the m_ignore protected
Hello! I wonder how it all works, namely EAs with artificial intelligence ... how self-learning is done, how much coverage of all sorts of market factors, which can take into account such EA ... I am curious to know how everything works ... how self-learning is done, how much the coverage of all
Hello friends..I have a question that I think is difficult programming, but I think that many here are able to guide me. I want to calculate the lowest moving average level during a certain number of candles, as well as the highest moving average level during a certain number of candles. That is, I
i'm testing something right now, on MT5 and I got some pretty high slippage but it is negative slippage (I set a Sell Stop @ 1.30710 and it opens @ 1.30675) I thought only positive slippage was possible when using a Pending Order thanks Jeff
Hi, I need a little help in the attached EA, which currently sets a defined stoploss. What I want to do is to move the stoploss to breakeven after x number of pips in profit. I would be grateful for the help, thanks
I need some advice to help me using sting type data in my zigzag class or structure. I have problem with this error 'indname' - parameter conversion not allowed indicatorclass_zigzag rev1.mq5 48 13 #property copyright "@min" #include <indicators/indicators.mqh> #include <indicators/Custom.mqh>
[Deleted]
Hi guys, I have created a function for opening buy/ sell trades, but the EA opens more than 1 trades when I set the trade number 0 someone kindly help, I have tried adding magic number but still same result. Thanks in advance //+------------------------------------------------------------------+
Hello, I would like to close all pending orders in same time. i tried with open positions and succeeded but dont now how to do with open pending orders. this is my code for open positions: num_positions=mt.positions_total() symbol_info=mt.symbol_info( "EURUSD" ) symbol= "EURUSD"
Hello my friends, I want to code a function that takes a trade if the current price goes up one or more ticks, but when it goes down a trick it takes the position directly. As you can see from the illustration in the attached image. Here is my algorithm If Current Price < Lowest price { if
Hi all, I created the exact same EA for both mt4 and mt5 and have different results, not very dramatic, but off by thousands on a long look back. I'm using supposedly the exact same data from tickstory in which I matched both timezones and dst. The EA uses open prices only and the settings are as
I know there are a lot of MT4 EAs that read the tick history thru a DLL, then those EAs shows impressive results on backtests (fake , manipuled results) I think it was not a problem in MT5 but I detected one MT5 EA that shows excellent results in backtests but completely different results in demo
[Deleted]
Hi Friends, thanks for your good works. I have a code that worked perfectly for me on mt4. I tried converting my code to mt5 but the kernel32.dll aspect of the code is not giving the same result. Please help me check what I am doing wrong. Thanks
MqlTick Ticks[]; void OnTick () { double Open1 = iOpen ( Symbol (), PERIOD_CURRENT , 1 ); double Close1 = iClose ( Symbol (), PERIOD_CURRENT , 1 ); double Open2 = iOpen ( Symbol (), PERIOD_CURRENT , 2 ); double Close2 = iClose ( Symbol (), PERIOD_CURRENT , 2 ); if (Open2 > Close2 &&
Hello, Can someone help me? maybe i can't normalize my ST and TP properly. The parameters for the calculation of SL and TP are 08.19.2022 13:44: 18.049 StopLossShort = 1.05 2022.08.19 13: 44: 18.049 TakeProfitShort = 0.995 When I run the EA it gives me the following error 08.19.2022 13:44: 25.819
I have multi timeframe supertrend indicator with code as below (unfortunately I cannot display all code due to limitation of character to send at forum ................... #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 clrGreen #property indicator_color2
How can I write the buy risk if stochastik rsi da k parameter cuts 80 down and sell cuts 20 up
What is considered the best practice when algo trading? I have developed a robot for myself and it uses a simple strategy that "works". I mean, I can run optimization and find settings that make a million dollars in a year or so. Now the thing is that that setting only works for that period of time
How do I remove the after and premarket hours from the custom chart is my question so the chart only shows regular market hours? I tried scrolling down in the custom chart settings and changing the time there but nothing changed. Regards
Hi all, I am using a Hybrid system at the moment trend checking with price crossing Kijun-sen and using a propriety EA with the trend (as a preset template) all in MT4. My question is - is it possible to build (or pay someone to build) and EA to look for the Kijun-sen cross implement the proprietry
Greetings all, I'm attempting to install MT5 EA however when I put in the license key I get a message "Your MT4 account is not allowed to trade" what could be the course of this? I'm on MT5 I downloaded everything correctly