Expert Advisors and Automated Trading - page 163

Hi to all, in my EA, in the OnInit I attach the indiactor in this way: int OnInit () { handle_RenkAdv[i]= iCustom (symbols[i],IndicatorPeriod_M1, "::Indicators\\RenkoAdv.ex5",param1 ); } along the time I need to change the value of the Param1. I was thinking to delete the indicator and attach
I am trying to find a way to calculate the appropriate volume for longs and shorts dependent on a fixed percentage of risk. I stumbled across the CMoneyFixedRisk money management class and set it up in my EA. Every time it is called it seems to always return the value 0.0. Below is an example of how
Hello, I'd like to ask an help to understand how to get correspondace into the mql5 code about the operations in the attached picture. There is a red arrow (sell), a blue arrow (buy) and a dotted line that connects the two operations. I'm trying to implement an EA that performs a Buy Limit and Sell
Im using bot on python but i cannot open trade. Or sometimes it's okay, sometimes it's not, hơ an u fix it
  Multiple TP's  (2)
How do I set multiple Take Profits on the MT5
  Invalid stops  (5)
Hi guys, I am very new in programming in MQL5 and I have an issue that make me crazy and probably is just cause of my non experience. When I run my EA, I am buying/selling lots of GOLD if the price decrese(buy) if the price increse(sell), then my program need to update the TP of the previous open
Hello! I am looking for a utility that will close losing trades at a set level - for example 'Close all losing trades if DD is % or $ of equity' Any Ideas please? Thank you Tim
I am publishing a Trade Manager that will add a stop loss and take profit levels automatically to an existing position opened by the user. Since the EA is a Utility and does not actually open trades, how can I provide testing through the Strategy Tester
  ea  (1)
why is my ea not loading on chart
This should include both elements of hedging trading, using a grid trading algorithm, and a system with a deposit protection. Additional orders are opened with a fixed same lot size , without using lot multiplication (Martingale). If the price starts to move against the order, the EA will begin to
Hello, I recently downloaded MT5 and have purchased a tool that sets stop loss and take profit, similar to one click trading, just with more features. I can't use it because it always gives me the error, "Autotrading is turned off in MetaTrader terminal". I have tried every setting, turned on
Hi I have developed a trading automated routine, testing it numerous times in Strategy tester. I would like to test in the real environment, but it the signals do not trigger. It should trigger about 16 trades a day based on TA basd on trategy tester. Neither if I remove TA trading preconditions
How to convert the OBJ_TREND time1 and price1 into the available coordinates OBJ_BUTTON OBJPROP_ XDISTANCE,OBJPROP_ YDISTANCE
//+------------------------------------------------------------------+ //| demo.mq5 | //| Copyright 2022, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi guys After the order is placed I calculate the stop loss and take profit relative to that price , so I use PositionGetDouble(POSITION_PRICE_OPEN) . now my question : is it alright to get the above function or better to use SymbolInfoDouble(_Symbol,SYMBOL_ASK) as the price? thanks
What in the computer is responsible for the speed of automatic strategy tests CPU? RAM? Video
My friends, what I want to do is to make a breakout system by restricting the trade hours and then to sell if it closes above this hour in the future. For example, the first transaction for GBPUSD will be opened at 11:30. If the next two or three candles are above the close, they will sell if they
What is the best way to Copy trades from one acc to another? I’ve got my main acc the Im trading from some time and get good results I want to open another acc and then copy all the open/close trades does it possible ? I don’t mind to pay some for professional result
Hello, i trying adapt this robot and, i don't can put take profit and stop loss in points. Look: i need put take and stop with 50 points, can you help me? the code: #include <Trade/Trade.mqh> // biblioteca-padrão CTrade input double lote = 0.5 ; input int periodoCurta = 10 ; input int periodoLonga =
int Ema40Handle; double Ema40[]; double Close[]; double Open[]; double High[]; double Low[]; double EntryPrice; double SLPrice; double TPPrice; double LossRatio; double ProfitRatio; bool Bull1; bool Bull2; bool Bear1; bool Bear2;
Dear All, Iam trying to test EA for us stocks on MT5 and it need only closing prices , till now i cant find a good way to make the test with high quality as i am getting wrong and missing bars can any one help on this
Hi . I want read data from txt file . I have a file with name "data.txt" and value inside file is "a" I wrote this code based on the reference. int OnInit () { int file_handle= FileOpen ( "data.txt" , FILE_READ | FILE_ANSI | FILE_TXT ); if (file_handle!= INVALID_HANDLE ) { while (
I'm coding forex robot in python but i cannot make a order on python with mt5. Please help me! It this my backtest result on python strategy on m5 for 3 month compounding
Hello people: if (!trade.PositionClosePartial(ticket_hedge_short[m],lots_toclose, 10 )) Print ( "Error Partial Close: " , _LastError , " - Code: " ,trade.ResultRetcode(), " - Description: " ,trade.ResultRetcodeDescription() , " - BID | ASK " , info.Bid() , " | " , info.Ask()); if
My friends. How do I get information about the DEAL, SYMBOL and ACCOUNT within the EA Wizard's Custom Signal module? I'll be very happy with your answer. Have a nice day
Hi all, I couldnt find any solution that worked on the following problem: I added a new "Order function" to my EA, but everytime I get the warning "return value of OrderSend should be checked". The EA doesnt open any trades anymore. void BuyOrder() { //--- prepare a request
Hello, I'm trying to embed MQL5 Widget to my website. I read the instruction and wrap the code to run on my front-end library (Vue 2) The instruction link: https://www.mql5.com/en/economic-calendar/widgets However, when the component is mounted or when I change route, the widget doesn't load. Only
Hello, i'd like to know if somebody could develop me an Expert Advisor? I tried it myself but got so many errors, doesn't compile at all (over 40 errors, which can't be fixed). Following setup: - 20 EMA - 50 EMA - Stochastic Oscillator (5,3,3) Long: When 20 EMA is above the 50 EMA and Stochastic
Hi all, im very new to this, and after some research im not pretty ready to code anything yet. But I have something in mind maybe you guys can help. So I want to assign market orders to keyboard with this parameters: - BUY. (using current lotage shown in Trading panel) - SELL. (using current lotage
Hello, I have written an EA that should trade 36 symbols of the market watch at the same time. This works in the strategy tester exactly as expected, so it executes exactly the program. However, when I want to run the program live in the demo account, it stops at a certain point. Basically, the