Hi guys
Interesting one here: I have an EA with a function called "LockPips" - basically when price reaches a certain number of pips (LockPipsThreshold) above price the EA will move price to b/e or whatever number of pips is inputted into the LockPips value. To e-mail this is fine if that value is 0, the e-mail reference will be something like:
..." + DoubleToStr(OrderOpenPrice(),Digits) + "...
if I want to make the LockPips a positive value, say +25, I make it:
..." + DoubleToStr(OrderOpenPrice(),Digits) + " + " + LockPips + "...
then the e-mail will arrive looking something like:
132.95 + 25.
Here's my stupid question - how do I reference the opening price + the LockPips so that the e-mail arrives reading:
133.20
?
Tx in advance
Thatchman
Interesting one here: I have an EA with a function called "LockPips" - basically when price reaches a certain number of pips (LockPipsThreshold) above price the EA will move price to b/e or whatever number of pips is inputted into the LockPips value. To e-mail this is fine if that value is 0, the e-mail reference will be something like:
..." + DoubleToStr(OrderOpenPrice(),Digits) + "...
if I want to make the LockPips a positive value, say +25, I make it:
..." + DoubleToStr(OrderOpenPrice(),Digits) + " + " + LockPips + "...
then the e-mail will arrive looking something like:
132.95 + 25.
Here's my stupid question - how do I reference the opening price + the LockPips so that the e-mail arrives reading:
133.20
?
Tx in advance
Thatchman
Understanding is a three-edged sword