fxDreema

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

    Adding custom Currency Strength Meter indicator

    Questions & Answers
    3
    54
    11853
    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.
    • Sauce
      Sauce @miki last edited by Sauce

      @miki Oh boy, this looks like fun, haha. Will it work if on each condition and the modify variables blocks, I click the checkbox/input parameters for optimization and just type the appropriate label (i.e. CSM-1-H1-AUD) on each chart and change the magic number?

      (Trying to avoid the mammoth project!) 😂 thanks again for all your help Miki!!

      M 1 Reply Last reply Reply Quote 0
      • M
        miki @Sauce last edited by miki

        @sauce It should work just the same 😉. I tried to enumerate the variables in order to insert them from the outside but the dashes "-" in the names (CSM-1-H1-AUD) create errors.I'm sorry.

        Sauce 1 Reply Last reply Reply Quote 0
        • Sauce
          Sauce @miki last edited by

          @miki no worries! That is quite alright, thank you so much for figuring this out for me, very excited to give it a go!

          Sauce 1 Reply Last reply Reply Quote 0
          • Sauce
            Sauce @Sauce last edited by

            @miki okay, so I've tried multiple times and trying to isolate the problem, but it isn't sending an alert out when it should be?
            I've tried isolating the problem but not sure what's missing in order for those conditions to trigger the alert?

            Also, with this setup using OR/AND... isn't it possible that it could send a false alert with EUR<40 and USD<40? We're only looking for a >60 and <40 to pass or vice versa <40 and >60.

            Thanks again for the help, hoping it's something minor that I'm missing! Here's a screenshot of the isolated project down to just the CSM scanning:
            0_1610423840504_284cdec3-6b1c-4879-9cd9-06a6d2534143-image.png

            M 1 Reply Last reply Reply Quote 0
            • M
              miki @Sauce last edited by miki

              Also, with this setup using OR/AND... isn't it possible that it could send a false alert with EUR<40 and USD<40? We're only looking for a >60 and <40 to pass or vice versa <40 and >60.

              Yes @Sauce , not knowing I misinterpreted the indicator. It's sufficent EUR>60 USD<40 or viceversa and it work.

              0_1610449094032_Immagine.png

              0_1610447427452_Immagine.png

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

                I would like to add a condition where all open trades are closed every Friday at 23:54:50 (or just before close). This is to avoid gaps over my stop loss which have been messing up my EA. I've tried several ways, but haven't figured out the correct blocks to use.

                M 1 Reply Last reply Reply Quote 0
                • M
                  miki @Sauce last edited by

                  @sauce you can use weekday filter block + time filter block +close trade block.

                  1 Reply Last reply Reply Quote 0
                  • Sauce
                    Sauce @miki last edited by

                    @miki I can't seem to get that to work as an alert, can you share that project? I've tried recreating including any variables but I'm afraid I'm missing something, not sure if it's how it's integrated on the chart on MT4 or I'm missing constants/variables. Any directions are appreciated! Thanks!!

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      miki @Sauce last edited by

                      @sauce The only variable to create is symbol in which we are going to put the symbol to be traded, in this case, buy. Alert should work. The only thing maybe wrong but I haven't tested it are the double quotes on "EURUSD". If you want the alert on your phone you need to set the metaquoteID in the metatrader settings.

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

                        @miki

                        0_1611332638907_b900b04a-52a9-4375-ade2-aaee5ac366d1-image.png
                        Not sure what's incorrect, I'm not receiving any alerts. I'm missing something because my other EA's alerts are working fine.

                        You can see in this example, EURCAD should be alerting since EUR >60 and CAD <40.

                        Let me know if you see any errors, thanks!

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          miki @Sauce last edited by miki

                          @sauce you must create symbol variable. string type.

                          0_1611334986555_Immagine.png

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

                            @miki okay, I've added that and re-tried however it still isn't alerting, not sure what else I'm doing incorrectly, sorry!

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              miki @Sauce last edited by miki

                              @sauce https://fxdreema.com/shared/wMeuBHokd

                              0_1611336263399_Immagine.png

                              Sauce 1 Reply Last reply Reply Quote 0
                              • Sauce
                                Sauce @miki last edited by

                                @miki my apologies! I found the error... totally my fault. I added the indicator to the chart and forgot to make OutputGlobals to true instead of the default false. Works now! Thanks again, my apologies for the confusion!

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

                                Online Users

                                V
                                C
                                K
                                A

                                14
                                Online

                                146.7k
                                Users

                                22.4k
                                Topics

                                122.6k
                                Posts

                                Powered by NodeBB Forums | Contributors