fxDreema

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

    The strategy from scratch questions and problems

    Questions & Answers
    4
    62
    31700
    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.
    • fxDreema
      fxDreema last edited by

      You can get information from the 3rd trade if you are sure that you want to work with it, here is an example: https://fxdreema.com/shared/Et6KuJiXc
      Here the orange output of "For each Trade" can be active at most once, no matter how many trades there are, it just loads parameters of the 3rd trade from the currently running ones.

      If you want to load 3rd trade which is sorted not by time of creation, but by something else, then the things are getting complex. Well, "For each Trade" can sort them by profit, look at the "Loop direction" parameter.

      1 Reply Last reply Reply Quote 0
      • C
        casebefx last edited by

        I do not know how to do ....
        I have EA that opens trades. Start the account $ 5,000.

        I would like to close all trades if equity will increase by $ 100. for example
        start 5000
        next equity amounts to more than 5100 -> EA closes all trades and other EA opens trades from start
        next Equity is more than 5200 -> EA closes all trades and other EA opens trades from start
        5300 next ... and so on

        I tried to create something but I have no idea
        https://fxdreema.com/shared/keJJADbAc

        Fxdreema please help.

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

          Well, this really depends, there are different variants that can be made. The question is how do you define that value of 5000 and then how do you want to change it. When the EA is closed, all of it's variables are gone. When you trade, the equity changes. There are things you should decide. And then... I think you can work with those variables 🙂

          What I can suggest is to look at those variables when you click F3 on MT - as a way to store variables and then manually change them while the EA is running.

          1 Reply Last reply Reply Quote 0
          • C
            casebefx last edited by

            Two problems

            1. How to display the current profit or loss from a specified pair? I have a few specific trades opened and every one of them I want to show a profit on its chart. How to do it?

            2. How to protect against unauthorized use EA on different computers? Is it possible to insert a stutter function id or something else? Fxdreema do you have any idea?

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

              If you only want to show that information, use the custom indicator "iExposure", it comes with MetaTrader. Otherwise we talked about this issue these days here: topic/2556

              1 Reply Last reply Reply Quote 0
              • C
                casebefx last edited by

                Is it possible to merge (for example) Group 1 and Group 2 into Group 3 ?
                If yes, how to do this ?

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

                  Blocks like "No trade is running" accept single value 🙂

                  1 Reply Last reply Reply Quote 0
                  • C
                    casebefx last edited by

                    I have few trades BUY, and I want to close all BUY trades when current price is 50 pips away from lowest trade (for example). But lowest trade is not oldest trade.
                    How to create this situation in fxdreema generator ?

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

                      Here is how any parameter from any group of trades can be extracted: https://fxdreema.com/shared/7gyl9b5ye

                      1. Define some Variable that will hold the final value
                      2. Use "For each Trade" or another "For each..." block. Always reset the variable here, you will see it the additional properties panel of this block that is for controlling Variables
                      3. Use some Condition. In this case - if the Open Price of the current trade is lower than the Variable -> continue...
                      4. ... and set the value of that Variable to the Open Price
                      1 Reply Last reply Reply Quote 0
                      • C
                        casebefx last edited by

                        Hi

                        I have new problem.
                        I created such strategy https://fxdreema.com/shared/gBicMsTac

                        I want put horizontal line on candle where MA crossing. And it works.
                        When MA cross again, I want delete previous horizontal line and draw on new cross (on candle). And it works too.

                        But I named HL as BBB. And when new HL is true , it has name BBB1,BBB2,BBB3 etc. Why? Can I create always BBB horizontal line ? how to do it ?

                        It is becouse I want open BUY trade when close of candle Id1 is above horizontal line BBB. I think it doesn't open becouse name of HL is changing.

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

                          Look at the top 2 parameters in Draw Line. I know that they are confusing and you probably don't know what they are doing (me too 🙂 ), but they cover 4 different situations. To always redraw the line when this block is executed using the same name, set those like this:

                          The block can... : No
                          Redraw the....... : Yes
                          Object name..... : BBB

                          And you probably don't need "Delete objects" in this situation

                          1 Reply Last reply Reply Quote 0
                          • C
                            casebefx last edited by

                            Could you tell me why this strategy on ticks opens only BUY positions ? It happend on tester and in real use.
                            But in tester on "control point" EA opens buy and sell trades.
                            Why? Where make I mistake ?
                            https://fxdreema.com/shared/AHc1rSpmd

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

                              I got some sells. But these trendlines... I'm not sure that everything is fine with them, maybe I defined them wrong in the block. I think they need 2 price and 2 time points, but 1 time and 1 point appears in the block. I will check this tomorrow. But do you need trendline by angle, or normal horizontal line. Because these lines looks horizontal when I backtest.

                              1 Reply Last reply Reply Quote 0
                              • C
                                casebefx last edited by

                                It can be horizontal line. Trades must open above (BUY) or below (SELL) horizontal line. I have tried HL but it didn't works good. Than I used trend line. But can be a horizonatal line.

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

                                  https://fxdreema.com/shared/aT4OUuwJ
                                  http://i.imgur.com/4GiDvt0.png

                                  this is just an example, but it works for me

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    casebefx last edited by

                                    How to determine the condition that there is a vertical line at all. No matter on which candle, only the condition that exists.
                                    Is Condition 4 is correct?

                                    https://fxdreema.com/shared/Tv6zv5h8c

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

                                      Probably. The == thing and this attribute is shot in the dark. If such an object does not exists, the Condition block will not pass at all, not to it's orange output, not to it's yellow output. So only the fact that you are trying to load object that does not exists will stop everything right here in this block. Try this: https://fxdreema.com/shared/Hj86YoIfe

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        casebefx last edited by

                                        Some time ago I have used
                                        "SIMULATE_TICKS 0 // Use this for offline charts - feed the EA with ticks coming from a certain market (SIMULATE_TICKS_MARKET). Options: 1 - enable, 0 - disable" and I changed "0" to "1" EA to offline chart.
                                        Now I can't do this. How can I change EA to working on offline chart ?

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

                                          Now offline chart should be automatically detected, so no need to manually control this. But use the latest MT version., as this is something relatively new.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            casebefx last edited by

                                            Today is Sunday and I cant to try it.

                                            I want to campare two Buckets of trades (green and red). I want to close all positions when profit Bucket Green is greater in 30 percent than Bucket Red .

                                            Is it right condition ?

                                            https://fxdreema.com/shared/fsL5kc2yd

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post

                                            Online Users

                                            R
                                            F
                                            S
                                            D

                                            14
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors