Reply

How do I: Code Chart Selector for PIPs, % or $

4 replies

seaton

Customer, bbp_participant, community, 161 replies.

Visit profile

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

0

seaton

Customer, bbp_participant, community, 161 replies.

Visit profile

8 years ago #132430

Hmmm just noticed that the “Result In” button does this, how does this interact with the charts?

0

Tamas

Customer, bbp_participant, community, sq-ultimate, 73 replies.

Visit profile

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

0

seaton

Customer, bbp_participant, community, 161 replies.

Visit profile

8 years ago #132462

Thanks Tomas

 

will follow up on your suggestions 

 

Stephen

0

seaton

Customer, bbp_participant, community, 161 replies.

Visit profile

8 years ago #132463

Worked perfectly thanks Tomas

0

Viewing 4 replies - 1 through 4 (of 4 total)