fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. mariofxn
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 9
    • Best 1
    • Controversial 0
    • Groups 0

    mariofxn

    @mariofxn

    1
    Reputation
    243
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mariofxn Unfollow Follow

    Best posts made by mariofxn

    • RE: Do not open a new trade if one is already running with the same currency

      Thanks @roar

      Will test it out tomorrow once the market is open 🙂

      Just to be sure: i've added currentsym (string) and open_new (bool) - at least i got it to compile

      posted in Questions & Answers
      M
      mariofxn

    Latest posts made by mariofxn

    • RE: Do not open a new trade if one is already running with the same currency

      @roar i'm still testing the current one; however i experience a lot of open trades on the same pair (as main- and counter currency)
      F.e.: my EA opens a trade in GBPCAD with 1 sec between trades (i'm opening 3 trades at the same time right now)
      1 sec later another GBPJPY opens (3x), followed by 3 more EURGBP trades 2 seconds after.

      I have 0 idea what i can do or where i shall place the loop so that this doesnt happen again, do you have any idea?

      Right now, i have the loop at the very top on the onTick page, after that i check all my conditions based on the rules and start buying/selling whichever is applicable.

      Any response is highly appreciated and needed.
      Regards,
      M

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      @roar works great, thanks a lot.

      Maybe you find the time to also check the case where BE is hit, allowing the same symbol to be traded again.

      Thanks much in advance
      M

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      @roar awesome, many thanks for the help. Will give it a try soonest

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      @roar i've tried to put the block elsewhere but it doesnt help.
      Would be awesome if you could let me know what you get tomorrow in the live environment.

      Thanks

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      @roar tried with no trade/order at the very top, still the same

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      Just tried it and got a stack overflow exc, any idea?

      posted in Questions & Answers
      M
      mariofxn
    • RE: Do not open a new trade if one is already running with the same currency

      Thanks @roar

      Will test it out tomorrow once the market is open 🙂

      Just to be sure: i've added currentsym (string) and open_new (bool) - at least i got it to compile

      posted in Questions & Answers
      M
      mariofxn
    • Do not open a new trade if one is already running with the same currency

      I'm trying to get my EA to not open any new trade if there is already one trade open, unless this trade is already set to BreakEven or trails its stop in profit.

      Example: EA opens trades in EURUSD - trade is not yet BE (or trails in profit) -> do not open any new trade with EUR as main currency or counter currency (same for USD).
      If current trade is already BE (or trails in profit) a new trade with both, EUR and USD as main or counter currency, can be opened.

      Is there a way to handle this?
      Greetings, M

      posted in Questions & Answers
      M
      mariofxn