fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Loop bar ema

    Questions & Answers
    3
    3
    1419
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      blanko last edited by

      It is posible conver this qml4 to fxdrema

      int Barras = 400
      for(int i=1; i<=Barras+1; i++) {
      double EMA200value = NormalizeDouble( iMA(NULL,0,MovingPeriod,MovingShift,MODE_EMA,PRICE_MEDIAN,i) ,5);

              if (EMA200value <= High[i] && EMA200value >= Low[i]) {
      
      1 Reply Last reply Reply Quote -1
      • M
        miro1360 last edited by

        I dont know what you need to do with this code ... because now:
        for loop is looking into history of 400 candles, if somewhere EMA is inside candle 😄 ... and if it is inside, IF condition is true ...
        result is, that you can be sure that this MA is most time inside candle 😄 ...
        question is, what you will to do with this history? .... if you need only look if EMA is inside candle, just do this:

        https://fxdreema.com/shared/T5toN1U8d

        0_1489597039152_upload-e268fc78-e131-4247-95d0-35eb9e708715

        0_1489597059934_upload-8982d4cd-4ef4-4a06-a8d8-98e36ad77b5c

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          There is a block "Indicator moves within limits" that does something like this under the hood

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          P
          L
          F

          18
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors