Size of this PNG preview of this SVG file: 100 × 100 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels.
Original file (SVG file, nominally 100 × 100 pixels, file size: 549 bytes)
This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
Summary
DescriptionBearish-harami.svg |
English: See source code below. |
Date | |
Source | Own work |
Author | Protious |
Source code
The following source code was used to generate this SVG as well as all the other SVGs shown here. The shapes and their names were copied from this revision of the "candlestick pattern" article on Wikipedia.
Source code
# Python 2.5 def chart(candlesticks): upcol = 'rgb(255,255,255)' #'rgb(51,255,51)' downcol = 'rgb(0,0,0)' #'rgb(255,51,51)' bodycol = 'rgb(100,100,100)' #'rgb(175,175,175)' #'rgb(183,183,183)' shadowcol = 'rgb(100,100,100)' #'rgb(175,175,175)' bodywidth = 12 xstep = 17 startx = (100-(len(candlesticks)*17-5))/2 curx = startx out='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" version="1.1">\r\n' for candlestick in candlesticks: col = [downcol,upcol][candlestick['close']>candlestick['open']] top = str(100-max(candlestick['open'],candlestick['close'])) bottom = str(100-min(candlestick['open'],candlestick['close'])) height = str(int(bottom)-int(top)) high = str(100-candlestick['high']); low = str(100-candlestick['low']) bodycenter = str(curx+bodywidth/2) out+=' <line x1="'+bodycenter+'" y1="'+high+'" x2="'+bodycenter+'" y2="'+low+'" style="stroke:'+shadowcol+'" shape-rendering="crispEdges"/>\r\n' if top!=bottom: out+=' <rect width="'+str(bodywidth)+'" height="'+height+'" x="'+str(curx)+'" y="'+top+'" style="fill:'+col+';stroke:'+bodycol+'" shape-rendering="crispEdges"/>\r\n' else: out+=' <line x1="'+str(curx)+'" y1="'+top+'" x2="'+str(curx+int(bodywidth))+'" y2="'+bottom+'" style="stroke:'+bodycol+'" shape-rendering="crispEdges"/>\r\n' curx += xstep out+='</svg>' return out file('big-black-candle.svg','wb+').write(chart([{'open':80, 'close':20, 'low':10, 'high':90}])) file('big-white-candle.svg','wb+').write(chart([{'open':20, 'close':80, 'low':10, 'high':90}])) file('black-body.svg','wb+').write(chart([{'open':70, 'close':30, 'low':20, 'high':80}])) file('white-body.svg','wb+').write(chart([{'open':30, 'close':70, 'low':20, 'high':80}])) file('shaven-bottom.svg','wb+').write(chart([{'open':45, 'close':30, 'low':30, 'high':60}])) file('shaven-head.svg','wb+').write(chart([{'open':45, 'close':60, 'low':30, 'high':60}])) file('doji.svg','wb+').write(chart([{'open':50, 'close':51, 'low':30, 'high':70}])) file('dragonfly-doji.svg','wb+').write(chart([{'open':69, 'close':70, 'low':30, 'high':70}])) file('gravestone-doji.svg','wb+').write(chart([{'open':30, 'close':31, 'low':30, 'high':70}])) file('long-legged-doji.svg','wb+').write(chart([{'open':50, 'close':51, 'low':20, 'high':80}])) file('bearish-harami.svg','wb+').write(chart([{'open':20, 'close':80, 'low':10, 'high':90}, {'open':50, 'close':40, 'low':30, 'high':60}])) file('bullish-harami.svg','wb+').write(chart([{'open':80, 'close':20, 'low':10, 'high':90}, {'open':40, 'close':50, 'low':30, 'high':60}])) file('bearish-harami-cross.svg','wb+').write(chart([{'open':20, 'close':80, 'low':10, 'high':90}, {'open':50, 'close':50, 'low':35, 'high':60}])) file('bullish-harami-cross.svg','wb+').write(chart([{'open':80, 'close':20, 'low':10, 'high':90}, {'open':50, 'close':50, 'low':35, 'high':60}])) file('bearish-3-method-formation.svg','wb+').write(chart([{'open':80, 'close':30, 'low':20, 'high':90}, {'open':35, 'close':50, 'low':25, 'high':60}, {'open':55, 'close':65, 'low':50, 'high':70}, {'open':68, 'close':73, 'low':65, 'high':75}, {'open':70, 'close':20, 'low':15, 'high':73}])) file('bullish-3-method-formation.svg','wb+').write(chart([{'open':20, 'close':70, 'low':80, 'high':10}, {'open':65, 'close':50, 'low':75, 'high':40}, {'open':45, 'close':35, 'low':50, 'high':30}, {'open':32, 'close':27, 'low':35, 'high':25}, {'open':30, 'close':80, 'low':85, 'high':27}])) file('three-white-soldiers.svg','wb+').write(chart([{'open':15, 'close':45, 'low':5, 'high':50}, {'open':40, 'close':75, 'low':35, 'high':80}, {'open':65, 'close':90, 'low':55, 'high':90}])) file('tweezer-bottoms.svg','wb+').write(chart([{'open':60, 'close':20, 'low':20, 'high':70}, {'open':20, 'close':50, 'low':20, 'high':60}])) file('tweezer-tops.svg','wb+').write(chart([{'open':40, 'close':80, 'low':80, 'high':30}, {'open':65, 'close':80, 'low':45, 'high':80}])) file('rising-window.svg','wb+').write(chart([{'open':15, 'close':40, 'low':5, 'high':45}, {'open':60, 'close':90, 'low':55, 'high':95}])) file('falling-window.svg','wb+').write(chart([{'open':90, 'close':60, 'low':55, 'high':95}, {'open':10, 'close':40, 'low':5, 'high':45}])) file('three-black-crows.svg','wb+').write(chart([{'open':85, 'close':55, 'low':50, 'high':95}, {'open':60, 'close':25, 'low':20, 'high':65}, {'open':35, 'close':10, 'low':10, 'high':45}])) file('doji-star.svg','wb+').write(chart([{'open':80, 'close':40, 'low':35, 'high':95}, {'open':22, 'close':22, 'low':5, 'high':30}])) file('inverted-black-hammer.svg','wb+').write(chart([{'open':40, 'close':30, 'low':30, 'high':65}])) file('inverted-hammer.svg','wb+').write(chart([{'open':30, 'close':40, 'low':30, 'high':65}])) file('long-lower-shadow.svg','wb+').write(chart([{'open':65, 'close':75, 'low':30, 'high':80}])) file('long-upper-shadow.svg','wb+').write(chart([{'open':35, 'close':25, 'low':20, 'high':70}])) file('dark-cloud-cover.svg','wb+').write(chart([{'open':20, 'close':55, 'low':10, 'high':65}, {'open':80, 'close':35, 'low':35, 'high':90}])) file('engulfing-bearish-line.svg','wb+').write(chart([{'open':40, 'close':60, 'low':30, 'high':70}, {'open':80, 'close':20, 'low':10, 'high':90}])) file('engulfing-bullish-line.svg','wb+').write(chart([{'open':60, 'close':40, 'low':30, 'high':70}, {'open':20, 'close':80, 'low':10, 'high':90}])) file('evening-doji-star.svg','wb+').write(chart([{'open':15, 'close':70, 'low':10, 'high':75}, {'open':87, 'close':87, 'low':78, 'high':92}, {'open':80, 'close':35, 'low':25, 'high':87}])) file('morning-doji-star.svg','wb+').write(chart([{'open':70, 'close':30, 'low':25, 'high':80}, {'open':18, 'close':18, 'low':8, 'high':25}, {'open':27, 'close':55, 'low':22, 'high':60}])) file('evening-star.svg','wb+').write(chart([{'open':15, 'close':70, 'low':10, 'high':75}, {'open':75, 'close':87, 'low':70, 'high':92}, {'open':80, 'close':35, 'low':25, 'high':87}])) file('morning-star.svg','wb+').write(chart([{'open':85, 'close':35, 'low':30, 'high':90}, {'open':13, 'close':25, 'low':8, 'high':40}, {'open':27, 'close':65, 'low':22, 'high':70}])) file('on-neckline.svg','wb+').write(chart([{'open':70, 'close':40, 'low':30, 'high':80}, {'open':20, 'close':35, 'low':10, 'high':45}])) file('piercing-line.svg','wb+').write(chart([{'open':70, 'close':30, 'low':30, 'high':80}, {'open':15, 'close':55, 'low':10, 'high':60}]))
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Items portrayed in this file
depicts
26 February 2013
image/svg+xml
1c2c1bb93df4be0402a348de19ed2b249a35a161
549 byte
100 pixel
100 pixel
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:56, 26 February 2013 | 100 × 100 (549 bytes) | Protious | Centered. | |
02:30, 26 February 2013 | 100 × 100 (549 bytes) | Protious | Size adjustment. | ||
02:24, 26 February 2013 | 512 × 512 (524 bytes) | Protious | User created page with UploadWizard |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on ko.wikipedia.org
- Usage on vi.wikipedia.org
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 100 |
---|---|
Height | 100 |
Retrieved from "https://en.wikipedia.org/wiki/File:Bearish-harami.svg"