reference manager

Created at 02 Feb 2018, 18:52
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
12

1222Ht

Joined 11.11.2017

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


@1222Ht
Replies

... Deleted by UFO ...

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

1222Ht
10 Feb 2018, 20:34

thank you very much , i have solved this problem


@1222Ht