Questions from Beginners MQL5 MT5 MetaTrader 5 - page 636
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
I use icustom to do everything, but when I change settings for an indicator in an Expert Advisor, I would like the indicator to change the settings for visualization - for example, I changed OBOS zones. I have decided to change OBOS zones. Maybe I should remove it from the chart and then add it with new settings but it has to be done through Expert Advisor. The problem is that nobody has faced it and they change everything with their own hands.
If indicator with source, exchange can be organised via GV. Works, tested before build 6**.
It does not need a source code. When I run the tester with my Expert Advisor, it adds all the indicators that I use in the EA with the parameters, specified in the Expert Advisor. I think it can be done programmatically - remove the desired indicator, and then add it with the desired parameters, or change it immediately. Any other ideas? :)
In MT5 you can, but in MT4 only with crutches, by applying a template. but you can't have templates for all occasions.
Another crutch seems to me like this.
Create an indicator using iCustom() and all its input parameters without the source code. And it should be applied to a chart and controlled by the Expert Advisor.
In MT5 you can, but in MT4 only with crutches, by applying a template. but you can't have templates for all occasions.
Another crutch seems to me like this.
Create an indicator using iCustom() and all its input parameters without the source code. And we should apply it to a chart and control it from the Expert Advisor.
Well, it is a great solution, but how? I use iCustom only to read the buffer data from an indicator, but I don't know how to attach an indicator to a chart through iCustom and then control its parameters. I do not know what to do with it.) Please advise how to do it, well, at least approximate outline :)
Well, it's a great solution, but how? I use iCustom only for reading the buffer data from the indicator, but I don't know how to put the indicator on the chart through iCustom and then control its parameters. I do not know what to do with it.) Please advise how to do it, well, at least approximate outline :)
You get the value of buffer and put it in the buffer of the new indicator. This is the simplest explanation.
buffer[i] = iCustom(,,,,,, i);
This will be a duplicate of the indicator. You have to read GV, compare it with the previous value and if they don't coincide, recalculate indicator with new parameters. The GV will be written in the Expert Advisor if you change parameters of the indicator. I found where I wrote about it. I did an example with MA, but I've lost not only my password from this site, but I also remembered my login only when I found this topic ...)) Without registration does not give me to download, and to write a new example is not desirable.You get the buffer value and put that value in the buffer of the new indicator. This is the simplest explanation.
This will be a duplicate of the indicator. You also need to read the GV, compare it with the previous value and if they don't match, recalculate the indicator with the new parameters. The GV will be written in the Expert Advisor if you change parameters of the indicator. I found where I wrote about it. I did an example with MA, but I've lost not only my password from this site, but I also remembered my login only when I found this topic ...)) Without registration does not give me to download, and write a new example is not desirable.Can you give me a link to that thread. I'll register and download it then :)
Can someone please advise who has encountered and knows how to get from this line:
29301441,1475681547,0,0.01,EURUSD,1.1207,0.0000,0.0000,1475690944,1.1213,0.00,0.00,0.60,,13134545
like this:
-118,120,-39,52,-58,-76,62,-66,-49,-97,-38,-86,-125,-52,-70,-96,89,-23,13,-91,111,74,-79,16,65,127,116,-76,99,5,27,48,42,44,55,-94,84,-72,-63,115,26,18,-47,-46,5,-55,32,68,114,-20,46,-7,79,7,82,78,-91,41,82,-114,121,112,-64,-106,35,-10,24,-128,58,-81,-69,92,34,79,64,-97,52,-95,127,-18,-46,104,104,85,56,93,8,100,14,-52,-88,-38,-28,-76,-49,35,-74,27,120,74,53,124,-104,-59,-1,41,-127,-99,103,104,-38,2,47,-93,68,35,-15,44,123,47,78,-117,15,-114,-46,-98,-108,-26,
Thank you!
Can someone please advise who has encountered and knows how to get from this line:
29301441,1475681547,0,0.01,EURUSD,1.1207,0.0000,0.0000,1475690944,1.1213,0.00,0.00,0.60,,13134545
like this:
-118,120,-39,52,-58,-76,62,-66,-49,-97,-38,-86,-125,-52,-70,-96,89,-23,13,-91,111,74,-79,16,65,127,116,-76,99,5,27,48,42,44,55,-94,84,-72,-63,115,26,18,-47,-46,5,-55,32,68,114,-20,46,-7,79,7,82,78,-91,41,82,-114,121,112,-64,-106,35,-10,24,-128,58,-81,-69,92,34,79,64,-97,52,-95,127,-18,-46,104,104,85,56,93,8,100,14,-52,-88,-38,-28,-76,-49,35,-74,27,120,74,53,124,-104,-59,-1,41,-127,-99,103,104,-38,2,47,-93,68,35,-15,44,123,47,78,-117,15,-114,-46,-98,-108,-26,
Thank you!