by Apprentice » Wed Apr 28, 2021 8:54 am
Everything as requested. From the code:
local lots = position_risk_value / pip_value;
CellsBuilder:Add(MAIN_FONT, "Position Cost", text_color, 1, row, 0);
CellsBuilder:Add(MAIN_FONT, win32.formatNumber(MMR * lots, false, 2), text_color, 2, row, 0);
local position_value = entry_price * baseUnitSize * lots;
local leverage = (baseUnitSize * lots * entry_price / equityAmount);
CellsBuilder:Add(MAIN_FONT, "Limit Profit in $", text_color, 1, row, 0);
CellsBuilder:Add(MAIN_FONT, win32.formatNumber(limit_curr, false, 2), text_color, 2, row, 0);
CellsBuilder:Add(MAIN_FONT, "Position Profit Margin %", text_color, 1, row, 0);
CellsBuilder:Add(MAIN_FONT, win32.formatNumber(100 * limit_curr / equityAmount, false, 2) .. "%", text_color, 2, row, 0);