Hi,
I would like to have my indicator on my Radarscreen where it will show that the price got above a threshold, but as it updates, if the time it got above that threshold is older than 5 minutes, it will change color. So I need to store the timestamp when it crossed (I am using 60 minute chart, and the indicator updates every minute). Therefore I need to store a timestamp value that wont be displayed in the radarscreen that I can reference.
Any Ideas?
Static Variables in EL?
-
- Posts: 186
- Joined: 10 May 2012
- Has thanked: 14 times
- Been thanked: 11 times
Re: Static Variables in EL?
Two solution that I think of
1- Use 2 charts. ! hour & 5 minute
Read your data, then wait for the completion of the 5 minutes bar to do you test
2- Read your PC time using the function "MachineTime".
Then add 5 minutes to your result
Read back the PC time and compare it with your hour + 5 minutes value. When >= then do your process
Good luck
Martin
1- Use 2 charts. ! hour & 5 minute
Read your data, then wait for the completion of the 5 minutes bar to do you test
2- Read your PC time using the function "MachineTime".
Then add 5 minutes to your result
Read back the PC time and compare it with your hour + 5 minutes value. When >= then do your process
Good luck
Martin
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Static Variables in EL?
The reserved word is computerdatetime2- Read your PC time using the function "MachineTime".
Then add 5 minutes to your result
Read back the PC time and compare it with your hour + 5 minutes value. When >= then do your process
Good luck
Martin