Using Key Functions in a library

IronBadger  

The more I play around and develop EA's I find I am using the same blocks of code again and again (Check for New Bar, Check if a trade is already open, PipDigits and so on). Rather than copy / Paste these from EA to EA I was looking to create a standard library I can import to any EA I make and save some time, and reduce white noise in my EA.


However I cannot expose some standard functions in my library file such as Time[] , Symbol() and so on. So how do I achieve my aim, short of passing datetime[] &time to a function that needs time and so on? Or is my task pointless, and I should just cut / paste this block of code into each EA, and hope that I never find I need to change any of these core functions?


TIA

Alain Verleyen  
Show your attempt if you need coding help.
Reason: