fxDreema

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

    using swap rate as acondition

    Questions & Answers
    4
    11
    1729
    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.
    • G
      Goatan last edited by

      Does anyone know how to use swap rate as a condition to open a trade i.e open trade if swap rate is positive and ither condition are meet. I have founbd this thread https://fxdreema.com/forum/topic/7233/find-swap-rates-before-order-opened which has some custoe code that might well no what i want but i don't actually know how to use it.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Try this:

        0_1563215700279_00.png

        But be aware that more than probably you will need a 'For each trade' block above it. Pink options usually require that pink block.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • G
          Goatan last edited by

          Thanks but i think that is for the swap on an open trade. I need to now to the swap rate before the trade is opened.

          1 Reply Last reply Reply Quote 0
          • G
            Goatan last edited by

            I havefound a script that i can potentially use with some modification -the script simply outputs the swap value for long and short and colours the object green if its positive and red if negative. - the problem is it is a script i dont think i can import it as an indicator. Is there any way of converting this script.

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

              Easiest to use this custom function:
              https://fxdreema.com/shared/ExwS5XMUc
              0_1563284611232_6fcd65dd-0c0d-4f9b-a39b-b76a431bad0b-image.png

              Here is more info about all available symbol info codes:
              https://docs.mql4.com/constants/environment_state/marketinfoconstants#enum_symbol_info_double

              You will need a DOUBLE -type data, because that data can use decimal points.

              This is long swap, I challenge you to find out the short swap 😉

              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

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

                @roar would you just change out long for short in the code?

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

                  @wralyn yup 😄

                  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

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

                    @roar nice I haven't played around with the custom code but it seems like it adds a whole new level of versatility to the software.

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

                      @wralyn I agree. You don't need custom code in every project, but it does at least simplify certain things. Its pretty easy to google the necessary function from docs.mql4.com

                      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

                      1 Reply Last reply Reply Quote 0
                      • W
                        wralyn last edited by

                        @roar noted.!

                        1 Reply Last reply Reply Quote 0
                        • G
                          Goatan last edited by

                          @roar Thank you, that was exactly what i needed and has helped me understand using the variable a little more. Thank you thotheothers that helped also.

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

                          Online Users

                          S
                          N
                          S
                          E
                          H
                          E
                          S
                          A
                          T

                          16
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors