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
you need to display one of the indicators as a background, is this possible?
Are they displayed differently?
Hello!
Please tell me what I'm doing wrong. The Expert in the attachment compiles successfully and runs for debugging. But it refuses to work in the tester.
Hello!
Please tell me what I'm doing wrong. The Expert in the attachment compiles successfully and runs for debugging. But it refuses to work in the tester.
It will work only once at initialization.
The main code must be located in OnTick (in your case).
Right now it looks like something like a script, i.e. it renders the body of the code only when connected to a chart/beginning of a test.
You will have it worked out once during initialisation
The code is cited as an example to show what exactly does not work. Of course, it will not be used in that form. Why does it work normally in debug and not in the tester? That's the question!
move the variable declaration beyond the OnInit function and assign a bool value - it worked for me both in the tester and in debugging
Hello!
Please tell me what I'm doing wrong. The Expert in the attachment compiles successfully and runs for debugging. But it refuses to work in the tester.
move the declaration of a variable beyond the OnInit function and assign a bool value - everything worked in my tester and in debugging at once
And when compiling no questions arise? ))
It arises, but in practice the expression for some reason says it's OK
I don't care if it's OK, so why should I argue)))- although the question arises - why?
I think there's not enough else after if to check if everything is OK
It arises, but in practice the expression for some reason says - everything is OK
I don't care if it's OK, so why should I argue)))- although the question arises - why?
I think there's not enough else after if to check if everything is OK
)) I mean, why do we need to make the cl_ctx variable a bool type, if:
The return value
Handle to OpenCL context on successful creation, or -1 on error. Use GetLastError() to get the error information.