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
Hello everyone, I've been coding an EA to automatize my daytrading strategy, and i've run into an issue I cannot seem to solve. The EA runs smoothly and executes the trades automatically in the Strategy Tester , but when it comes to real time trading it doesn't do anything. I have a variable to
Hello, I need your help for translating this MM module in mql5 using CExpertMoney double MoneyManagement() { double lot = 0 ; double Free = AccountInfoDouble ( ACCOUNT_EQUITY ); double LotVal = SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ); double Min_Lot = SymbolInfoDouble (
Hello My friends, i am searching for Martingale EA which uses SL and double the lot size every SL hit, Buttttttttttt the new trade is "in the reverse direction of this lost trade" if TP hit it returns to the initial lot size and absolutely in the same direction of the last profit trade any one have
int Data = CopyRates ( SymbolName (i, 1 ), PERIOD_D1 , 0 , 1 ,PriceInfo); The line of code above was extracted from a script I used to calculate the close prices of symbols. However, I do not quite understand what "Data" means in this code. I need to know what the value would be so that it would
Hello, I want to learn how to code Metatrader 5 with someone that I can meet up with from time to time. I'm based in London UK. Please only contact me if you an experienced MQL5 developer and know about trading. I'm a beginner with coding, more knowledge of trading. Thanks, Mark
Hello every one.... Something weird happened in my expert advisor. It perfectly works fine on XAUUSD but when I change it to another symbol it just stops opening positions, i've just written _Symbol for any required places but I don't know why it only works on gold... anyone happens to have
Hi, Is there a way to code to buy or sell only when it touches the value while coming from top to bottom? I mean, the condition for buy is when RSI value touches 30 and for sell, when RSI value touches 70. But I don't want the trade to happen when RSI moves from 35 to 30 instead i want the trade to
Hi everyone, I have a basic EA which I am using for backtesting indicators (or systems of indicators) for their effectiveness. I have run into an issue where the same indicator with exactly the same settings (input parameters) is giving me different results. A) When I backtest the EA with the
If the stochastic risk line crosses 20 up, buy. If it cuts 80 down, sell. How can I write these codes
Hi Expert, MQL5 reference has a standard library and contain a trade class, one of them is ctrade. However, Under same MQL5 reference, there are trade functions also. I found both can perform trade operation, but when programming, what is the difference, and which one is better? Can share your
This is the code: trade.Sell(fixed_lot,act_symbol,info.Bid(), 0 , 0 , "Sell" ) I don't have any problem usually, but sometimes, in the strategy tester this error appear. 2022.10.08 17:39:52.144 2022.09.05 01:36:00 requote 0.99053 / 0.99055 / 0.99053 (instant sell 0.1 EURUSD.Renko.ATR8.0 at
Hi Everyone, I am trying to run my expert on 4 currencies pairs during backtesting to check for margin calls etc. Unfortunately, one of the two following things keep happening during every backtest; 1) the expert does not trade on all forex pairs, infact it only trades on one, or 2) if it does trade
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.