Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
RSI indicator customization
posted

Please provide a code sample that explains how to change the brush for RSI indicator.

I want to customize the brushes for Area, Column and Trend-line IGIndicatorDisplayType available in RSI.

  • 21382
    Verified Answer
    posted

    The RSI is just an indicator and would be the Area overlay in the SamplesBrowser.  As an indicator the brushes that control color would be the .brush property and the .negativeBrush property. 

    So in ObjC the code would look something like

                financialIndicator.negativeBrush = [[IGBrush alloc] initWithColor:[UIColor greenColor

                                                                                   ]];

                financialIndicator.brush=[[IGBrush alloc] initWithColor:[UIColor blueColor

                                                                         ]];