Forum

Enlarge the chart to the maximum size using the code (help).

Good day I want a script to enlarge a chart to the maximum size That is: When Expert mode occurs on the chart, the chart is enlarged to its maximum size automatically Thank you all

How is the conversion and settlement of numbers (MT5) through the code please help

Hello I want to correct a number to a whole number without a comma MQL5 (MT5) Example 1: 26275.233 To be converted to: 27000 I mean, round it up to 1000 . Example 2: We have: 17125.331 Required to make: 18000 What is the code that does this? (I'm new to learning, please help) Thank you all

MT5-The value in the variable is not suitable (how to convert it to an integer)

Please write the code for this problem I have The variable is in red double MyLot = (Mybalance * 0.02 ) / 0.0015 ; The next line is not executed because the value in the variable is not appropriate Example My Balance Now 985$ : ( 985 * 0.02 ) / 0.0015 = 13133 which is suitable for the size of a

MT5 - I want a code that returns the last three digits of the euro price

Good evening I want a code that returns the last three digits of the euro price, for example, the euro price now: 1.16835 I want to store the last three digits from the right, i.e. (835) in a variable. MT5 thank you

MT5 - Problem in arithmetic operation to extract lot size

Good evening MT5 When doing this calculation: (Balance * 23%) Divide by 0.0015 resulting (lot size) Example: (788 * 0.23) = 181.24 / 0.0015 = 120.827 the problem: Lot size, for example: 120826 It cannot be put this way Required: The result should be a valid lot number, for example: 120000 or 1.20 or

Help take out minutes of time

Hello I have a robot that works on (vps ) But I want to send a notification that he is working at the minute: 40 Please write it to me in one or two lines of code this command (When the minute is 40, send a notification to the mobile platform) Thank you very much

Running a robot on a dummy server

Hello I want to run a robot on MQL-VPS Server located in New York Will it work according to New York time or the timing of the platform on which my account is located? Real example: Server New York time now: 11:30 AM The timing of the platform is now: 18:30 PM Thanks to all

How can I protect a code with a password (mt5)?

I have two questions: 1- How to set a password for the code that I designed? ( So that no one else copies it ) 2- If the code is long (more than 235 lines), will there be a problem or delay in executing the orders? Thank you. Nedal B

MQL5 : Question about time codes

Hi, I want a code that works at the specified time? For example: at two o'clock ten minutes, send me an alarm (MQL5) Thanks to all