Hi guys, Thank you in advance for your time and effort. I am very new to MT5/MQL5 and Python, trying to migrate from Pinescript to MT5 using Python for Auto-trading. I dont have much coding knowledge. Been using internet resources and some ChatGPT. I have come across a problem which i need help
There is a feature on cTrader that I think should be a standard, seen at the bototm of the page https://help.ctrader.com/trading-with-ctrader/orders/#stop-loss-and-take-profit or in the image below. Basically, instead of a standard stop loss which can be triggered by spread alone (the candleprice
I am working on this problem for several weeks now and I just can't find a proper way to solve it. I am looking for help. I want the following to happen: 1) Place 2 orders, n and n+1. n has a TP & SL level, n+1 has only SL level. SL levels are the same for both orders. 2) If SL is hit, fine. Both
When I read different material, I cannot figure out the exact formula for calculating 1 pip... I mean, number of pips, difference from opening and current price. is it (Current price- Opening price )/point? Please provide the exact formula that will calculate the number of pips for all pairs
Hi everyone, I hope you're well 🙂, I'm still a beginner on this famous MQL5 language, but I hope to make progress slowly but surely, However, I do have a few questions, even though I'm thinking of answering them myself one day in the future, but I can't hide the fact that I'm itching to know if
Hello folks, I would like to know if with the Strategy Tester, it is possible to step backward like forward?. With F12 key I can go forward (as I want), but I would like to go backward as well. Is there some way to do that?
Thanks in advance, Cyberglassed.
I have built lots of indicators and EA's in my time and I have a chap who would like to purchase an indicator from me. I am happy to provide the indicator and we have spoken extensively of the risks and such. He is 100% aware of what he is getting into. I haven't however ever sold one of my
Hi all, I am trying to optimize an EA, I have no trouble testing my strategy on a single test but once I try to optimize the inputs or test it on multiple symbols, the test run but not a single trade is taken on any pass. I don't receive any error. Any one had a similar problem? I tried to define my
Hello guys, how can i round a double to lowest number? I have issue for lotsize in martingale 1.5 Starting from 0.01 i have 0.01 * 1,5 = 0.015 (i want round down to 0.01)
Im new to coding, so my line for OrderSend is showing wrong parameter count, what would be the problem and how can i solve it OrderSend ( Symbol (),trade.SellLimit,Lots,entry, 3 ,sl,tp, "Gulitsa" , 0 ,expiration,Red);
Hi, I would like to develop a script that can connect to online mongodb atlas database threw Rest API to make CRUD operations (the authentification is with an API key ) by using the webrequest() function any help or suggestion
What can i use instead of SYMBOL_TRADE_TICK_VALUE ? I am calculating lot size based on risk percentage. Its giving me right lots on EURUSD,GBPUSD but it gives wrong valuein US30, USDJPY. Can anyone help me. I am calculating lot size based on risk percentage. Its giving me right l double calcLots(
Hi, i need to insert a time condition on which the EA trade only between 2pm and 5pm (variables that I will change on backtesting ). I've read several thread but cannot find a way to understand to how to manage "time variables" properly. Any idea on implement it very easily? (an IF Timecurrent > 2pm
Sir, I want to change this Colour Candles but it doesn't work to changing this colour candles int OnInit() { ChartSetInteger ( 0 , CHART_SHOW_GRID , false ); ChartSetInteger ( 0 , CHART_MODE , CHART_CANDLES ); ChartGetInteger ( 0 , CHART_COLOR_BACKGROUND , clrBlack ); ChartGetInteger ( 0
Hello! We're trying to upload our first EA in MQL5 Marketplace, and we are on the last part of the process now. Unfortunately, it gives us this error. Our EA is on M10. What does this mean? and how to solve this error? Please see attached file
Hello, I am new to coding mql5. And I have been coding a scalping EA. Now I need to code it to trade between a time range and two time periods should be as inputs to optimise it afterwards. I need a help with this issue. My code is down below. Thank you
I seem to be having a pathway issue i remove the "AccountNumber" as i dont want to give away my pathway info anyways If anyone could help resolve this would be great. Just noticed AppData Folder is missing in the Root yet i can still manually search it in the control panel function
Hi all, I'd like to hear your opinion about over-fitting and reoptimization. When we tried to find the best parameter for our strategy we often found an over-fitting situation and we all know that over-fitting could lead us to loose money. One thing that I know is that the over-fitting strategy will
Hi everyone, I hope you're all well. how to have several stop losses for a single position pls ? For example: I open one position of 0.10 lot and I would like to have a different stop loss for each 0.01 lot, Do I have to open 10 positions of 0.01 lot ? it's not possible with PositionModify Thank you
// Importing necessary libraries // These libraries provide access to Position Information and Trading Functions. #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> // Define the size of a trading position // 'lotSize' represents the volume of an individual trade in the financial market
hello i think this is a bug and should be fixed - where i can report this? if i do some large FULL optimalization that will take several hours - lets say 77h like on screen in attachment 294784 paasses to do but in some cases (+- 30%) - i KNOWN that this parameter set that is now processed is WRONG
Hi! I want to send an OANDA order request via mt5.send_order(), but it is returning none type. Here is my order request: action: 1, Type: int symbol: US100, Type: str volume: 0.01, Type: float type: 0, Type: int sl: 16627.5, Type: float tp: 16701.75, Type: float deviation: 20, Type: int magic
HI I am trying to use iCustom with the simple call form of OnCalculate indicator. int OnCalculate ( const int rates_total, // price[] array size const int prev_calculated, // number of handled bars at the previous call const int begin, // index number
Hello. I have been reading dozens of articles for three days, but reading those articles just gave me a headache. I just want to do something simple. Create a simple field on the chart where the user enters a value as a string and then I can enter that value into the variable. Please, without
Dear developers, i am trying to write a hedging expert advisor and i have some strange issues with making it work properly, first let me explain the whole idea and then mention the issue: suppose LotMax = 1.0 (input box variable) it is p etty much a bot that when it hits its TP it applies some of
hello, is there a script that gives alert when the account balance reaches a certain level, thanks in advance
Is there a way to display in a bar chart ROI and DD by month and by year on startegy tester report or on a histogram inside the tester? I have tested my EA since 2008 to 2023 and i want to visualize these stats
Is it possible to convert two not very complex advisors from MT 4 to trading in the MT 5 terminal? Auto-translation applied by moderator
I have this code for saving tickets that are stored in an object of the CArrayLong class void Save( void ) { if (m_tester || m_optimization) return ; //--- string name = "" ; if (!GenerateFileName(name)) return ; if (m_basket.Total() == 0 ) { if ( FileIsExist (name))
hi guys i bought an EA which is not working on my VPS PC now. I am loggin into my mt5 account and also into the community account, but the EA does not appear. when i check the market and click on the EA, it just says renew...but i rent it last week for the duration of one month. how to solve this
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.