But why do you wait several weeks to ask me such question 
Are you sure that the correct name is Chart_is_offline? I think it is FXD_CHART_IS_OFFLINE, but normally there is no problem and I can compile the project that you now have in the web version. If you have problems with the local version, then I need more info.
Every mathematical strategy has some weakness, specific series of events that lead to crash 

Why not deleting them and make only 3 orders with bigget lot size.