Forum

Current variable values read and write ​​in ini file?

Hi, I wrote an EA, which work with labels (with ON or OFF text). Everytime a new position is closed, I read the history to check, if there was a stop loss position, if so, the label change to off and the EA is stopped. If I change the label text manually to ON, the EA is working on. My idea is e.g

DoubleToStr vs DoubleToString

is there a difference between DoubleToStr and DoubleToString

Confused about simple net position calculation

Hi, I am surprised that I do not come to a simple algorithm to obtain the net price of a hedge position. e.g. 2 diffrent EAs, one for long-trades and one for short-trades: [EURUSD] Open positions: Buy 3.0 lots@1.3515 1.0 lot@1.3525 Sell -6.5 lots@1.3540 -1.0 lot@1.3538 Totally (-6.5-1) + 3 + 1 =