LOL111
February 3, 2020, 11:02pm
1
I am trying to compare several indexes. On the graph it shows me its behavior in price. I want to be able to see it in percentage behavior.
Can you help me?
fxshrat
February 4, 2020, 12:07am
2
Do not create multiple threads on same topic (relative performance chart).
1.- how can i paint the name of your ticker next to each each graph line?
2.- why don't the ticker of the asset i want and change fix?
Regards
_SECTION_BEGIN("ciclo ");
SetForeign("SPX_IDX");
SPX_IDX = C;
Plot(SPX_IDX,"SPX",colorRed,styleLine | styleOwnScale,0,0,0,0,3); // Ultimo numero, la anchura de las lineas
RestorePriceArrays();
SetForeign("CL_FMP");
CL_FMP= C;
Plot(CL_FMP,"WTI",colorBlue,styleLine| styleOwnScale,0,0,0,0,3);
RestorePriceArrays();
SetForeign("BONO10YEAR");
BONO10YEAR= …
Sorry to consult but I make a mess. I do something very wrong because I paste code and put the tickers of my market server and I can not paint the relative behavior of 4/5 indices.
[Sin%20t%C3%ADtulo]
_SECTION_BEGIN("Relative Performance");
SetChartOptions( 0, chartShowDates | chartShowArrows | chartWrapTitle );
_N( TickerList = ParamStr("Tickers", "") );
bi = BarIndex();
fvb = Max(0,BeginValue(bi));// Status("firstvisiblebar");
lvb = EndValue(bi);
barcond = bi >= fvb AND bi <= lvb;
Plot( II…
Etc.
Threads and codes exist already.
Use existing Relative performance codes of Charts - Basic in AmiBroker or modifications of it as of Amibroker knowledge base:
https://www.amibroker.com/kb/2015/08/29/how-to-add-symbol-labels-to-relative-performance-chart/