help

Created at 20 Jul 2020, 19:45
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!
LU

luca.tocchi

Joined 25.03.2020

help
20 Jul 2020, 19:45


hi I need to print "ok"

print ("ok");

when the price is 60 pips above the current price

thanks


@luca.tocchi
Replies

firemyst
15 Aug 2020, 17:05

RE:

luca.tocchi said:

hi I need to print "ok"

print ("ok");

when the price is 60 pips above the current price

thanks

 

Get Symbol.Bid or Symbol.Ask price (whichever one you want to measure from) and then add 60 pips:

Symbol.Bid + (60 * Symbol.PipSize)

Symbol.Ask + (60 * Symbol.Pipsize)


@firemyst

... Deleted by UFO ...