Forum

ChartSetInteger (0, CHART_HEIGHT_IN_PIXELS, 1, 80);

How to unlock subwindows height after using ---> ChartSetInteger (0, CHART_HEIGHT_IN_PIXELS, 1, 80); ? It is impossible to adjust the height manually, even after restart of MT5

Move a trend line.

How do I know which endpoint on the trend line I move with the mouse? I will write the new value to Global Variable

Calculate the size of the possible lot.

Buy odh sell, how is the code for this? I have $ 10000 and I'm willing to risk type 2% (= $ 500) of this on a single trade. I want to calculate how much (lot) I can trade when StopLoss is placed. Also taking into account the existing spread. Can apply to both bay and sell orders . Thank you for

How to start a script from a button in an indicator.

How to start a script from a button in an indicator. I have a button on the indicator, and the button works fine. I have a script with a hotkey connected , and it works well . What is the code to start the script with a click of the button. Grateful for help .... Lenpa