reference manager
reference manager
02 Feb 2018, 18:52
Hi thank you for reading my question ,
Im new to coding
at the moment , i have something like if a condition is fullfilled a messagebox pops out .
to avoid it popping out repeatedly, im doing something like
private int Index = 0;
if (IsLastBar & IsRealTime & Index != index)
{
MessageBox.Show( );
Index = index;
}
my problem is if i am using several indicators e.g. 4, at the same time (like they are in different public class ) if their condition is fulfilled at the same time i would have got 4 message boxes popping out ,
without having to put all of them together in one indicator , is it possible for me to make another indicator that specifically does this (Index = index) thing for all of them, as a group, linking them through reference manager , so only one message box popped out between the start and end of each bar
Thank you very much
Henry
Replies
PanagiotisCharalampous
05 Feb 2018, 11:16
Hi henry.tsui.1222,
I don't making another indicator is way to go around this. I would consider reading and writing this value to a file.
Best Regards,
Panagiotis
@PanagiotisCharalampous
... Deleted by UFO ...