Hello. I'm new to jForex and to Java (although I know C/C++). I'd like to implement a timer in my strategy so that from the moment I start it, a task is completed every x seconds. I googled a bit and tried to merge what I found with my strategy code. The result:
https://paste.pocoo.org/show/278054/Please, look only until
public void onStart
because the rest is not important right now. With this setup I get the following errors:
17:34:01 ----------
17:34:01 ReminderBeep cannot be resolved to a type
17:34:01 ^^^^^^^^^^^^
17:34:01 new ReminderBeep(2);
17:34:01 2. ERROR in /tmp/jfxide/tmp/Strategy.java (at line 44)
17:34:01 ----------
17:34:01 Return type for the method is missing
17:34:01 ^^^^^^^^^^^^^^^^^^^^^^^^^
17:34:01 public ReminderBeep(int seconds) {
17:34:01 1. ERROR in /tmp/jfxide/tmp/Strategy.java (at line 27)
17:34:01 ----------
I guess it's something really simple I'm missing, nevertheless I kindly ask for help.