Unknown Identifier in Debugger


Good morning,

I got an error while running my EA and thus I tried to debug the error. The error "division by zero" makes sense since one variable which is used as the divider is 0. However, for the defined variables "total_PI", "trend_PI" and "Runtime_Days" and others the debugger shows "Unknown identifier". The variables are defined above and if I print them in the Journal I do get values? Haven't yet seen such a behaviour or maybe I currently don't see the forest for the trees...

Unknown Identifier


Carl Schreiber  
Try to declare these variable outside this scope e.g. right after HistorySelect(). It won't explain it but may work.