Page 1 of 2 12 LastLast
Results 1 to 25 of 27

Thread: Grand Exchange Predictor

  1. #1
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Grand Exchange Predictor

    This script will look at an item's graph on the grand exchange and basically try to guess what will happen next and draw it out.
    It is also useful for some other things if you like merchanting.
    This is one of those projects that was supposed to be quick, and then a few days later I'm still stuck and have gotten no where, but here it finally is.

    How to use it-
    Open up the grand exchange on your web browser and have a graph up and visible (with SCAR not blocking the graph).
    Drag the corsshair to the window!
    You can have 30, 90, or 180 day up, any will work.
    I prefer 90 day graphs.
    Run the script and there you go.

    What the features do-
    Show Circles-
    This toggles the yellow and blue circles on and off.
    Yellow represents a point where you need to sell your item.
    Blue represents a point where you need to buy your item.

    Green rise/ Red fall-
    These 2 can be switched on and off to emphasize what part of the graph you are wanting to look at.
    Turning both off will leave just a white line.

    Generate prediction-
    This button creates the prediction of what will happen next and displays it.

    Highlight prediction-
    Checking this will turn the newly added segment of the graph blue to show exactly what part has been generated.

    Connect highs-
    This makes a line connecting all the high points together, giving you a good idea of the item's max range.

    Connect lows-
    This makes a line connecting all the low points together, giving you a good idea of the item's low range.

    Guide line-
    This is my recreation of the "30 day average" line that jagex uses.
    The box underneath it that says "curve" is how closely it follows the actual graph.
    A curve of 50 can be used to show when prices are above/ below their average.




    You can obviously view the source, but it's a bit hard to follow
    frmDesign.Canvas.Ellipse(Fall[i][High(Fall[i])].x - 4, Fall[i][High(Fall[i])].y - 4, Fall[i][High(Fall[i])].x + 4, Fall[i][High(Fall[i])].y + 4);
    IncEx(R, FindAngle(Rise[i][0].x, Rise[i][0].y, Rise[i][high(rise[i])].x, Rise[i][high(rise[i])].y));
    IncEx(RR, Distance(Rise[i][0].x, Rise[i][0].y, Rise[i][high(rise[i])].x, Rise[i][high(rise[i])].y));
    Points[1]:= Point(Round(Sin(R * Pi / 180) * Radius) + Points[0].x, Round(Cos(R * Pi / 180) * -Radius) + Points[0].y);
    Points[2]:= Point(Round(Sin(F * Pi / 180) * FR) + Points[1].x, Round(Cos(F * Pi / 180) * -FR) + Points[1].y);
    So here is how it comes up with a "prediction"

    It sorts all the points into the graph into 2 array of TPointArray's, one for rising lines and one for falling lines.
    It measures how high each rise/ fall is and how long each lasts.
    Then an "average" can be calculated based on that, which is drawn in on the end.


    Note:
    This only shows what is LIKELY to happen based on past events.
    DO NOT invest money into something you see happening with this script if you don't know much about merching.
    Also this script only works well on items with a lot of rising and falling.
    It doesn't work as good with strange graphs like rares or items that have been merched by clans a lot.
    Last edited by YoHoJo; 10-02-2009 at 01:18 PM.

  2. #2
    Join Date
    Sep 2009
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    over a long period of time would i end up making a profit?

  3. #3
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Crashed SCAR when ran

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  4. #4
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    GE.Scar + this => Merchanter = win

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    Crashed SCAR when ran
    Me too :/
    I really want to try this script :P
    I am using 3.22

  6. #6
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    This was made on 3.20
    I'll download the newest version and see what happens.

    Edit:
    Downloaded 3.21 and I can't get anything to crash.
    I tried changing my screen resolution because I keep mine really high and it still worked.
    Here is a screenshot of it
    http://i200.photobucket.com/albums/a...ikel/graph.jpg

    When it crashes does it give an error message or just disappear?
    Does scar have anything written out in the debug box?
    Does the form come up before it crashes?

    Also you have to have the graph visible when it is ran or it won't find any points (use the hotkeys to run the script)

  7. #7
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    [Runtime Error] : Exception: Access violation at address 00589CAE in module 'scar.exe'. Read of address 0000000E in line 124 in script C:\Documents and Settings\Jake\My Documents\Grand Exchange predicter.scar
    Did someone say GDK?

  8. #8
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Anyone else have any info?
    It's hard to fix an error that doesn't happen for you.

  9. #9
    Join Date
    Jun 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Access violation at address 75A65276 in module 'GDI32.dll'. Write of address 00000008. looked at Santa hats

  10. #10
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Also crash.
    @RM, meh i just like merchanting by hand, no need for script. Buy st00f, wait, sell st0ff, profit!

  11. #11
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Still wondering
    Does scar have anything written out in the debug box?
    Does the form come up before it crashes?
    And isn't it strange that mine has never done this but it seems to happen to every other person?

  12. #12
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    You could make a bot that downloads the graphs of all f2p items and filters out the best merch items. That would be amazing, also for a bot that would auto-merch.

    Good job . Maybe work on the prediction function ;D.

    ~caused

    //Edit: It worked very well here.

  13. #13
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Meh "best merch item" is kind of an opinion. And why does everyone want merch bots!
    Its easy. Just pick an item to merch based on graphs, buy it, wait, sell it. Why would you need to auto that it takes 3 minutes?!

  14. #14
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The error is because you are passing an empty TPA to HorizontalTPAToLine.

    Add this after line 104

    Code:
    Writeln(IntToStr(Length(TPA)) + ' ' + intToStr(High(TPA)));
    and you get this

    Code:
    0 -1
    Just add a check in there to prevent errors, or use try .. except.

  15. #15
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    You won't pass an empty TPA if it finds the graph.
    So a check for length won't help anything except for keeping SCAR from crashing.
    The script still can't do anything with an empty TPA.

    I don't understand how it doesn't create the TPA for some people then.
    It just uses FindColorsTolerance on the yellow color of the line on the graph to set a TPA of all the points.

    Edit:
    Drag the SCAR crosshair either to the web page or to your desktop.
    If you had targeted something else and bring up the GE page with a graph on it, the coords are all messed up so it won't find the TPA.

  16. #16
    Join Date
    Oct 2009
    Location
    usa the home of Damocracks
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it works great for me thinks for making it. it gives me ideas for some scripts

  17. #17
    Join Date
    Jul 2007
    Location
    world 44
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think this is a great idea good work

  18. #18
    Join Date
    Mar 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So pretty much lets you know if an item is heading for a statistical rise or crash by looking at the numbers? Auto merching? Nice, great work.

  19. #19
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by altec View Post
    tried it with pure ess and it shows it will rise so i will try with like 500k :P
    great thing, GJ
    I doubt it :/
    but good luck :P

  20. #20
    Join Date
    Nov 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Tried it, like it, good job

  21. #21
    Join Date
    Nov 2007
    Location
    lol
    Posts
    176
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    New client targeted
    Successfully compiled (52 ms)
    Finding graph points...
    Sorting the graph points from left to right...
    Turning TPA into a line...
    [Runtime Error] : Out Of Range in line 124
    Last edited by wesleyxD; 11-16-2009 at 09:11 PM.

  22. #22
    Join Date
    Sep 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    didnt work for me. same error as wesley.

  23. #23
    Join Date
    Aug 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How does it predict?
    I am the Ruhiges
    Join Date > Post Count

  24. #24
    Join Date
    Oct 2006
    Location
    Scandinavia
    Posts
    188
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by neko gio goto View Post
    How does it predict?
    Don't gravedig please..
    ~Caza

    Above & Beyond <3

  25. #25
    Join Date
    Mar 2010
    Location
    New Hampshire, U.S.A
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i change the line it crashes on to i-1 and it compiles, but it stops at finding graph points


    EDIT: i figured that i must have mised instructions :P ill retry and repost.


    EDIT2: i cant get ther cuz rs is blocked at school :O. i remember that they only blocked game.ws, must have changed

    i took a quiz because i wanted to see the answer to a qurestion on a page with pic of graph. scar didnt work with the pic but here is the badge they told me to post since im so smart ^.^ [img=http://www.rune-tips.net/images/GrandExchangePlaque.png]

    -----

    i give up trying to fix this, it is forever broken -.-
    Last edited by g0tp0t; 04-26-2010 at 10:18 PM.
    Sell botted goods at mid to high prices!!! Else we lose our profit AND ruin the game!!!!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •