[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 302

 
So this is about writing an indicator. There is an indicator and it works, but the Expert Advisor with the code of this indicator does not want to, it does not see the sm[i] array.
 
drknn:

I've edited the post - there's a different link now - click again - there's a VERY good course there - better start with creating a script.
Thanks, will fill in the blanks :)
 
Alexandr24:
Thanks, I'll fill in the blanks :)

Sorry. I didn't realise the links didn't work anymore. I still have a copy of these lectures, published back in prehistoric times. Here it is on the file-sharing site: http://depositfiles.com/files/eg4fmn3bp - Download it, unzip it, run it and click "Home" - the lectures are bottom-up.
 
granit77:
1. The standard way to get indicator data in the Expert Advisor is exactly iCustom.
2. #include does not belong to this category at all. Forget about it for now.

Thank you very much! Sorry for the late reply.

I've got it all worked out, all that's left to figure out is why the down arrow signal isn't working.

 
durol:

I use non-standard TFs on MT-4 - M21 M89 M377
they do not update automatically

i have noticed if you connect and disconnect the connection 2 times, all non-standard TFs will automatically update
which is more convenient than clicking update for each currency

EASTERNLY open charts, the terminal has been idle for several hours - all non-standard timeframes update automatically

what to press, where to press so that with a LAST connection they all update at once?
i tried to open: market overview, login, click on currencies, minimize - maximize window

if i connect - disconnect - download gets interrupted.

Found it on the MT4 forum

AlexSilver 09.05.2006 16:13
Yes... The script is removed when new tick appears. If you want to use the copied it will be much faster.

Slawa 04.05.2006 10:29
There will be no online non-standard charts

only 2006 posts

if sometimes the charts update themselves - there must be some kind of pattern

As far as I can see, the whole problem is a double faulty connection

I think it is not difficult to write a script or something similar, so that in the panel, if necessary, an icon appears (or in the context menu, which is less convenient), which twice (at intervals of 5 seconds - so that there is no connection, then 5 seconds) will disconnect - connect the connection and thus automatically update all the non-standard TF

at least do not touch the terminal for a couple of hours - it will update itself

But this is not the best solution - it does not always work and sometimes you need an update every half hour

thanks to

figured it out by myself.

dll should be enabled not in Tools - Settings, but in the properties

Service - Settings helps if a non-standard TF chart is white without everything

it is unclear why this checkbox is not checked by default in this indicator - without it the indicator does not auto-update - this is a clear minus of developers

is not updated with every tick- somewhere with one of three
is drawn auto-updated not with every tick - but the same as manually updated

 

Good day all!

Can you suggest a handy program to read and write MT4 scripts?

 
Ekburg:

Good day all!

Can you suggest a handy program to read and write MT4 scripts?

MetaEditor
 
Alexandr24:
Thanks, I'll fill in the blanks :)
About transferring indicator code to Expert, basic articles.
https://www.mql5.com/ru/articles/1456
https://www.mql5.com/ru/articles/1457
https://www.mql5.com/ru/articles/1463
 
granit77:
On moving the indicator code into the Expert Advisor, basic articles.
https://www.mql5.com/ru/articles/1456
https://www.mql5.com/ru/articles/1457
https://www.mql5.com/ru/articles/1463

But it's better not to transfer indicator code to expert - it will be slow
 
Vinin:

But it's better not to transfer the indicator code to the espert - there will be brakes
Agreed, there was a vigorous discussion about speed. Vinin and Integer were in favour of separate indicators.
I believe them :))
Reason: