Hi Jerry, I think i had the same problem , and I solved it checking for the currency balance before submitting a new trade. That is equivalent to get the position size . You may create a function like getforexsize() which is doing it automatically. Be careful about the sign of ther currency balance, depending on the contract you want trade.
Hope this helps Ly --- In [email protected], "laster" <[EMAIL PROTECTED]> wrote: > > Hi, > > When trading forex checking the position of the trade does not work to avoid > duplicated trades (because there is no position to speak of). Did anyone > find a way to avoid duplicated trades when trading forex? > > I don't want to limit the size of a trade because I may want to pyramid. If > I reduce the frequency of the scanning I may miss signals. > > Any ideas? > > Thanks in advance, > > Jerry >
