Jump to content

Automatic trading


Recommended Posts

Posted

Hey guys I'm trying to do some automated trading but I'm having problems with spam trading on occasion. Sometimes it keeps doing right-click  -> Trade with.

Account trading other account:

Player trading = getPlayers().closest(this.trading_name);

        if (trading != null && !getTrade().isCurrentlyTrading()) {
            if (trading.interact("Trade with")) {
                new ConditionalSleep(12000, 1000) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return getTrade().isCurrentlyTrading();
                    }
                }.sleep();
            }
        }

Receiving end:

        Player request = getTrade().getLastRequestingPlayer();

        if (request != null && !getTrade().isCurrentlyTrading()){
            if (request.interact("Trade with")){
                new ConditionalSleep(5000, 500) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return getTrade().isCurrentlyTrading();
                    }
                }.sleep();
            }
        }

 

  • 1 year later...
Posted
1 hour ago, JordanAvery said:

Hi there! I'm fairly new to automatic trading and besides that, I have a lot of other questions about that. Where do I find more information about that, or how can I learn more about automatic trading. Any specific forums, or any tips for a newbie? I would appreciate the help, as I'm really interested in trading and I find it very addictive. Also, any good trading platforms for a newbie out there? I keep bumping into investous.com and I like it a lot, but I'm open to other recommendations as well.

Wrong type of trading my friend.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...