Post
Topic
Board Project Development
Re: Qt Bitcoin Trader [Open Source secure trading client for Mac/Windows/Linux]
by
Askit2
on 14/09/2014, 22:18:19 UTC
I have some additional scripts to start or stop. I think I have worked out where to put them. I need a slight delay between each start and stop. Would the following work assuming the scripts are named correctly?

Code:
trader.timer(0.2,"1% Down");

or

 trader.timer(0.2);
 trader.groupStart("1% Down");

The trader.timer I am unsure if I can skip the function call. I could always create a blank function. I think neither will work.

trader.delay(0.2,"trader.groupStart('1% Down')"); will works for you, 0.2 is 200 ms

On current version 1.07.99 BETA my scripts using that code do not actually start or stop the rules they are supposed to. Unless the market moves really fast it isn't a big problem but I have not seen them actually start rules in 5 executions. It looks like the version from early September may have had the same problem for me. I think my week of it running while I was gone may have not been entirely accurate. It hadn't been stopped by the API yet but I had no trades after 9/2 till I fixed the API thing on 9/10. After that I was sure I enabled the required rule because I assumed I forgot to start the rules up. The next day one trade had happened even though at least one more should have. I say this because when enabling the other script suddenly it executed so it likely could have executed sooner. I wasn't 100% sure about it and it was late so I made sure to watch. When both scripts had finally not started the other scripts I notified you.

I have made no changes to my rules from what I sent you. They did work except for one rule that I don't start anymore. I will if I ever get time to babysit it. For now it waits.