fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. josecortesllobat
    J
    • Profile
    • Following 2
    • Followers 20
    • Topics 34
    • Posts 507
    • Best 41
    • Controversial 1
    • Groups 0

    josecortesllobat

    @josecortesllobat

    44
    Reputation
    3747
    Profile views
    507
    Posts
    20
    Followers
    2
    Following
    Joined Last Online

    josecortesllobat Unfollow Follow

    Best posts made by josecortesllobat

    • RE: PROYECTO SAMO PRO 1.0 desarrollado en un 80% con fxdreema

      I saw the first minutes of the video shared and this is my opinion

      0_1578425020521_34a111e1-9124-4b5d-8ef3-4b216992843d-image.png

      0_1578425254037_6af0291f-df02-49af-9b60-57fa207c36c4-image.png

      IS = 5 months
      DD = 7629.68
      Max. Consecutive Losses = 156 (6578.52)
      %WINS = 5.51
      Av. Loss =34.25

      Your average risk per trade is (34.25/200)*100 = 17.125 what means that you will loose your account if 5.83 (5) consecutive loss trades happen. Accordingly to your maximum consecutive loss streak (156), there is a high probability to loose your account. In addition to that, there is a Max DD of 7629.68 in a 5 months period what it should be considered enough to do not trade this strategy,

      BUT...IT´S JUST AN OPINION

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: draw line does not work

      It Works as expected

      0_1536163961681_1bc509fb-2b06-4aad-939d-575196848d9d-image.png

      0_1536163993076_c8a2f0c1-185a-45c0-a765-17fb385ad872-image.png

      posted in Bug Reports
      J
      josecortesllobat
    • RE: Trailing Stop of Money (all trades/profit of account)

      This is an example of what you are requesting

      https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything

      Thanks to the people involved on that post because it is a really nice "Account Profit Trail Stop". This is why the forum and the info sharing is so valuable.

      @timmyhanke
      @roar

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: EA trading not using conditions

      Follow the advice given by @isp00rt

      It is highly recommended to read the fxDreema's tutorial web

      https://fxdreema.com/tutorial

      It is a good starting point.

      posted in General Discussions
      J
      josecortesllobat
    • RE: There is a bug...

      "If Testing" block is working correctly on my projects

      0_1578726254270_d54579ff-f8ba-4921-9185-e6b156c73efc-image.png

      posted in Bug Reports
      J
      josecortesllobat
    • How to copy constants/variables from one project to other one?

      Hello

      Is there any way to copy all the constants and variables from one Project and paste them in other one?

      I have my projects in MQL5 language and I want to transform some of them to MQL4. I know that it is posible to copy all the blocks from the source to the destination. But, what about the constants and variables? Is there any way to do it as well?

      Thanks

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: how to make lot size like that

      It looks like a "Martingale" strategy.

      posted in General Discussions
      J
      josecortesllobat
    • RE: Multi-Candle patterns

      Take a look at this tutorial made by @miro1360

      https://fxdreema.com/forum/topic/4321/tutorial-08-candle-formations

      It has been really useful for me.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: unable to draw arrow on crossover

      Hi

      If you want to draw an arrow for each crossover condition, this should be work

      0_1529333814230_0b74aa82-9e04-4746-8a99-6297c394712d-image.png

      0_1529333852408_0bec7c05-f512-49a2-b767-2397c9f3b999-image.png

      0_1529333873249_11738724-5486-413d-aa12-bddec93d76be-image.png

      0_1529333896247_2b1a9d12-bc17-47db-8b4b-ea7ebc5d073a-image.png

      But if what you want to draw is an arrow when both conditions meet at same time, it is probably that you Will get few times or noone.

      0_1529334148406_a9c9c70c-b20d-4b1a-ac87-d8af4c44a2c7-image.png

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: About formula and variable

      Check this out

      0_1530466584610_b281751b-5e35-45c7-b430-c8b05e5b51ea-image.png

      posted in Questions & Answers
      J
      josecortesllobat

    Latest posts made by josecortesllobat

    • RE: Profit Math

      @AlphaOmega Sorry, I cannot still understand your project because you are giving the whole puzzle but we need to build it piece by piece.

      Let´s make it simple and then if you have a good EA's behavior, we can try to add the suggestions given by other forum members.

      What do you need to happen when the codition/s to open trade/s takes place? I remember from the begining of this topic that you wanted to open a trade when a new bar opens and the condition is still true. Is that correct?

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega I have to say again that you must simplify the project as much as you can or we can try to help you step by step to build what you are trying to get from a simple starting point. Maybe this way is not quick but we can get a more understandable project behavior instead of trying to look at your code to see the trouble. I am sure that other forum members are smart enough to find the problem but the way that fxDreema explained to me is as I said above.

      Let's get started by doing a simple project. For example, I want that the EA opens a position every new bar after a bull crossover happened on the previous candle. There is no need to share your conditions to trade. After that simple project we will increase the complexity with what you want to obtain. What is important is to avoid adding more than 2 new features on each step of the project to be sure that what we added behaves as expects.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega

      0_1606056598441_f7a21083-6044-4fe0-a81d-0d445bbe9892-image.png

      That piece of code is placed on the 'OnTrade' tab that is intended to do things with trades. I would say that you have to place 'Position created' block on top what would mean that when a trade is created, some things will happen. As it is right now, I would say that the code does not execute anything.

      Give it a try and let us know.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      Hello @roar @AlphaOmega Happy to know that you were working on this and found a solution. Well done!!!
      Keep pushing on learning fxDreema and building your projects.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega It´s tough to understand what are you trying to reach if we don´t know what you would like to achieve. Said that, I will try to do my best in order to help you.

      First of all, I would suggest you to read the information for the "For each position" block

      0_1600813403381_f2391827-0ff0-4c55-b12f-70949c528f57-image.png

      We will focus on the main branch of your project because I would say that the reset branch looks correct at least in respect of the project´s logic.

      0_1600813075135_64263941-3461-4678-961b-8bb027cca453-image.png

      If we assume that block with ID = 120 is true, next block is evaluated

      0_1600813473863_2e74e88c-fcc4-4b13-86d0-a3bc64accecc-image.png

      We have that if the postions count is less than 1 (=0) for positions that match filters Group#=1 and Type=Buys, block passes. Then, do you want that the project´s execution passes if there is no buy position?

      If we assue that there is no buy postion and block ID = 60 passes, it will not be true anymore and the false output will be active but there is nothing attached to the false output so I suppose that the project stops at this point.

      As I said earlier, there are many questions to answer before reaching what you want.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega Forum members will be glad to help in your growth using fxDreema. We all learnt like that.
      Believe me. I was also concerned in sharing some aspects of my strategies in the past but it was needed to move forward. I am not saying that you share all details of your strategy but if you ask for some help, you will need to provide what you are trying to achieve. Keep on trying and learning with fxDreema.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega

      If you add a "No position" block, that will only open the parent trade and none child trades because on the second excution of the code, the "No position" block false output will active and will not pass through the open trade block. You said that you wanted to open a child trade for each new bar once the parent trade was opened.

      If there is no child trade, Take profit average is not calculated because it only exists one trade that is the parent one.

      If you want to limit the number of trades after opening the parent trade, you will have to use a variable like TradesLimit that will be increased each time that a new trade opens. Then, add a condition block to let pass the project execution while the limit of trades is not reached.

      My suggestion is that you should write down your strategy´s rules and then we will try to help you to get what you want. Begin with a basic rule like when this condition is true, do this. When that step is correct, add a new step to the project and check it out.

      But remember that the forum members are helping to make the people be more comfortable using fxDreema. They are not EA's coders for free.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Profit Math

      @AlphaOmega

      As I mentioned earlier, there are several ways to achieve the same result with fxDreema. This is just an option and, of course, the project can be optimized to get a more efficient code. Here it is the long trading side:

      0_1598856115194_309d9595-0ffe-4a5c-a22f-083ff1be7c8f-image.png

      https://fxdreema.com/shared/xblYjK0uc

      0_1598858539003_Profit Math.mq5

      0_1598857063028_095420a4-f777-4e71-a3b5-88fc8c9593e4-image.png

      0_1598857159633_91e6def0-2b3d-420d-b53f-af36d1c7457a-image.png

      0_1598857195997_16163e37-c5dc-4406-b3d7-def597666ac9-image.png

      Whatever the condition is true to enter at market, that piece of code will open a trade for every new bar with the original take profit value (100 pips in the exxample). When a child trade opens, it calculates the take profit average by getting which is the take profit in pips of the child trade using the parent open price as the reference following this formula structure:

      TakeProfitAv == (TakeProfitPips + (TPLevel_ChildTrade1 - OpenPrice_ParentTrade) "as pips")) / nTrades

      After that, the code will modify the child´s TP to TakeProfitAverage.

      That logic will repeat until you break the loop when your condition to do not enter long at market is met (maybe when start to go short).

      Keep in mind:

      • I defined the Pointsize with a number but it can be set with 'Market Properties'. This parameter is used to convert from points to pips or vice versa.

      • I have used a "Counter: Pass once' (Id=3) block to split the parent trade from the child trades. This block will need to reset at some point along your code. For example, when you break the go long loop. If it is not reset, when the EA starts with a new go long loop, it will not activate the true output of the block.

      One of the best suggestion that I got from fxDreema support & other forum members is to add blocks that makes me to see if the code is going as I expect:

      "Draw Arrow" allows me to see that the execution passed through the "modify stops" block
      "Comment (ugly)" allows me to see the parent trade values
      "Comment" allows me to see that the calulations are correct

      Hoping that this example provides you some starting point.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Crossing Moving Average

      @ramimoujaes Your project has some blocks fields empty that are important for the project´s logic.

      My suggestion is always to try to understand the logic of what you are building. The "How To" examples are just a guide to help you to begin from something. Same applies for the suggestions provided on the forum.

      Said that, what you want is to open - close trades on opposite conditions of a MAs crossover. Here you have an approach

      0_1598281718830_edd77986-07e9-4ac3-962f-7c66a6cfc198-image.png

      0_1598282153293_07431abd-7a73-406a-bc97-8bdd622b1290-image.png

      0_1598282258613_6bee5b65-8140-4a54-8528-3300512cd424-image.png

      As you can see above,

      when MA (5) x> MA (200), EA closes Sells (no sells were running, no Buy - Out) and opens Buys (Buy - In)
      when MA (5) x< MA (200), EA closes Buys (Sell - Out) and opens Sells (Sell - In)

      As I mentioned earlier, that example is just an approach to what you want but it does not mean that is the only one because fxDreema allows to do the same through different ways.

      posted in Questions & Answers
      J
      josecortesllobat
    • RE: Some logic error

      if you share the project, it is easier for any forum member to suggest something to try

      posted in Questions & Answers
      J
      josecortesllobat