fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. AlphaOmega
    3. Posts
    • Profile
    • Following 5
    • Followers 16
    • Topics 46
    • Posts 575
    • Best 47
    • Controversial 2
    • Groups 0

    Posts made by AlphaOmega

    • RE: Tutorial 07 - Read prices from indicator objects

      Sorry bro ... cannot help you .. I am using MT5

      posted in Tutorials by Users
      AlphaOmega
      AlphaOmega
    • RE: Tutorial 07 - Read prices from indicator objects

      @umbrellamaker All the source coded products is in this post brother? Just go backwards and look for it.... easy as pie

      posted in Tutorials by Users
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @josecortesllobat Thanks for the reply... Yes, you have a good memory... I will start from beginning:
      When indicator is in overbought or oversold I want to place order.. check simple expert example:
      https://fxdreema.com/shared/mdjTWpegb
      This is the indicator: 0_1606327536570_Stochastic MACD.mq5

      The next step,
      If the conditions is met but price action still moves further away from 1st trade(parent) in a negative direction: another order must be taken -30 pips(first child trade) away from original entry and then -30pips away from 1st child trade, etc..... and the lot sizes must be exponentially added on an averaging basis of a +/-150% of previous negative lot size, on every new child order. For example: 0.01(parent), 0.02(1st child), 0.03(2nd child) etc, and the take profit must modify 25% above the average of all trades
      I hope you can understand this explanation.
      Thank you in advance

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @josecortesllobat... Hallo Jose .. Thank you for taking the time to reply..

      Ok, This is what I want to basically achieve:
      I want to create an averaging expert where I can set the take profit on % above the average of all trades opened:
      Example: 0_1606152148687_973459a6-2c15-441a-9323-db54bcd9d7e8-image.png

      This is how I started with the algorithm from roar: https://fxdreema.com/shared/VeKz6Pg7d
      0_1606152307435_9d4bc96f-2ae0-4987-b2aa-5582975ec66f-image.png
      But this was a problem because it has a random lot size which Roar used for testing and I cannot use it.. So I changed it to fixed value
      0_1606154487564_95e09ae1-88bf-4e11-8d1a-335b549cbc78-image.png
      0_1606152265261_b2748646-ba8c-4c0b-b7d8-8a63515f8f4b-image.png

      I then started to take profit on object on chart but this also is a problem because the horizontal line must first modify to an average before the expert will input a TP
      0_1606154628003_d7b0c6d0-66aa-4d4d-9549-8a4f49d9adb1-image.png

      So now I am stuck! So please suggest a starting place where I can understand each step with your help
      greatly appreciated!

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @josecortesllobat .. Thank you for replying.. I have tried that but no difference? If that purple line do not move it will not put the average TP. I think it has something to do with the Buy TP block. I have put a constant TP but that also does not work.
      0_1606059048720_0d5b13b9-b675-4021-9461-73f1f081a5b1-image.png
      Please explain the workings of the expert Jose.
      0_1606058832145_81183d68-9ea6-4070-b3c7-1eef438291ac-image.png

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: I'm trying to creat a simple trade manage EA

      @rubvil Cannot help you if you do not share the indicator, but it would go something like this. Insert buffer for buy

      0_1606038894165_a6760bef-26fb-42a4-930a-8d6d289bce7e-image.png

      posted in General Discussions
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar
      @josecortesllobat

      Could you please explain how to rectify this problem: The expert takes 2 orders from the word go but with no TP. As soon as the Average horizontal line move the TP average appear. I still do not grasp the variables and constant settings, after numerous reading up on it... I want the TP set even if there is only one order. will much appreciate the help... Thank you
      https://fxdreema.com/shared/HcVkjCWVc
      0_1606024699012_3d74c68d-8e8e-417d-9ea0-0ac722f64f6b-image.png

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Martingale or Grid EA - Help

      This is a real great contribution to the Fxdreema noobs... Now we can all understand how this martingale works... Ons kan nou almal in ons eie taal beskryf wat ons nie verstaan nie en magies sal dit in die taal verander wat ons verstaan, wanneer ons dit lees. Great idea!

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @josecortesllobat Hi my friend... Welcome back!!! Look roar is a Magician with that codes but you have the patience to teach... I have a few problems with my expert which I will forward to you as soon as I come of work... just wanted to say Hello..

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar Hi roar.. I want to know if the below picture should have the "average" variable inside? It does not make a difference in the algorithm .. just wondering about it... Thank you

      @alphaomega I noticed a bug in my algo. Weird thing is, I remember fixing that bug before - maybe I shared you the wrong version...
      This should work:
      https://fxdreema.com/shared/VeKz6Pg7d
      0_1602410155031_16a54785-7f73-4e19-9b7b-a0acf90f5b15-image.png

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      I wonder where is one of our teachers? ... josecortesllobat I hope you are still good and healhty!

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar You did an amazing job here!!..
      After a month of struggling with this algorithm (https://fxdreema.com/shared/ij7Qn3Mfd)... I finally got this expert to work with this new algo of yours (https://fxdreema.com/shared/VeKz6Pg7d)... You are a Top Ten of the charts magician with this stuff! Thank you very much

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @biztet Oh please... I know less than you about this! I feel I have been given a Ferrari and a drum with a million keys to the ferrari....The only way I get forward is by trying each key.. Lol

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar Thank you .... I will try and give you feed back

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar Thanks for taking the time to reply.. I am not using the buy/sell counter.. its is off. I wanted to try something else which also did not work..

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @roar Hallo .. thanks for the reply... I cannot get the formula to work out the negative profit average... @josecortesllobat gave me a start.. and this is where I am at:
      https://fxdreema.com/shared/pMEhJRUCc
      Please give some insight... This was your original code: https://fxdreema.com/shared/ucZlZvYcc
      I want the average profit on all trades to modify the take profit.. I know it is a lot to ask but I have tried million of ways and are totally stuck.. Please give me your help.
      Ps ... The average price is include the negative trades. so I add volume against the price and then the average TP must modify.. I am struggling with this because the formula does not work correctly.. this is my latest work: https://fxdreema.com/shared/dMHPN08wd

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      Just a head-up on my very slow progress.. This is just the Buy side.. I have come to the realization that the counter 'ntrades' is not working properly with this negative strategy. The reason is that the comment counter and the 'ntrades' counter do not match the true trades count, therefor @roar 'avg formula blocks' is not working, which leads to the 'takeprofitav' not working, so no take profit's gets modified. I did manage to get a work around by the 'profit unrealized block' but it is not what I intended in my original strategy.. so profit gets wasted.
      Comments counter false counter:
      0_1601798121018_24d36f13-3036-4596-960b-d956c9678eaf-image.png
      Here is the real Back test trades true counter:
      0_1601798292631_da2f0abf-6798-425c-856e-bd6ed2c1c64b-image.png

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      Hi guys .. Need some help here again please: I get strange modification of the take profit. I have tested this like a million different ways but cannot get to a solution. Could you point me in the right direction please?
      0_1601612102594_46c91d6c-3053-4b83-934e-880c74134f75-image.png
      https://fxdreema.com/shared/vGpLDdrPd

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      I could not reply your questions totally as Fxdreema was off-line.
      This is my latest creation according to your advice: https://fxdreema.com/shared/wxUczDLRd
      My biggest problem is that this expert is so fertile with orders, it is hard to control the orders to one at negative intervals of -40pips. Fore some reason the expert start with vigor and then it runs out of steam creating no orders at all?

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Profit Math

      @josecortesllobat Sorry, for some reason I did not get a flag that you responded? Thanks for helping. This is how far I have come with my truly low knowledge of coding and mainly your help. The forum and @roar contributed a lot, for which I am very grateful!
      https://fxdreema.com/shared/pMEhJRUCc
      This is what I want to achieve as the base of my averaging expert mainly:

      I apologize in front for my poor English as I am dutch, so maybe things will come out skew, but here goes,
      In a BUY situation....The negative profit average (and future positive Stop loss average) will create some area to imprison the current price action.
      So, a parent trade(0.01) gets triggered with its own TP, say 30 pips. Obviously, if the current price action moves in positive you get +30pips. When the price action moves in negative of the current buy order (say -40 pips away from current open price) a child trade(0.02) gets created with a TP of 30pips. When the child1 trade, is created the TP of the parent trade move to the negative profit average of the parent and child1 trade, +25% positive on the average profit line. It means the following:
      ((parent = -40pips(realized)) + (child1 = +30pips(unrealized)))/2(current trades) = new take profit will be -5pips + (25% positive on Profit Average line) of the 2 running trades.
      If the price action moves further into negative, so it will continue:
      ((parent = -80pips(realized)) + (child1 = -40pips(realized))) + (child2 = +30pips(unrealized)))/3
      (current trades) = New take profit will be -10pips + (25% positive on the Average Profit line)
      and so forth
      If the Take Profit in sequence gets hit all existing Buy trades must be closed as well.

      (Option to trail the last child trade, if hit then a new child trade must replace, with the same lot size to the taken one.)

      Average Stop loss action:
      If we have the parent and child trades positioned as mentioned above, The Stop loss Average of the open trades will be triggered to -30pips below the price action, when the new Take profit gets modified. The stop loss will not be fixed and move in parallel with the current price action. This movement of the Stop loss will continue till the current price action moves into positive price action and then the Stop loss will stay static, -10pips below current price action, in positive of our running trades. This will create and area between the modified take profit line and the -10pips Stop loss line with the price action imprisoned in between. If the price action moves further into profit the Stop loss line will trail by 5pips and the Take profit line will move +5pips. This criteria will be ongoing till either the price action hits the trailing Stop loss or the Take profit line.

      I hope I made sense enough for you to understand me clearly.... Thanks in advance for all your contribution thus far.

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • 1
    • 2
    • 11
    • 12
    • 13
    • 14
    • 15
    • 28
    • 29
    • 13 / 29