fxDreema

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

    Fixed SL and Lot keeps changing

    Questions & Answers
    2
    7
    1480
    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
      a4ashan last edited by

      I have created a simple EA using RSI trend. I have applied a very basic condition. I'm using a fixed lot and fixed Stop loss pips. But when I back test using MT4 strategy tester the lot and Stoploss is changing. To keep it simple I'm using 1 lot and 1 pip for testing. Can someone tell me what is the reason it keeps changing. I'm uploading My EA with this thread for your review.0_1543256263864_newww (2).mq4

      1 Reply Last reply Reply Quote 0
      • J
        josecortesllobat last edited by

        It is better to share a screenshot of your project or a shared link from the builder because the behavior of the EA remains in the code where it should take a look to get what is going on with the EA.

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

          @josecortesllobat I have attached the screenshot. Please check if it helps.

          2_1543318995332_1.jpg 1_1543318995331_2.jpg 0_1543318995331_3.jpg

          1 Reply Last reply Reply Quote 0
          • J
            josecortesllobat last edited by

            Hi @a4ashan

            I have been looking at your EA's project

            0_1543338271994_c6bc551a-713a-4753-beb6-b6f5cc04bb6d-image.png

            You are using a Cross Width = 5, what are you expecting about that? As it is, the condition is evaluated from the current bar to the 5th backward.
            There is not any Candel ID set.

            0_1543338501285_3fb3cd48-1739-4bed-8ac8-abfa95cc5348-image.png

            SL is set to 1pips as a price fraction. This means that the SL Level will be placed at OpenPrice+/-0.0001 that it seems to be too short. You have warnings about that at Journal

            0_1543338695085_e58384a9-08b9-42d0-9952-1668a90d109b-image.png

            And your trade is closed almost at the same time when opens because hits the SL allowing to open other trade

            0_1543338882685_821219e5-dc34-40ff-9bdd-f880eaf1a60e-image.png

            0_1543338919465_f5e63341-7928-400f-a9df-bdad3b207f0b-image.png

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

              @josecortesllobat highly appriciate your feedback. I have taken the Crosswidth concept wrongly. I thought it will check for 5 future candles. Anyways I'll disable it and I'll try the price fraction settings you mentioned. And yes it keeps opening trades, I'll try to specify more the functions after the core issues are rectified.

              Thank you for spending your time on this.

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

                Hi @josecortesllobat I have tried the points you mentioned. But still the result is same. SL and Lot is different from what i define.

                1 Reply Last reply Reply Quote 0
                • J
                  josecortesllobat last edited by josecortesllobat

                  @a4ashan

                  Could you detail which is your trading strategy?

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

                  Online Users

                  E
                  P
                  T
                  B
                  G
                  J
                  F
                  G
                  O
                  Z
                  M
                  W

                  24
                  Online

                  146.7k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors