Expert Advisors and Automated Trading - page 127

Hello everyone! This is my first post here so please don't roast me too hard if I'm going against any conventions here. I'll try my best. I'm currently trying to place pending orders using MqlTradeRequest. Since I can't seem to put MqlTradeRequest objects in an array I created a struct mirroring the
Hello, I could not find the information about this in the documentation, my question is, what do the following columns correspond to exactly
For example, below are my trades Trade 1: -100$ (lose) => loss_count = 1, loss_amount = -100 // Identify the first loss and assign it into loss_amount var Trade 2: -200$ (lose) => loss_count = 2, loss_amount = -300 // 2nd loss, negative profit will be cumulate loss_amount++ Trade 3: +100$ (win) =>
Hi, I was hoping someone could point me in the direction of where to read up on this or if it is even possible but essentially I want to create an ema of lets say 21 period. Then run a test using strategy tester and figure out the average pip deviation from the band over a 2/3 year period. I
I'm getting this error. A 'OrderSend' - wrong parameters count built-in: bool OrderSend(const MqITradeRequest&, MqITradeResuIt&) deprecated behavior, hidden method calling will be disabled in a future MOL compiler version 'OrderSend' - wrong parameters count built-in: bool OrderSend(const void
How to export transaction records generated in strategy testing visualization? Or in which directory can I find these transaction data
Hi I various EAs, and would like to put them all in a EA, but have realized the problem of closing the orders ... how can I do that without closing the orders of another EA
hi I don't know if this is related or not, but I know I have some stokers, and when uploading the mql5 to the market, this error keeps appearing File contains native code Allowed extensions .ex5 I'm not using native code .. so don't know what to do ... I just compiled it with the cloud service
Hi, I have an EA and whant to sell it in the market. I'm not sure of what license I have to add, or eaven don't know if I have to add one. I've read this . But still have q's. Can some one help me deciding please
Converting from MT4 to MT% Usually in MT4 I backtest in Visual mode and can drag an indicator from the navigation tree and use it on the visual backtest. This allows lots of on chart event functions. So far I can not replicate this on MT5 Anyone know how to do this in MT5?
How can I find out what is wrong with my EA? for the purposes of rectifying? 2023.06.26 17:19:01.642 Trades '70759879': requote 1.09109 / 1.09109 (instant close by 1 EURUSD at 0.00000) 2023.06.26 17:19:01.643 Scripts script FCK_EA_V1.5 (EURUSD,H1) removed
  Open parenthesis expected  (13   1 2)
I'm getting this error with this piece of code: double StopLoss=NormalizeDouble(OrderGetDouble(ORDER_PRICE_OPEN)-(OrderGetDouble(ORDER_TP)-OrderGetDouble(ORDER_PRICE_OPEN))*(AutoStopLoss/100),Digits); But I don't see the mistake, anyone can help?
I did the optimization in the period of 201901to 202101 and I forward tested in half like 201901-202001 and 202001-202101. And the result in 201901-202001 was good , but 202001-202101, the result was bad. And I did the forward optimization for 202001-202101, and I found the profitable value for
Hi, Could someone please help me figure out why my code is not generating an excel spread sheet as intended. The rest of the code I will correct later, however i need to generate an excel doc first before proceeding further. #property copyright "Copyright 2023, MetaQuotes Ltd." #property link
The search box on my mt5 IDE no longer appears as in the image. How can I get it back
If I am using MT5 with a non hedging account, and I would like to partially scale out of a current position how is that handled since a non hedging account won't allow orders on the server in the opposite direction of my current position? Any info is greatly appreciated as I am about to hire a
Hi all. I am trying to workout how can I get this "3" that I see on the symbol specs on my broker. But SymbolInfoDouble Symbol Magrin Initial returns 0.0 SymbolInfoDouble (par, SYMBOL_MARGIN_INITIAL ) So I ran them all and displayed as comment to debug: Hints += "\nMargin Hedged : " +
Please how do I run a python Algo script to open positions on MetaTrader 5 android version
Hi guys, During running the strategy tester this randomly started happening: It seems that the trade levels are drawn all over the place in the output window however the chart in the terminal is fine. Does anybody know why this happens in the strategy tester
Hi guys, I have the code below which I tried running in the strategy tester for both a demo account & live account with the exact same settings. The EA works as expected in the demo account strategy tester by placing trades. However, it does not work in the live account strategy tester. GetLastError
I need to know how to connect Laravel to MQL 5 in order to retrieve trader account information . Can you please explain the process
  invalid stops  (2)
Comments that do not relate to the " Free hosting for algorithmic trading: Inquire with your broker ", have been moved into this topic
i made an EA for bull & bear engulfing. also stated to enter new trade when no orders running on both of them seperatively. Its still opening new trade when condetions are not true . for example entering a bear trade till it closes, then again enter new bear trade without condetions trade onw new
I would like to know if there is a way to have this in my program, as if it were a Cedit
hello my EA has lots of buttons that i want to display on subwindow1 i created a dummy indicator to display the subwindow everything work as expected when i place the indicator and EA manually how can i load the indicator to the EA to display the subwindow ? i tried to create a handle for the
I started trading in real with a bot about 2 months ago, and in that period, my bot in real made about 30% more trades than the backtesting bot in real. Of course I use the same parameters in both, even the same ping. I use "based on real ticks " for backtestear, and the bot I use on a vps 24/7. Can
  Remote License  (3)
Hello everyone, everything good? I have a doubt, I have the code below where I limit the use of my EA to a certain limit of Metatrader IDs, however for each new Id that I add I will need to recompile the code, I would like to know if there is any tutorial on how I can do to create a remote license
is it possible to send something (like a text, alert) on the cell phone with mt5? The MT5 terminal is sending information on transactions, but Alerts from the scripts/EA is not passed through. Is it even possible?
  ea pending order  (3)
Hello, is there an expert that we can manually open a position in a specific currency pair, the expert can open three or four or more positions in the form of a pending order with the distance that we specify, with a specified lot size in the form of buying or selling open for us? metatrade 5
I am developing an Ichimoku based EA with the following rules as per attached diagram Buy Rules Rule 1: Chikou Span should be above Kumo Cloud Rule 2: Price close should be above Kumo Cloud Rule 3: Tenkan-Sen should be above Kijun_sen Rule 4: Future Kumo cloud should be bullish; The challenge I am