fxDreema

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

    Tick by tick stop-loss checking, how?

    Questions & Answers
    4
    6
    2112
    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.
    • Abade69
      Abade69 last edited by Abade69

      Good day, i would like to create an EA that checks if ANY trade of an specified symbol is without stop loss, either by failed modification (ie: trailing) or purposely created as that, and then forces the creation of a new SL on a predeterminied price level, everything set tick by tick.

      The following condition block only works as a "on trade" event, and will send me an "error" message if i use it under "tick" event:

      0_1505548004755_upload-37cffb24-2aa1-439b-a270-2d4aad0a11c7

      I am not sure if the "Trade SL modified" block event works with these kind of errors, or if it would persist on a second modification error/failed order or possible disconnection, that's why i would like to use tick events.

      0_1505549115504_upload-7fabb99e-6c00-441e-b147-d70deac6838d

      I am creating a secondary robot to support an scalping EA that gets a lot of modification errors and resets its SL to 0.00000 creating a runaway loss in most cases. Already created one that draws and trails an horizontal line on the past SL levels and closes by market, but i would like to reinforce it.

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

        Nobody? Bump!

        timmyhanke 1 Reply Last reply Reply Quote 0
        • timmyhanke
          timmyhanke @Abade69 last edited by

          @Abade69 for each trade with 1 set on not more than n trades - check stoploss, use the yellow dot to the next block , then it will check each trade to see if It has a stoploss and the yellow means if it dosnt

          1 Reply Last reply Reply Quote 0
          • R
            richard96816 last edited by

            Might be nice to have the system sanity check stop loss settings. Probably not very common to set a stop loss of zero. There's an explicit setting for that anyway, if you do want it.

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

              If you want to create a trade with SL and something went wrong, this trade will fail as a whole, there is no way you can get the trade without SL. So you don't have to try to set SL in this case.

              In case of Trailing stop - this block would set SL on the right place, there is no need to worry again.

              The first screenshot is wrong, because in Condition you have something that says (on Trade) and this should only be used under the "on Trade" event.

              1 Reply Last reply Reply Quote 0
              • R
                richard96816 last edited by

                If you set the stop loss to zero, you get no stop loss. Tester and Demo will happily trade it. Many times it will make you a profit having a nice wide (nonexistent) stop loss. Until it eats your whole account.
                It's a very important, very easily missed mistake. A simple scaling or range error can end up with an unintended zero.
                I usually add a +1 to protect from those cases, but that's not perfect.

                Thanks

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

                Online Users

                M
                M
                C
                N

                16
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors