fxDreema

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

    Topics created by cheaw

    • C

      Need help how to set up buy pending order in grid
      Questions & Answers • • cheaw

      4
      0
      Votes
      4
      Posts
      1082
      Views

      fxDreema

      In the EA when you are using one indicator, MetaTrader knows that and loads that indicator with the particular settings. If the same indicator is used with different settings, two indicators will appear.

      There is no matter how many times you request value from an indicators. Normally for the EAs important things happen when ticks are received, because a new tick means that the price changed and everything you do when you are trading is to react on price changes. But indicators does not really care about that.

      The first time the EA calls to an indicator, MetaTrader loads that indicator and gets the value from it. If you are backtesting that indicator does not even appear visually, so I think that it does not even recalculate if you are not using it. Only if you put it visually on the chart, then it must be recalculated so you can visually see all the changes, but MetaTrader handles that by itself.

      Just use "Condition" with that Moving Average where you need it and as often as you need it. "on Tick" is not mandatory, it's only where most things normally happen.

    • C

      how to creat ea in this condition ?
      Questions & Answers • • cheaw

      2
      0
      Votes
      2
      Posts
      492
      Views

      fxDreema

      You can use the Adjust box to make simple calculations over operands in the Condition block. Just click on "Adjust" and then write there something like *2 or -10 or +20 or *1/100 or something else. Everything you write will be included into the final code, so you can also use functions and variables.

      Or maybe you want to put multiple pending orders at some distance from each other? In this case use those blocks that contain "grid" in their names, you will see them.

      Or try "Round numbers detector". This block is interesting, but better read it's description.

    • C

      Need help how to use Buy pending order in grid ?
      Questions & Answers • • cheaw

      2
      0
      Votes
      2
      Posts
      629
      Views

      fxDreema

      At least you must have something to decide when is the time to put that new order, when is the time that you are 1% lower than before. Normally, "Condition" block is used for that. You can check the current price and compare it to some other value, but I don't think that this is the best in this case.

      But it depends. There are blocks that can put multiple pending orders in one shot, I think you can find them, as they contain the word "grid" in their names.

      Also I can suggest a block named "Round numbers detector"

      Or you can compare the value of Open Price of the latest pending order with the current price. For this, "For each Pending Order" will be needed, but many people can't get how these pink blocks work.

    • C

      Need a help Buy and Sell
      Questions & Answers • • cheaw

      5
      0
      Votes
      5
      Posts
      779
      Views

      C

      ohhhh thank you very much 🙂

    • 1 / 1