fxDreema

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

    Price cross level, multiple times - intrabar

    Questions & Answers
    2
    2
    1389
    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.
    • F
      forexfx last edited by

      Hi,

      Can you please tell me how I can (see attached drawing) ,

      Picture title : Price cross level – Multiple times – Intrabar

      I want to buy every time the price line cross a price level (up, in this case).

      This will happen many times within one time bar.

      [Red circle in picture, one time bar, shows when to buy].

      Picture title: Price moves above current high - Multiple times – Intrabar

      I want to buy every time the price move 0.5 pip above the current high.

      This can happen many times within one time bar.

      [Red circle in picture, one time bar, shows when to buy].

      thanks ,

      ......
      Price moves above current high - Multiple times – Intrabar.jpg
      Price cross level – Multiple times – Intrabar.jpg

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

        For the first request, for what period do you talking about? And how many timed in a bar the crossover should be detected - once, or more than once?

        Little theory here: http://fxdreema.com/documentation/proje ... er%20works
        For crossover you need the current price and some price from the past. This past price can be Close price from the previous M1 candle. Check "Price vs Indicator crossover" example in http://fxdreema.com/examples

        There is a block named "Signals (flip-flop)" that is almost like "Condition", but little different and it can be used here I think.

        For second request, some kind of memory should be used, and in this example (http://fxdreema.com/shared/9V8afS08b) I use Formula Result. When Formula block is used, it automatically creates a global variable (Result) that can be read and modified everywhere into the project. In the case, when the price rise above the variable, the variable is modified to the next level above (15 pips added). I used 15 pips because I prefer bigger values for backtest.

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

        Online Users

        E
        E
        M
        S
        M
        H
        N
        H
        P
        E
        M

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors