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
Why? Nothing is changing. Return from OnTick/OnCalculate and wait to be called when something does change.
LOL... I still don't know what you mean by 'doesn't work'... If you seriously want a solution, and if you really don't want to share your code here, feel free to private message me - I'll try to help you figure out what could be wrong.
LOL... I still don't know what you mean by 'doesn't work'... If you seriously want a solution, and if you really don't want to share your code here, feel free to private message me - I'll try to help you figure out what could be wrong.
ok - if i cut this code from my code - things are starting to work... this piece of code is at the end of my own code...
ok - if i cut this code from my code - things are starting to work... this piece of code is at the end of my own code...
Since this is made up of sub-blocks for different currencies, have you tried putting sub-block by sub-block (i.e. currency by currency) back?
Another thing you can try is to put this whole block back, but remove the earlier parts (unless they're essential for this block to work?), just for testing.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
When you post code please use the CODE button (Alt-S)! (For large amounts of code, attach it.) Please edit your (original) post.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
seeing this now. i cannot edit my initial message since the edit button is not there. sorry for inconvenience... my bad.
seeing this now. i cannot edit my initial message since the edit button is not there. sorry for inconvenience... my bad.
I have edited it for you this time.
A loop body with 2000 lines is difficult to read and maintain. Even if only you are going to use it and no one else participates. Think what will happen when you didn't work with this code for half a year and then come back to reuse it. It would be much easier to maintain if you break the block into smaller pieces and make functions from it. Btw 'while(true)' is commonly used.
while (true) was the solution (the rest of 1>0 or others behave funny) - works now for the entire code.
you are very helpful lippmaje !
thanks.
case closed.