Forum

how to disable two click mouse button for open position?

Hello all, When in order to edit my line at graph I clicked two times of mouse 1 button. Sometimes with this action it automatically open position at Meta5. How to disable two click mouse 1 button for open position? Thank you

Why deleting my post

Hey guys why you deleting my post. I did not break any rules. Why? Please explain why you deleting my post thank you

channel line with specific end period

Hello i am trying to change this code for my purpose. This code draws regression lines at chart. With inputs of start_bar and end_bar. start_bar's value is length of calculation. end_bar's value is always zero. I need to change this code with specific value of end_bar. I directly changed end_bar's

Run .py code

Hello friends please help at this problem. How to run python code(.py) at metaeditor with click of button at chart

connect button to .py code?

Hello is there a solution of this kind of issue? I have created button at my metatrader5 using ObjectCreate(). Also I have python code(.py) at MetaEditor. How to solve that when clicking at button it initializes python code

How to link button to python code?

Hello, I created button at chart at metatrader5. How to link this button to python code at metaeditor? How to initialize this code with click of button

how to close all position except the most old one?

First of all thank you for helping. I am newbie in mql5 coding. How to close all position except most old one? I want close all position except the most old one. I have a code of closing all position by lot. I attached it. void CloseAllPositionsPart() { m_trade.SetAsyncMode( true );

How to build indicator which shows daily drawdown?

Hello, first of all thank you for helping. I just want to create indicator which shows me daily drawdown in metatrader5. How to create it? Thank you. I only have indicator which shows drawdown of current open position. But I need indicator which shows drawdown with period of daily

Dynamic lines

First of all thank for helping at my issue. Think this issue is very easy for you. I want there are two horizontal lines. One is higher than price with specific pips. Another one is lower than price with specific pips. Price move at every moment. Line is must tied to price so it follows price

order_send failed, retcode=10027

Hello i am trying to open trade from Spyder IDE to metatrader5. When i run python script at MetaEditor to Metatrader5 terminal i resulted this error " order_send failed, retcode=10027". How to solve it? Python script simply open trade then colse it. "