fxDreema

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

    Saving variables for reference use?

    Questions & Answers
    3
    19
    531
    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.
    • T
      tec.nacks last edited by

      Hello, l want to have a logic that if price should wick above or below a line on chart as in the picture below, trigger an act maybe buy. It basically the ability to spot rejections around an area and the price does not have to follow each other.

      How Can l do it? @ambrogio @l-andorrà @jstap @PhiLykia

      Screenshot 2023-06-06 075034.png

      1 Reply Last reply Reply Quote 0
      • A
        ambrogio last edited by

        candle low below the line, candle close/open (both condition togheter) above the line.

        T 1 Reply Last reply Reply Quote 0
        • T
          tec.nacks @ambrogio last edited by

          @ambrogio yes, but the logic is l want to count how many times that happened, in this case it happened 3 times, so how do i get that data value that the line as being wicked three times?

          and also that the candle might not follow each other there could be 2 candles in-between the next wick

          1 Reply Last reply Reply Quote 0
          • A
            ambrogio last edited by ambrogio

            you have to create a variable that counts the number of times. When conditions are met once per bar modify variable count=count+1
            You want to count only consecutive wick? In this case you have to reset the variable (or simply make the condition in a row from candle ID1 to candle ID3)

            T 2 Replies Last reply Reply Quote 0
            • T
              tec.nacks @ambrogio last edited by

              @ambrogio in this case I'm not counting consecutive wicks but the number of times it wicks through

              for example, with it wicks through for 3 times, open a long position.

              A 1 Reply Last reply Reply Quote 0
              • T
                tec.nacks @ambrogio last edited by

                @ambrogio i think this is the idea so once its up to 3, trigger open order

                you have to create a variable that counts the number of times. When conditions are met once per bar modify variable count=count+1

                Can you explain how show me how to go about this?

                1 Reply Last reply Reply Quote 0
                • P
                  PhiLykia last edited by

                  Does it matter if these 4 candles are bullish or bearish (bullish/bullish)?
                  There are no wicks on the candles. shouldn't it be?

                  What do you anticipate taking as a reference for the line you have drawn? You need to define that line.

                  T 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @tec.nacks last edited by

                    @tec-nacks said in Saving variables for reference use?:

                    @ambrogio in this case I'm not counting consecutive wicks but the number of times it wicks through

                    for example, with it wicks through for 3 times, open a long position.

                    3 times the same wick up and down, so the same candle? or 3 wick of 3 candles?

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tec.nacks @ambrogio last edited by

                      @ambrogio it is 3 wicks of 3 different candles.

                      A 1 Reply Last reply Reply Quote 0
                      • T
                        tec.nacks @PhiLykia last edited by

                        @PhiLykia it is to identify rejections.

                        and its can be either bullish or bearish candle - the only different is either upper wick or lower wick which in this scenario it is lower wicks.

                        1 Reply Last reply Reply Quote 0
                        • A
                          ambrogio @tec.nacks last edited by ambrogio

                          @tec-nacks said in Saving variables for reference use?:

                          @ambrogio it is 3 wicks of 3 different candles.

                          should be like this, i didn't test

                          Cattura2.JPG

                          Catturak.JPG

                          T 2 Replies Last reply Reply Quote 1
                          • T
                            tec.nacks @ambrogio last edited by

                            @ambrogio Waow...Just the perfect Logic.

                            I'll go test it and feedback

                            1 Reply Last reply Reply Quote 0
                            • T
                              tec.nacks @ambrogio last edited by

                              @ambrogio it's not working. I tried checking further and realized that it still keeps counting on even when 3 is reached is still didn't trigger the next condition.

                              So I'm thinking is there a way to reset the number after 3 and to lock it when its exactly 3 and also why it isnt triggering entering even when 3 is reached?

                              https://fxdreema.com/shared/1stlFpPUb

                              1 Reply Last reply Reply Quote 0
                              • A
                                ambrogio last edited by

                                you are missing the variable "coun" and you are making a boolean condition instead value numeric count == 3 numeric
                                You are searching a line named "line" , are you drawn it manually yes?

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  tec.nacks @ambrogio last edited by

                                  @ambrogio I fix the count error here: https://fxdreema.com/shared/o1URcLfE

                                  and for the line, the line is the reference. when the candle wicks the line 3 times, it should draw the arrow according to the block

                                  EURUSDmH1.png

                                  like in this picture, there was no arrow drawn

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    ambrogio last edited by ambrogio

                                    still missing the variable. In this link we draw a "line" at 0.6678 on AUDUSD
                                    Check it

                                    https://fxdreema.com/shared/OkicvGymd

                                    backtest from 15/05/2023

                                    T 2 Replies Last reply Reply Quote 0
                                    • T
                                      tec.nacks @ambrogio last edited by

                                      @ambrogio ok on it

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        tec.nacks @ambrogio last edited by

                                        @ambrogio thank you so much, all is good now i've fixed the observed gap.

                                        Unto our next thread, counting on you boss

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          ambrogio @tec.nacks last edited by

                                          @tec-nacks 👍

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

                                          Online Users

                                          J
                                          T
                                          J
                                          B

                                          13
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors