Calculate tick value in account currency

Created at 02 Mar 2021, 09:49
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JE

JerryTrader

Joined 06.01.2021

Calculate tick value in account currency
02 Mar 2021, 09:49


Hi all, 

This is kind of a pretty basic question, but I can't figure it out ...

How would you calculate the tick value in the account currency based on the position size?

Example:
- Account currency : EUR
- Trading pair : GBPUSD
- Lots bought : 0.2 lots
- Buy Price : 1.39
- Gross Profit Target : 10EUR

I would like to know how many ticks are needed to reach the target ?

Hope this is clear !

Thanks for your answers,
Cheers,
Jerry


@JerryTrader
Replies

PanagiotisCharalampous
02 Mar 2021, 09:56

Hi JerryTrader,

Here you go 

var tickValue = Symbol.PipValue * (Symbol.TickSize / Symbol.PipSize);

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

JerryTrader
02 Mar 2021, 11:12

RE:

PanagiotisCharalampous said:

var tickValue = Symbol.PipValue * (Symbol.TickSize / Symbol.PipSize);

This does not take into account the lot size, but I guess that this is the tick value for one unit.
So multiplying this tickValue by the Position.VolumeInUnits should give me the tick value for this position.

Thanks Panagiotis for your prompt answer.
Cheers,
Jerry


@JerryTrader