fxDreema

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

    notify when trailing stop initiates

    Questions & Answers
    2
    2
    13
    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.
    • C
      capitalfreedom last edited by

      Hello all. I am trying to write into my code to send a notification once the trailing stop is initiated. This is how I have it right now but it sends the notification as soon as the trade is entered and it sends it multiple times depending on how many charts are open. Any suggestions are greatly appreciated

      https://fxdreema.com/shared/CkgKdgkAb

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

        try saving the SL price under opening the trade, then in a condition check if SL price is (different) != to the variable price, pass once and send the notification, reset the pass once block when trade closes.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

        Online Users

        A
        Y
        B
        R
        A
        F
        T

        14
        Online

        148.2k
        Users

        22.4k
        Topics

        122.7k
        Posts

        Powered by NodeBB Forums | Contributors