fxDreema

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

    Alert if equity ... and stop then

    Questions & Answers
    2
    2
    813
    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.
    • E
      EAbaer last edited by

      Hello,

      i would like to make an EA with alert, if Equity is below XY. But the alert should only appear once, but if equity is above XY and then another time below XY there should be a new alert.

      How would you do this?

      Thank you.

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

        You can play with some Variables or blocks from the Flags category to switch between "above" and "below". I think you want to remember that you reached the "above" or "below" level, so you at any time you can check for the correct side (above or below). Variables are used to remember values, and also those Flags blocks do the same job. You can even use some object on the chart as a memory.

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

        Online Users

        R
        A
        D
        A
        E

        19
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors