READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Pip Value Function

1 replies

hmabdellah

Customer, bbp_participant, community, sq-ultimate, 8 replies.

Visit profile

1 year ago #287853

 

Hello,

 

I’m trying to calculate the lot size in my EA using the formula:

Position Size = Account Balance x Risk percent x 0.01 / (Stop loss in pips x pip value)

I have no issue setting this up, however, I’m stuck with the pip value piece.

Is there a way to automatically get the pip value and assign it to a variable? a custom code maybe? instead of entering the pip value manually as an input whenever the EA is attached to a different pair.

 

Thanks

Sam

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

1 year ago #287927

You could use this to get pip value ($$$)
MarketInfo(Symbol(), MODE_LOTSIZE) * Point

It basically multiples the smallest price increment by the contract size. You will get monetary value of the smallest market move.
For forex pairs, “pip value” is 10 times the point value (above)

0

Viewing 1 replies (of 1 total)