Questions from Beginners MQL5 MT5 MetaTrader 5 - page 287
![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
Can you please tell me if the Vendor's signals will be copied when the terminal is switched off?
Your terminal must be switched on. Maybe a VPS would help - not interested.What is a VPS?
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Shepot, 2014.09.04 20:37
Can you please advise how best to solve the following problem:
In indicator #1 a static array is created and filled. In indicator #2 on each new bar you need to get all the values of this array from indicator #1.
I thank you in advance.
barabashkakvn:
Forum on trading, automated trading systems and testing trading strategies
Shepot, 2014.09.04 20:37
Can you please advise how best to solve the following problem:
In indicator #1 a static array is created and filled. In indicator #2 on each new bar you need to get all the values of this array from indicator #1.
I thank you in advance.
Good afternoon!
Would you please
How to write a condition for the EA not to open a deal when there is already an open position, i.e. to check if the order is opened, and if not, it triggers.
What command is used?
Good afternoon!
Would you please
How to write a condition for the EA not to open a deal when there is already an open position, i.e. to check if the order is opened, and if not, it triggers.
What command is used?
Shepot, 2014.09.04 20:37
Please advise how best to solve the following task:
In the indicator №1 astaticarrayis created and filled.In indicator #2 on eachnew bar you need to get all values of this array from indicator #1.Thank you very much.
artmedia70:Doing everything in one indicator with two loops.
Thank you. I have considered that option and came to a conclusion that this approach complicates the overall architecture for the following reason: my indicator #1 is the system kernel (the amplitude filter of a price series) that a whole family of other indicators is drawn from, it is used by Expert Advisors. I do not want to "fix" the indicator in each of them.
At the moment I see the following solution: I calculate the values of each element of the static array[n] as may be necessary (not on each bar), but at each bar I rewrite all n elements of the array to the last n elements of indicator buffer(because it is dynamic) and address it from other indicators with a standard method. Being aware of the "crookedness" of this solution, I am looking for other ways. I am interested in options of data transfer from static arrays (I'm not sure about variables).
I hope on your help.
Thanks. I have considered such an option - I came to a conclusion that this approach complicates the overall architecture for the following reason: my indicator #1 is the core of the system (amplitude filter of price series) that a whole family of other indicators is built from, and Expert Advisors use it. I do not want to "fix" the indicator in each of them.
At the moment I see the following solution: I calculate the values of each element of the static array[n] as may be necessary (not on each bar), but at each bar I rewrite all n elements of the array to the last n elements of indicator buffer(because it is dynamic) and address it from other indicators with a standard method. Being aware of the "crookedness" of this solution, I am looking for other ways. I am interested in options of data transfer from static arrays (I'm not sure about variables).
I hope on your help.