thank you
I was thinking of something like this I do not know whether it will be correct calculation?
douuble EQ = account.getEquity();
double Total_lot_for_open_position = 0.3; //
double Margin_Cut_Level=0;
double EP =0;
//****************
JFUtils utils = context.getUtils();
pipCost = ( utils.convertPipToCurrency(instrument, context.getAccount().getCurrency()) ) *100000 * total_lot_for_open_position;
EP = EQ/ pipCost ;
MC = ask +EP;
//****************
IChart chart = context.getChart(instrument);
IChartObject MC_Line = chart.draw("MC_Line", IChart.Type.HLINE, tick.getTime(), tick.getBid()+EP);
MC_Line.setColor(Color.RED);
