fxDreema

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

    Alert on Indicator

    General Discussions
    2
    12
    3745
    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.
    • A
      andreaardenti last edited by

      Hi all,
      please i need your help, i wish to code an indicator that alert me with a popup window (and a sound too) when stockastic cross the level (20,80) and when do the same with macd and W% (with theyr own setting)

      It's possible?

      Regards
      Andrea

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

        If you want to code custom indicator... I really have very limited knowledge at indicators, I never tried to make one seriously. But it should be

        As an EA, now I can see your attempts to make something. But you have disabled blocks under "on Tick" and also blocks in "on Init". I guess that there is no output at all. If you only have stuff in "on Init", then you have something like a Script. But I'm not sure that you should use "Indicator moves within limits". Why don't you try with simple "Condition" and probably "Once per bar" (https://fxdreema.com/demo/mt4-once-per-bar)

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

          Ok, thank you for your reply, i will try and i will let you know!

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

            Hi, i've coded 2 EA

            1st it's possible to use like an indicator (because there is no buy/sell condition)
            2nd is the same of above, but do the operation...

            in both there is an error... if you can see the code, it must alert when the candle close above the bollinger band for long, the opposite for the short.

            The long condition seems to be ok, the short condition is wrong...

            Can you help me?

            Regards
            Andrea

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

              I see left-price arrows above and below BB, it looks that it works on both sides. If you think that something is wrong, note that you are working with Candle ID = 0 (the current price), and in the backtest you only see finished candles. Also, if you are waiting for sounds in the Tester... sounds don't work when backtesting 🙂

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

                __I see left-price arrows above and below BB, it looks that it works on both sides. If you think that something is wrong, note that you are working with Candle ID = 0 (the current price), and in the backtest you only see finished candles. Also, if you are waiting for sounds in the Tester... sounds don't work when backtesting :)[/quote:3qsztwxn]

                Thank you for your reply.

                My doubt was on the EA that make the buy/sell... (not for the sound on BT) as you can see in the image attached, where i put the arrows... they are worng sell entry... it's my fault? maybe i mistake something in the code...

                ......
                fc32d0859f2f2cb59107bc96bede02b5.png

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

                  ....and i also wish to add a filter

                  i wish to filter the entry with williams%

                  Buy ---> buy only if the W% trigger from down to up the -90 level
                  Sell --> sell only if the W% trigger from up to down the -10 level

                  How i can do add that variables?

                  Thank you
                  Andrea

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

                    http://prntscr.com/czd5qf
                    If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.

                    I don't know about Williams - either crossover or > / <. It depends 🙂

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

                      __http://prntscr.com/czd5qf
                      If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.

                      I don't know about Williams - either crossover or > / <. It depends :)[/quote:3kq6sr8w]

                      Thank you
                      The spread was just a "try what happen"

                      ....but what about the signal?
                      as per image above...
                      The sell (signal/entry) is incorrect

                      Can you Help me?

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

                        __http://prntscr.com/czd5qf
                        If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.

                        I don't know about Williams - either crossover or > / <. It depends :)[/quote:29yfqn1k]

                        Crossover.... so when the W% cross the level(s)

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

                          What was the condition? 🙂 Now I can't find the same project that you had 🙂

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

                            i solved the wrong sell signal putting 2 "once per bar", one for buy condition, one for sell condition (scanner project)
                            now i wish to add the w% filter....

                            the ea must enter only when the w% signal level is broken, so when the buy signal is active and (buy case here...) the W% break from down to up level -90 it enter on it.... the opposite for sell condition

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

                            Online Users

                            A
                            E

                            10
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors