Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1137
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
Good afternoon!
Help me find out what's wrong. I need to output the price when the line is crossed by a bar. I have written the code.
int start() {
double pr=ObjectGetValueByShift("line",0);
Alert (pr);
return(0);}
line is the name of the line.
This code always shows "0".
The line is a trend line. Changed the properties to beam. It did not help. Ideally the price should be displayed regardless of the position of the zero bar (top, bottom).
This code doesn't work either.
int start() {
double pr=ObjectGetValueByShift("line",0);
If (Bid==pr){
Alert (pr);}
return(0);}
What's wrong?
There is aBill Williams Market Facilitation Index indicator in MT4.
Please write a function tooutput 1 when a pink line is formed, 2 is green, 3 is brown, 4 is blue on bar [1].
Greetings.
I am planning an EA with functions that onevery tick will loop through the available orders created by it and act depending on the situation.
Can you advise how to make separatevariables for each new orderand for further loops to work with them? (I assume this is something like Peremennaja+ticket=12345;)
Greetings.
I am planning an EA with functions that onevery tick will loop through the available orders created by it and act depending on the situation.
Can you advise how to make separatevariables for each new orderand for further loops to work with them? (I assume this is something like Peremennaja+ticket=12345;)
Why clutter up all the topics with one question?
Then it's already "shitting". Asking in two threads at all != everything. And the two threads where I asked are not inconsistent with the content of the question. Well at the time the other one didn't answer and the question "burns".
Greetings.
I am planning an EA with functions that onevery tick will loop through the available orders created by it and act depending on the situation.
Can you advise how to make separatevariables for each new orderand for further loops to work with them? (I assume this is something like Peremennaja+ticket=12345;)
To write a class and for each order to create an object of this class