How do I: Code Chart Selector for PIPs, % or $
4 replies
seaton
8 years ago #114145
Ok My first question relating to Analyser chart plugins.
Is it possible to change the way data is viewed on charts with an in-chart selector such as a dropdown or radio selection?
i.e. in the current chart have the option of showing as pips or % based on the chart selector.
Or do I have to code a chart for each view I require? i.e. separate chart for % view another for PIPS view?
Regards,
Stephen
seaton
8 years ago #132430
Hmmm just noticed that the “Result In” button does this, how does this interact with the charts?
Tamas
8 years ago #132435
Hello seaton,
look at the snippet TradeAnalysisPanes/LongShortProfitLossChart.java
SQData structure is a map which contains key/value.
So if you want to get the plType you can write
String plType = data.getString(“plType”, SQConst.PL_IN_MONEY);
then you can get the correct pl for particular order by order.getPL(plType);
Best regards,
Tomas
seaton
8 years ago #132462
seaton
8 years ago #132463
Worked perfectly thanks Tomas
Viewing 4 replies - 1 through 4 (of 4 total)