[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 378
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Here is the indicator itself
if you make a call to an indicator, for example:
remember to define the variables:
then a red bar when p2>p3
and a green bar when p3>p2
I'm writing an EA in MQL4 that switches between accounts. I'm stuck on the following.
I have hWnd variable - terminal login window handler, I need to enter text in Login/Password field and simulate pressing ENTER key. Here is my code:
Only pressing ENTER works - the rest is ignored, please tell me how to fix it.
P.S. probably I should create handlers of fields Login / Password and prescribe them in 1-3 lines instead of hWnd, question how to do it?
Thanks in advance!
Maybe it would be better to create your own topic. Your question is beyond the scope of a newcomer's topic
if you make a call to the indicator, e.g:
remember to define the variables:
the red bar when p2>p3
and a green bar when p3>p2
Maybe it would be better to create your own topic. Your question is beyond the scope of a newcomer's topic
Is it possible to declare an array in an EA?
Can I declare an array in my EA to record my formula calculations for the last few bars?
I.e.
bar i -> calculate by its formula -> in array[i]
bar i+1 -> own formula calculation -> in array[i+1]
etc.
Another question: can EA draw or attach its own custom indicator (if yes, how)?
Is it possible to declare an array in an EA?
Here's the turkey itself
Add reverse to the Expert Advisor or make it open trades in the opposite direction with the same conditions.
Add reverse to the Expert Advisor or make it open trades in the opposite direction under the same conditions.
Please do not post decompiled code. Repeating this might get you banned
Good day to you all. I have this problem:
I need to place an object of type OBJ_TEXT over the hight of a certain bar. If you specify the iHigh value of the bar you want in the object coordinates, the text will be overlaid on the bar and you won't see anything, you have to move the object up by a certain amount of points. I am currently doing this:
where- MaxBuffer[i+n] is the high of the required bar, and VertShift is an external variable. When switching timeframes the text jumps vertically and I have to enter the settings of the indicator and adjustVertShift value each time. I am now tired of tuning and I want to improve my indicator. I would like to finish the work. Please advise how to place the text over the bar to make everything look nice.Good day to you all. I have this problem: