**Goldbach**:

I have to evaluate max profit value by one order's Lots, Ask (Bid) and TakeProfit value. (TakeProfit value = TP x Point)

If this order is a take profit order, the order closed price will equal to Ask + TP x Point (Bid - TP x Point).

I found a formula: profit = Lots x MarketInfo(Symbol(), MODE_TICKVALUE) x TP

But the tick value is not a constant, I wanna evaluate the tick value before sending this order,

so I need to calculate tick value by TP price.

You are asking to know the future...

U can only know current tick value, but obviously at the moment of opening the order u cannot know what the tick value will be when it closes, since that's in the future.

I have to evaluate max profit value by one order's Lots, Ask (Bid) and TakeProfit value. (TakeProfit value = TP x Point)

If this order is a take profit order, the order closed price will equal to Ask + TP x Point (Bid - TP x Point).

I found a formula: profit = Lots x MarketInfo(Symbol(), MODE_TICKVALUE) x TP

But the tick value is not a constant, I wanna evaluate the tick value before sending this order,

so I need to calculate tick value by TP price.