Expert Advisors and Automated Trading - page 263

Hi I'm trying to post the below to my express js endpoint I have a function below but it's posting an invalid JSON body to my express js. void PostOrderStatusAPI() { if ( MQLInfoInteger ( MQL_TESTER )) { } else { // JSON text to send string strJsonText = "{\"key\": \"value\"}" ; //
I have a robot I am writing and I want to use several rsi values of previous candles in the robot Please tell me how I access and the amount of the previous rsi
Hello Guys, I am looking for an indicator or an EA that can suggest new trades (Not place orders) tpo be part of my existing manual trading system. Just to give you an idea i am looking for something like this (or exactly this if possible ). Any suggestions will be appriciated
[Deleted]
Hi guys...i just got this multi oscilliator divergence ea...has a bunch of oscilliators for trading divergences, it however still lacks a crucial one that i use..." macd oscilliator".....is there a way to input this oscilliator into the source file(which i would gladly share here). would be glad for
Hello, just what the title says, I want to sell an EA that uses custom indicator, can somebody teach me how? Best Regards.
Hi, I cannot start the Strategy Tester because there is no Start button. Pls see the attached JPG. Where am I wrong? Thanks in advance, Janos
Hi, I don't know whether this one is possible : Let's say our EA is doing trading operations on the M15 chart. Can we check for example the 200MA price & direction on the D1 within the EA, knowing it is working on the M15
Hi, I would like to know if I can use two Ea on the same graph and I think the answer is no. Right? So I wonder why I use one Ea that opens and closes orders according to certain rules, can I use another Ea on another chart to manage the trailing stop
Hello, I'm trying to build an EA that do some stuff, i need to put an editable textbox on the chart and use the value of this textbox as a LOT in my orders. thank you for you help
Hi everyone, Before I go off down a blind alley can anyone give me any guidance on how best to control MT5 strategy tester from python then get the optimisation results back into python. I see you can run MT5 using the command line which will work but interested to hear if anyone has done this
Hello How can I assign custom indicator's final value to a variable and use it in my EA. e.g. I want to get an ATR value and assign it to my stoploss variable? How can I assign
I use this trading setup in paper trading, can you help me to back test it. Open a buy position when the third candle is up the moving average . complete candel short when the third complete candel is down.... close the position when the first open candel is down or up the moving average. help me
I have the following results table. I'm not sure which one to prefer. My testing was done on a 500 euros account. The first row has the most profit in forward testing, but the backtest is at a small loss. The third raw has profit in both forward and backtest but it has a low sharpe ratio. The eight
Hi, is it possible to have OnTradeTransaction() in Service? I have a service that buys and sells (with TP and SP, and I don't need to attached it to a chart ), but I am not able to check how the position was closed. It should have the same behaviour OnTradeTransaction() has in EAs (even if it is
In the documentation, it's said that MT5 caches optimization results for each testing parameters such as period in order to not repeat them. https://www.metatrader5.com/en/terminal/help/algotrading/strategy_optimization What if my "to date" is today's date? Is it still cached and not retested
Hi, I need help to open order buy/sell every 10 seconds based on the difference between current price and price from 10 seconds back. Thanks
  Migration failed  (10)
Hey, I have a bunch of EA´s running on my 8 MQL VPS´s and one of them stopped working. I´ve tried migrating it again and I keep getting an error message that sais " migration failure, check the platform log". That has been going on since Saturday night and there is no way around it. I´ve tried
Hi All, I've been going round in circles all day trying to figure this one out, so it is time to consult the blessed Forum masters. I have a break even function that is called when a position is open, but it's not functioning correctly. Here is the function code, all variables used are globals (bad
void OnTick (){ //+------------------------------------------------------------------+ //| Lógica para realização parcial e breakeven compra 1| //+------------------------------------------------------------------+ if ( PositionsTotal () == 1 && PositionGetInteger (
Hi Guys, I'm fairly new to MQL5 as a language having mainly been coding with python and associated languages in my day to day work but I'm trying to learn MQL5. I've been following a lot of the tutorials etc to get a general grasp on the language but I'm strugging with modifying the stop's on a
hi everyone i trying to find if a order closed with the hitting the TP in mql5 i see the DEAL_REASON_TP but i can not how i can use it ? I'm more looking an example for using it thanks
Hello Community, I have written an Expert Advisor on my home PC. I would like to have the inputs set by the strategy tester. For my VPS I created the project again in the MetaEditor, inserted the code there and compiled it. I use the same ".set" file for the Strategy Tester on my home PC and my VPS
I am not sure, if push notification requires the intermediate server (for example, with static IP address) to receive the message from our computer and to resend the message to our phone. My question is if this push notification can be slow down just like a website can slow down due to high incoming
Hello , After the windows update, I can no longer start the Geasy Rider on MT 4 and MT 5 on my computer. I no longer have a free license for a new installation. What can I do? Sincerely yours
I upgraded the window from PC. suddenly, it says again again that it can't upload the ea that I used after purchasing it. there was nothing download left. but, other ea can load. What's wrong? Check , please
[Deleted]
Hello Ladies and Gents, Was wondering if anyone can assist with something very simple, but I am unable to actually make it work, found multiple lines of code to do what I need but none worked as my MQL skills = 0. Would appreciate if someone could help me insert a code allowing to change Lot...
  Money management  (1)
//+------------------------------------------------------------------+ //| MoneyManagement.mqh | //| Andrew Young | //| http://www.expertadvisorbook.com |
Hello all I want to create an array from 9 values and then measure mean of the array. I used the Operator 'for' but I do not know how to extract values from it. want to do is to extract these trmax values from the loop and use it out of the loop. Any idea how to do so? Here is my code: for ( int i=
Hi guys, just a quick question: do I really have to call SymbolInfoTick every time before I use last_tick in the code to get updated quotes? Or is it sufficient to call it only once in the code and then just use last_tick without calling it again? Do I have to call SymbolInfoTick again in every
  Alert message  (2)
Hello I was wondering how I could get a string value for the symbol the indicator is loaded on and how to incorporate that into a message. if(!SendNotification("Buy Crossover Happened." ? "Potential Opportunity to trade coming up. Slope = "+maslope))