-
August 6th, 2010, 12:02 PM
#1
JAVA code for ALERT
Hi
I have a program similar to Reuters 3000xtra giving e a series of quotes continuously in time. I believe this program is written in JAVA Code.
I would like to write a JAVA program that scan the value of these quotes and places on the screen an arrow pointing upwards if the quotes are increasing or an arrow pointing downwards if the quotes are decresing.
Is that possible?
Thank you fro your help! It would be very much appreciated
-
August 6th, 2010, 01:11 PM
#2
Re: JAVA code for ALERT
Norm
-
August 6th, 2010, 02:26 PM
#3
Re: JAVA code for ALERT
Hi Norm
Thank you for your reply! Could you tell me a bit more...
Is it a simple thing to do?
Is it necessary to write the code within the code of the initial program?
Thanks again
-
August 6th, 2010, 02:34 PM
#4
Re: JAVA code for ALERT
Your code could create a window and set it visible.
Norm
-
August 6th, 2010, 03:32 PM
#5
Re: JAVA code for ALERT
Could you give me an example of code....
How could I relate it to my actual program, the one that gives me the quotes?
How could I sent the condition?
Thanks a lot!
-
August 6th, 2010, 03:42 PM
#6
Re: JAVA code for ALERT
The program would keep track of the quotes values and when they change, the program would open a window.
Code:
if(thisQuote != lastQuote) { // test if quote has changed
Window win = new Window();
.. add stuff to window re the change
win.setVisible(true); // show window
}
Norm
-
August 6th, 2010, 04:14 PM
#7
Re: JAVA code for ALERT
Okay... thank you
but how do I define "this quote"? I mean, how does the program know hich number it has to relate to?
-
August 6th, 2010, 04:40 PM
#8
Re: JAVA code for ALERT
Are you a programmer?
Your question makes no sense.
You earlier stated: "write a JAVA program that scan the value of these quotes"
That implies that the program can see the values and use them to make decisions.
Norm
-
August 6th, 2010, 04:47 PM
#9
Re: JAVA code for ALERT
I am not a programmer sorry. I would love to become one though.
The program I would like to write should be external to the one running the quotes in real time. I would like to create a link to that program that identifies the quote I am interested in and gives me a pop-up message when certain conditions occur (increase...).
Or do you think I have to insert the code within the code of the program running the quotes? Is it possible to access that code?
-
August 6th, 2010, 05:06 PM
#10
Re: JAVA code for ALERT
I have no idea about the program you are talking about.
You need to find a programmer and have her/him help you with your project.
Good luck.
Norm
-
August 6th, 2010, 05:15 PM
#11
Re: JAVA code for ALERT
I just want that when a certain quote goes down a pop-up message appears saying "Attention the price is decreasing". It doesn't seem such a complicated idea.
-
August 6th, 2010, 05:20 PM
#12
Re: JAVA code for ALERT
It might be very simple.
Contact a programmer and see what he/she thinks.
Norm
-
August 7th, 2010, 06:22 AM
#13
Re: JAVA code for ALERT
I just want that when a certain quote goes down a pop-up message appears saying "Attention the price is decreasing". It doesn't seem such a complicated idea.
It's not a complicated idea but that doesn't mean the implementation won't be complicated.
Your main problem is you need to get access to the data stream so you can parse it and determine which prices are falling. We can't help you with that as we don't have access to the program you are currently using so we don't know how you can hook into the program to get the data.
-
August 7th, 2010, 08:34 AM
#14
Re: JAVA code for ALERT
Thank you for your reply Kaeng
Maybe you can tell me how I can access the code of the program, so that I can copy paste it for you?
Thanks again
-
August 7th, 2010, 09:21 AM
#15
Re: JAVA code for ALERT
Ask the author of the program for a copy of the source.
Norm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|