[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 302
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
Hmm. I guess you can't use a constant for case as a variable, according to the documentation. It says some kind of target constant, character constant or character expression.
It only works if you set a string-type letter, i.e. 1 character (if more than 1 character, the compiler swears) or a number.
Nothing else.
It says some target constants, character expressions and character constants.
Please advise, there is a signal to open a buy position, some time later there is another signal or several signals to buy, each of which lasts for 1 candle how to make a new order open during each such signal and only one, and not packs without closing previous orders?
Check how many bars ago the last position was opened. If it is more than this, a new position can be opened.
Thank you
I'm learning to work with libraries. I'm writing an Expert Advisor, there's a function like this:
I put it in the inclusion, everything works as it should. But if you connect it to the library, there is an error when compiling the Expert Advisor:
Why is this function not visible in the library?
The library has this content and compiles perfectly:
Hi all. I really need some lectures on programming. Can you tell me where I can download them without any extra hassle? I found only these: http://sdb.su/programmirovanie/page,17,782-mozzhechkov-a-a-upravlenie-robotami-i-robototexnicheskimi-sistemami.html But they don't suit me, as they are too complicated.
Hello.
Could you please tell me if the operator OrdersTotal() actually counts all open orders or those belonging to the symbol assigned to the Expert Advisor?
If it is general, how can we calculate only EURUSD if there are open orders for USDCHF etc.?
Thanks.
Hello.
Could you please tell me if the operator OrdersTotal() actually counts all open orders or those belonging to the symbol assigned to the Expert Advisor?
If it is general, how can we calculate only EURUSD if there are open orders for USDCHF etc.?
Thanks.
It will calculate all of them. If you want to be specific to a symbol or something else, you can use this function: