             }
             else
             {
-                CGContextSetStrokeColorWithColor(context, UIColor.blackColor().CGColor)
+                CGContextSetStrokeColorWithColor(context, shadowColor.CGColor)
                 CGContextStrokeRect(context, _bodyRect)
             }
         }

            
            // draw the shadow
            
            var shadowColor = dataSet.shadowColor ?? dataSet.colorAt(j)
            if (dataSet.makeShadowSameColorAsCandle)
            {
                if (e.open > e.close)

                }
            }
            
            if (shadowColor === nil)
            {
                shadowColor = dataSet.shadowColor ?? dataSet.colorAt(j);
            }
            
            CGContextSetStrokeColorWithColor(context, shadowColor.CGColor)
            CGContextStrokeLineSegments(context, _shadowPoints, 2)
            
            // calculate the body
