fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Chemdog
    3. Topics
    C
    • Profile
    • Following 1
    • Followers 0
    • Topics 7
    • Posts 32
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Chemdog

    • C

      ClosePositionBar ID?
      Questions & Answers • • Chemdog

      1
      0
      Votes
      1
      Posts
      282
      Views

      No one has replied

    • C

      Modify stops?
      Questions & Answers • • Chemdog

      3
      0
      Votes
      3
      Posts
      631
      Views

      C

      @roar Thank you

    • C

      Is it to the left or right?
      Questions & Answers • • Chemdog

      5
      0
      Votes
      5
      Posts
      664
      Views

      l'andorrà

      Yes, time is the simplest solution. You know how much time happened or will happen depending on the timeframe. Simple as that.

    • C

      To the people that Help newbs on this forum
      General Discussions • • Chemdog

      2
      0
      Votes
      2
      Posts
      515
      Views

      l'andorrà

      Can I be immodest enough to say yor're welcome, ha, ha LOL 😉

    • C

      Multiple Condition Trailing Stops
      Questions & Answers • • Chemdog

      14
      0
      Votes
      14
      Posts
      1999
      Views

      C

      @trader-philipps thanks, going to try this out.

    • C

      Sharing
      Questions & Answers • • Chemdog

      3
      0
      Votes
      3
      Posts
      574
      Views

      C

      @l-andorrà Thanks

    • C

      Stops/adding variables?
      Questions & Answers • • Chemdog

      23
      0
      Votes
      23
      Posts
      3739
      Views

      T

      @chemdog Okay, there are some things I'd like to mention not knowing if they are all related to the issues you are facing.

      You enable the MyFlag flag once and have a check on it (Block 301 and 302). You never disable it again. That's maybe the reason all close at once if the last candle was the bear candle! Especially as it has no timer or anything else for filtering (before block 302 as 302 not working like this).
      Please specify how the trades should be closed again! There is no check as far as I see, if the triggerLevel is below or above the current price. You only check if price is at triggerLevel. If price moves fast and is just 1 point above, it will not take the trade (Block 32) Check profit unrealized if I understand that block correctly sums all profits (and losses) and checks against the value specified in money. Not sure if it would also consider other currency pairs with trades from EA with same magic number. However, that may be your intention - don't know. Block 300 doesn't make sense here and you shouldn't re-use the loop variable. The order should be:
      a) 297 .. calculate the bar, the current trade (handled by the "for each Trade" block) was opened.
      b) do the loop stuff again such as in 25, 27, 28, BUT instead of loop variable you use vi_order_bar variable instead! for the maximum number of loops (5) you need to specifiy another variable that would be vi_order_bar + 5

      Does that make sense or did I confuse you?

    • 1 / 1