These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

Market Discussions

 
  • Topic is locked indefinitely.
 

Candlestick Charts in R

Author
ICBC
Short Term Capital Management
#1 - 2015-05-28 06:03:05 UTC
A few of the resident traders in Haulers Channel were showing some interest in plotting historical candlesticks in R, so I threw this together last night for fun: http://pastebin.com/STGbJYtb. Pretty much took CCP Quant's reddit post and candle-ified it some. Example call (after loading function) is: candleChart('Tritanium', 'The Forge', 7)


  • Commented out packages at top need to be installed.
  • Eve does not give open or close, only average. The aggDay argument will chunk the days up into aggDay slices, using the avgPrice of the first day as the "open" and the avgPrice of the last day as the "close."
  • For instance, aggDay=1 produces bar charts like Tritanium @ The Forge (1).
  • OTOH, aggDay=7 produces more candle-y charts like [Tritanium @ The Forge (7).
  • TypeID conversions are pulled from fuzzworks, regionID conversions from public-crest.
  • Code may or may not be ugly and is provided as-is.
  • Look at that Zydrine!
  • CCP Quant's plotting tools are much prettier than mine.
  • If you somehow manage to run this function more than 25 times a second, crest will barf at you.


Enjoy!