Hi all,
Is there a way to create user defined functions which you can then call from other scripts? So for example, I could create a function called “GetTrendDirection” and call that function in any script I choose.
Any help appreciated. I can’t see any reference to this in the manuals.
thanks
Yes, sort of!
Indicators work almost like functions.
You can find some examples here https://www.prorealcode.com/topic/tomorrows-date/#post-94795.
Great I will take a look! Why this wouldn’t be provided is crazy!