fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. okranoblues
    3. Topics
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 44
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by okranoblues

    • O

      draw and delete specific chart objects
      Questions & Answers • • okranoblues

      5
      0
      Votes
      5
      Posts
      2645
      Views

      Z

      @miro1360 Hello,

      How about to delete all objects on every x minutes?

      Thank you

    • O

      Draw horizontal line and calculate round numbers from open price.
      Questions & Answers • • okranoblues

      3
      0
      Votes
      3
      Posts
      2298
      Views

      fxDreema

      I think we wrote emails back then with okranoblues.

      There is only a block that can detect round numbers, but it doesn't give you any values that can be used outside. I guess I need to add something in "Condition" block, but who knows when. Calculating round numbers may be actually easy, especially when the current price is used. In MT4 you can get the Ask/Bid price just by writing Ask or Bid, because they are predefined variables: https://docs.mql4.com/predefined

      Here is some calculation:

      MathCeil(Ask / gridsize) * gridsize

      Let's imagine that Ask is 0.942 and you want to get the upper round number that is rounded to the second digit. You want "gridsize" to be 0.01. Then you have:

      MathCeil(0.942 / 0.01) * 0.01

      And the result is 0.95.

      What is MathCeil()? You can see this function here: https://docs.mql4.com/math The function to be used for the lower side is MathFloor()

    • O

      How to enable variable inputs before to attach EA to chart
      Questions & Answers • • okranoblues

      9
      0
      Votes
      9
      Posts
      2051
      Views

      fxDreema

      Some of the words that I use in the EA builder do not exactly describe the real thing in the MQL code. Because this tool is primarily for people who don't understand programming anyway 🙂 So, back then I added Varibales and they were really global variables in the EA. The word "Variables" sounds good enough, means something that can vary, can be changed. But the input parameters are not supposed to be changed in the EA and in MQL5 any attempt to change them will give you an error actually. So... these are named Constants (Inputs) - there is the word "Inputs" in the name really. Yes, they are inputs and they are not supposed to be changed, so they can also be called constants.

    • O

      fibonacci price levels change when you have different fib levels on the chart
      Questions & Answers • • okranoblues

      4
      0
      Votes
      4
      Posts
      1773
      Views

      fxDreema

      what if you make both objects with the same levels count?

    • O

      comments with variables
      Questions & Answers • • okranoblues

      9
      0
      Votes
      9
      Posts
      2014
      Views

      fxDreema

      http://prntscr.com/94xp6b
      http://i.imgur.com/duj8dRj.png

    • O

      close partial error
      Questions & Answers • • okranoblues

      8
      0
      Votes
      8
      Posts
      1703
      Views

      fxDreema

      What are you trying that is not working?

      SL for buys can be only below Bid and for Sells - above Ask. Plus some additional limits like StopLevel and FreezeLevel. If you want to put SL/TP too close to the current price, the minimum possible SL/TP size will be taken.

      Again, SL and TP are placed according to Ask or Bid. It just happens that Open Price of any trade is Ask or Bid in the moment when this trade was created. When the trade profits, you can put SL on the "other side" of that Open Price. And when the trade is on lose, you can also put TP on the other side.
      SL and TP does not care about Open Price, they care only about Ask and Bid.

      Here is more detailed information: http://book.mql4.com/appendix/limits

    • O

      review the past candles
      Questions & Answers • • okranoblues

      8
      0
      Votes
      8
      Posts
      1728
      Views

      O

      ill try that later

    • O

      Draw fibonacci
      Questions & Answers • • okranoblues

      16
      0
      Votes
      16
      Posts
      15603
      Views

      J

      EUREKA!!!! I'm speechless! I finally got it....Who says you're not simply the best? I'm so grateful, FxDreema!!! 😄

    • O

      Partial close and breakeven
      Questions & Answers • • okranoblues

      2
      0
      Votes
      2
      Posts
      1085
      Views

      fxDreema

      Break even block loops trades inside, so normally it's not meant to be used inside loop (under "For each Trade"). Read the description of "For each Trade" to understand about loops.

      Break even block, when executed, modifies SL of all (filtered) trades that are in profit in this moment. So I guess you can just place this block under the condition where you check the profit. If you mean the total account profit (equity-balance).

    • O

      store 2 or 4 points in the past
      Questions & Answers • • okranoblues

      17
      0
      Votes
      17
      Posts
      4786
      Views

      fxDreema

      I have to say that I don't understand indicators very well and because of that fxDreema can't create or modify indicators. But if you want to create or modify some indicator you can ask in forexfactory, mql4.com, mql5.com or other forums or websites where there are people willing to do that 🙂

    • O

      calculation between 2 points
      Questions & Answers • • okranoblues

      4
      0
      Votes
      4
      Posts
      1394
      Views

      O

      it working now ...thank you very much

    • O

      Fibonacci
      Questions & Answers • • okranoblues

      5
      0
      Votes
      5
      Posts
      1807
      Views

      fxDreema

      When you have some indicator, get "Levels tester (for indicators and more)" block and connect it with "Just pass". Select inside the indicator you want to test and on the chart you will see what values it gives to the EA. Knowing these values you can use them with Condition block. Or you can also try blocks from "Indicators" category - they should work for most indicators.

      This exact indicator has two buffers (two lines) and I guess they can be accessed from the EA and used. They are simply two levels. The indicator also draws fibonacci, which is named "AutoFibo" and if it does not rename it while running, it can be used with this name as an object.

    • 1 / 1