fxDreema

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

    RSI condition about Value

    Questions & Answers
    3
    61
    16314
    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.
    • roar
      roar @fabiobioware last edited by

      @fabiobioware Ok. Personally I dont think you should care about individual ticks, they are 100% random, but lets do this.

      • First, lets set the slope, calculated as the difference between current price and ID 1 price. I'll use RSI in my example, so a difference (gap) of 5 is reasonable for my case.
        0_1588777030658_ce5241c5-8205-4336-b9e6-87d71f147201-image.png
      • Next, we'll use a "loop" that goes through 5 iterations only if the gap increases 5 times in a row:
        0_1588777215987_3367aee3-26cc-4eca-874b-b4b6aca2cf9b-image.png
      • If current gap is smaller than last gap, the indicator has fallen and everything goes back to 0 until it starts again
      • Now we can just check that combo is more than 5 (or any number of ticks you like)
        0_1588777303478_198d862c-74d9-424c-b3fd-284f129bfc0c-image.png
        https://fxdreema.com/shared/xQnt3OUpd

      Need small help? Tag me in your post
      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

      F 1 Reply Last reply Reply Quote 0
      • F
        fabiobioware last edited by

        https://fxdreema.com/shared/nzPRTmyeb Project with my indicator
        Hello friend, I did exactly the same, just instead of buying I put a condition for him to create a vertical line on the candle, but I realized that it didn't work, is there any connection or wrong parameter that is checking the slope?
        I tried to change the values of the constants too but even putting the value 1 didn't work.

        1 Reply Last reply Reply Quote 0
        • F
          fabiobioware @roar last edited by

          @roar https://fxdreema.com/shared/nzPRTmyeb Project with my indicator
          Hello friend, I did exactly the same, just instead of buying I put a condition for him to create a vertical line on the candle, but I realized that it didn't work, is there any connection or wrong parameter that is checking the slope?
          I tried to change the values of the constants too but even putting the value 1 didn't work.

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @fabiobioware last edited by

            @fabiobioware I dont know what scale your indicator uses. Try 0 for the gap0

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            F 2 Replies Last reply Reply Quote 0
            • F
              fabiobioware @roar last edited by

              @roar said in RSI condition about Value:

              I dont know what scale your indicator uses. Try 0 for the gap0

              my friend, it worked very well now, I tested it and he found exactly what I need, now I will measure the level of the ideal slope that I seek, thank you very much, you are always showing to be an expert in fxdreema, congratulations and if my EA is I will send you a copy.

              1 Reply Last reply Reply Quote 1
              • F
                fabiobioware @roar last edited by

                @roar Last question my friend, in these conditions I am checking if the indicator has tilted upwards, how can I check if it has tilted downwards? sorry for my lack of knowledge.

                roar 1 Reply Last reply Reply Quote 0
                • roar
                  roar @fabiobioware last edited by

                  @fabiobioware To get the down slope, multiply the formula result by *-1:
                  0_1588793080827_a2e2643e-933d-49c6-ba02-d83972b4b8b9-image.png

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    fabiobioware @roar last edited by

                    @roar said in RSI condition about Value:

                    To get the down slope, multiply the formula result by *-1:

                    and the condictions?
                    have changes ?

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

                      no changes

                      Need small help? Tag me in your post
                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                      F 2 Replies Last reply Reply Quote 0
                      • F
                        fabiobioware @roar last edited by

                        @roar just so I can see if I understand your entire sequence of screenshots, can you validate if what I say below is what your images say?

                        1. Does the formula save the result of the difference between the current price and the previous price (ID1) in the case it means previous?

                        2. The value saved by the formula in the variable (currentgap)> gap0 which has its value 5 means that if the value is 5x greater than itself, go to the next condition.

                        3. The value saved by the formula in the variable (currentgap)> lastgap, means that if the current value is greater than the last saved it goes to the next condition.

                        4. combo> = (consec_rises) means that if all values are confirmed go to the next block?

                        Sorry if I said something stupid, my friend, I am an apprentice close to you that I consider an expert in fxdreema.

                        roar 1 Reply Last reply Reply Quote 0
                        • roar
                          roar @fabiobioware last edited by roar

                          @fabiobioware said in RSI condition about Value:

                          @roar just so I can see if I understand your entire sequence of screenshots, can you validate if what I say below is what your images say?

                          1. Does the formula save the result of the difference between the current price and the previous price (ID1) in the case it means previous?

                          Yes. This sets up the desired slope. For example, rsi going from 55 to 60 will be enough for this system, because gap0 is 5. If RSI only goes to 57, the EA will do nothing as the slope is not big enough.

                          1. The value saved by the formula in the variable (currentgap)> gap0 which has its value 5 means that if the value is 5x greater than itself, go to the next condition.

                          No, gap0 is the smallest acceptable gap (slope). It doesnt multiply anything.

                          1. The value saved by the formula in the variable (currentgap)> lastgap, means that if the current value is greater than the last saved it goes to the next condition.

                          Yes. The EA will keep track of the gap changes. The first gap must be more than gap0, and every next gap must be more than before. This way we get the 5 (or more) consecutive up moves you wanted.

                          1. combo> = (consec_rises) means that if all values are confirmed go to the next block?

                          Here we check that the gap has increased 5 times in a row. So, in order to pass to the buy block, the EA must have been running for at least 5 ticks, and them all must have been rising.

                          Sorry if I said something stupid, my friend, I am an apprentice close to you that I consider an expert in fxdreema.

                          Nothing to be sorry for. Stay curious!

                          Need small help? Tag me in your post
                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                          F 1 Reply Last reply Reply Quote 0
                          • F
                            fabiobioware @roar last edited by

                            @roar Thank you for your answer my friend. Would you have anything to check the volume of sales or purchase transactions?
                            Let's say I want to look at all this that I did and confirm whether the slope really meant a change in prices.

                            Let's say that if the RSI rose its line and kept rising by 5x, I want confirmation that this rise was due to buying pressure or if it was something accumulated in a resistance that after breaking provided strength for the current candle.

                            It would be like a combination of the movement of the upward line with the confirmation of price volume or cash flow.

                            Is there any solution for this?
                            I am looking to compare whether the price movement of, for example, USDCHF has at any time influenced the opposite movement of the EURUSD price.
                            There is a very big negative correlation between them, as one goes up and the other goes down, but how can I find out who is influencing whom and how much is this value or impulse?

                            Sorry so many questions

                            roar 1 Reply Last reply Reply Quote 0
                            • roar
                              roar @fabiobioware last edited by

                              @fabiobioware I dont know, you could confirm with some volume indicator, or perhaps Money Flow Index which combines price and volume..

                              Personally I wouldn't care about correlations. EURUSD and USDCHF are correlated but it doesnt mean you can use the other for forecasting the future. They have covariance because both have USD in them, and USD moves in relatively bigger amplitude than EUR or CHF.

                              Need small help? Tag me in your post
                              Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                fabiobioware @roar last edited by

                                @roar I used these pairs as an example, here in my country there are some assets that the correlation has paramount importance, long short operations are very used and for this reason I am looking to use something that monitors the movement of an asset to see the influence in another.

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fabiobioware @roar last edited by

                                  @roar

                                  0_1589085401766_INCLINATIONFA.PNG
                                  Project --> https://fxdreema.com/shared/jayNObChc

                                  Hello friend, let me be bothering you again, I want to do things correctly for my EA to be successful and for this I had to consult you again.

                                  I saw that you set up the (buy) condition for when the rsi line is going up.
                                  I have now created a (sale) condition for when the rsi line is going down.
                                  Can you please check if I did it right?

                                  I created new variables and new constants to separate what is the rising condition that would indicate one (buy) and what is the falling condition which is what would indicate one (sale).
                                  I don't know if I made all the calls, and all the conditions, could you please review it for me?

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    fabiobioware last edited by

                                    @roar

                                    Roar, the RSI as you said, it works from level 0 to level 100.
                                    So in an RSI trade let's say I wanted to see that the line is tilted upwards I would put the (gap) that sees the slope if I put the gap with a value of 5, so if the line at the previous moment was at 50 and slanted touching level 55 would be meeting expectations.

                                    My indicator has the following levels.
                                    4000
                                    0
                                    -4000
                                    When the line exceeds level 0 above it opens the count from 1 to 4000
                                    When the line exceeds level 0 below it opens the count from -1 to -4000
                                    When the line exceeds level 4000 above it goes on with the count to 4001.4002, 4003 ....
                                    When the line crosses level -4000 below it goes on with the countdown -3999, -3998, -3997 ...

                                    My question is how can I find the ideal gap value for the line?
                                    Maybe using quick genetic optimization in Metatrader 5 would solve it? Or do you have any better suggestions for this?0_1589150728179_correlation.PNG

                                    roar 1 Reply Last reply Reply Quote 0
                                    • roar
                                      roar @fabiobioware last edited by roar

                                      @fabiobioware The logic seems good..
                                      And yes, optimization is the quickest way to find appropriate gap value. However, be smart about it. Dont simply use the result that gives best profit in the test, because that is probably random spikes with very few trades, not statistically convincing.
                                      Instead, look at the number of trades (alongside profit). Pick the setting that gives many trades and also somewhat good profits... Try to find the value that is just the right balance between randomness and effectiveness.

                                      Need small help? Tag me in your post
                                      Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                      F 1 Reply Last reply Reply Quote 0
                                      • F
                                        fabiobioware @roar last edited by

                                        @roar
                                        Would just (gap) optimization be enough? or do you believe that the constant (consecutive rises) would also be necessary to optimize together?

                                        roar 1 Reply Last reply Reply Quote 0
                                        • roar
                                          roar @fabiobioware last edited by

                                          @fabiobioware its not necessary, but gives you more precise results

                                          Need small help? Tag me in your post
                                          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

                                          F 1 Reply Last reply Reply Quote 0
                                          • F
                                            fabiobioware @roar last edited by

                                            @roar dear my friend.

                                            how do i find a correct gap value, this indicator https://www.mql5.com/pt/code/1725
                                            uses a different number system, what would be an example of slope i could use?

                                            0_1589940193804_fastlinevalues.PNG
                                            on this example, value to line green is 1.00004
                                            The central line is 1.00000 and when the line goes up it goes up and down, for example 0.99991

                                            F 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post

                                            Online Users

                                            T
                                            B
                                            A
                                            P
                                            A
                                            A

                                            16
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors