Hey Amibroker Forums,
I have been looking into XY Scatterplots through exploration as a means to compare segregated symbols E.g Volatility Symbols. However i have come across a few issues that i cant seem to grasp how to fix.
Firstly: I wish to plot quadrants in the graph to visually differentiate the X/Y Variables as marked by the red drawn lines in the image below.
https://gyazo.com/d5e9a94fea31c94b1d79b772dcb3bf60
Secondly: As seen on the image above, the graph is cutting off the text of the symbols to the far right. Is there any way to change that so the graph automatically adjusts for the text to fit in ?
- Sorry for the odd questions, tried to google and tinker around first to no avail. Thankyou for your time.
chartname="MOD-RISK/YIELD";
Length = SelectedValue( BarIndex() );
yield =LastValue(C);
risk = LastValue( variableneg - variablepos ); // Variable not listed as its part of a larger code.
Clr = ColorHSB( 2 * Status("stocknum") % 255, 255, 255 );
XYChartAddPoint( chartname, Name(), risk[ Length ], yield[ Length ] , Clr );