private static int LastBarNum;
public static bool Check(int currentBar){
bool IsNew = LastBarNum != currentBar; LastBarNum = currentBar; return IsNew;
}
so, if i use this addon in first indicator (which is attached to chart) and it gets/sets (according my coded logic) and I attach second instance of indicator on the chart, will the second instance and first instance of indicators will interfere with each other (re-writing the same variable from their own logic)?
or they will open "my-addon" in their own separate instance, thus the variable will be dedicated to their instances?
maybe i have expressed correctly what i meant..
Comment