Performance Tuning Custom Code

 

Does anyone have some tips for performance tuning Indicators / EAs?  I'm wondering if there are some basic dos and don'ts on speeding up performance.

 
Don't do per tick what doesn't need to be done. Filter ticks (once per bar or when price a trigger level)
Reason: