Forum

Doesn't SYMBOL_TRADE_TICK_VALUE refer to the profit corresponding to a position fluctuation?

According the MQL5 Reference SYMBOL_TRADE_TICK_VALUE Value of SYMBOL_TRADE_TICK_VALUE_PROFIT SYMBOL_TRADE_TICK_VALUE – one-tick price change value for a profitable position Isn't SYMBOL_TRADE_TICK_VALUE the value corresponding to every 1 point fluctuation? ====== To calculate the profit in points

How to turn profit into profit points?

int Ticket_ProfitPoint( ulong ticket) { if (!PositionInfo.SelectByTicket(ticket)) return ( 0 ); double profit = PositionInfo.Profit(); double volume = PositionInfo.Volume(); double tickvalue = SymbolInfoDouble (PositionInfo. Symbol (), SYMBOL_TRADE_TICK_VALUE ); return (( int )(profit