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 565
    • Best 42
    • Controversial 2
    • Groups 0

    Posts made by AlphaOmega

    • Move Take Profit to modify as a group

      Hi.. Can anybody here help me to get the Take Profits of all open trades modify as a group? At the moment I can only get all TP of orders opened as a group in one place, or each child trade has its own TP ... I would like to modify them all together Thank you

      https://fxdreema.com/shared/c6zQNesEc
      Edit: The idea is that the group Take profit line, of all open trades in negative, would be place 30% of negative profit as each new child order open. If price action move in positive and hit the accumulated profit line of all trades , all trades must close. Please see picture
      0_1600751000543_group TP.JPG

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

      @josecortesllobat Somehow I cannot get this setup to work... I am sorry ... It always in the end spit out like 30 trades in the end ... maybe I am doing something terribly wrong here: I cannot get the average trade of all trades and move them together. The off blocks is the closest I got... They are all together but modify one by one, still not move all together
      https://fxdreema.com/shared/kASrZhzQd

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

      @jsauter86
      1 The Usdollar m15 condition is there because EurUsd pair have a very close correlation angle with each other. You will notice it is also on a lower time frame. I thought it a good idea to run it in front like this as a fore warning indicator to the Stochmach indicator which is running on the H1 time frame
      2 The profit on Buys and Sells depends on the months... Some months Buys are better and some months Sells do better... For this last year Sells did the best, But.. the profit would be much better if it can be regulated with an average non static exit. For now its $20 profit unrealized block .. if one could move the TP forward when the PA is in 10pips reach and put the SL behind the PA 10pips and so move the "area" between the TP and SL forward with the PAction, it would be much more profit
      3......
      4 Thank you..... the half heart attempt is making profit at the moment... but I would not trust it on a real account

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

      @jsauter86 ... Thanks for the inspiring response(in my mind).. No I am not selfish about my idea of a strategy because there is much more advance traders, and coders than me, with far more better ideas and strategies. I just feel embarrass about I am wasting anyone's time with my measly expert effort, but let me take you up on assisting me on what I want in this expert.

      About trading forex, I have realized the following:

      1. There is no perfect expert or indicator
      2. My emotion messed with my trading especially if I am in a big DD
      3. I always quickly lose more easy as what I can win.
        With this in mind I started to think how to manage price action instead of the probability of where the market is trending. This brought me to the idea to rather take as much profit as to concentrating on where to put my stop loss or how many pips can I squeeze out of a deal. The risks is a bit higher but the rewards is good. Normally when the PA hits your SL the PA miraculously will turn, so with this in mind I started on the following
        This is the idea:
        https://fxdreema.com/shared/0wmQh6UC
        0_1600354221983_Stochastic MACD.mq5
        Reference:
        https://fxdreema.com/forum/topic/4246/example-for-each-trade/7
        https://fxdreema.com/forum/topic/6813/add-a-new-trade-when-the-close-is-of-the-last-open-trade-20-pips-and-keep-the-same-take-profit-of-my-last-opened-trade/9

      The problem I have is: I can get more profit if I change "Profit unrealized block"( as I have it now) to a Take Profit Average for all trades(Parent and children), which will always modify to get 20% profit of trades opened.
      Optional and for safety: Limit the number of trades that the expert can open and have a Stoploss for each trade starting from the first trade place(parent)... As soon as the stoploss gets hit on the first trade that was opened it will open a new order at the current price action with the current lotsize increment percentage.

      When the modified Average profit percentage line goes into actual profit the Average profit line must be replace by the Average StopLoss line and trail the PA by etc. 10pips
      This is in short what I would like to achieve. I have added my project and also the indicator I am using at the moment. I will want to add the Support and Resistance indicator as well.. This will be to restrict the expert to only Buy from Support and only Sell from Resistance

      I thank you in advance and hope somebody would help me with this effort. I will pay if there is payment needed, most I would like to understand how to do the coding also.. Thank you

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

      @josecortesllobat Hi Jose, I have decided to give this profit average calculation a miss for now. It is to advance for me to comprehend all the aspects of the mechanics for the average profit and Stop loss. So I will take your suggestion and start a new project with my own blocks and as I go along , ask questions and there by learning at my own pace.
      I am wasting too much time in testing and reading up on the forum and so are not moving forward.
      I just really want to Thank you for your time and effort you took to help us out in this posts... Thank you.

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Awesome Oscillator

      @line I will also help him, in my very limited knowledge but I want him to do something first... and also its a slep for me because I am using mq5

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

      @josecortesllobat
      Thank you for your quick response! I understand about the "No position" block which will not deliver children trades. This is why I put a "for each position" block to create children orders but then I realize that the new "for each position" block is not part of the mathematical structure and will change nothing to my problem of many trades. This made me go back to "once per Bar " block. Also back to the same problem of to many orders.

      You have given me a solution to deal with this in your above reply.. ("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")...Thank you! So now, I will struggle down this road you have pointed.
      Concerning the writing of the strategy of my expert... I have done this on a word document. I know Fxdreema is not there for other members to write your expert but rather for oneself to learn how to code your own expert, I have not posted my strategy here because of this reason. This mathematical "profit maths" is small part but also the "heart" I need to make work flawlessly so the bigger mechanicals of my expert can fall into place.
      I am not a coder, and also do not know Fxdreema. I learn from all of you unselfish people and the previous examples of the members that struggle just like me.
      I am grateful to all of you that put the time and effort in here between your busy schedules.. Thank you.

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

      @josecortesllobat Sorry to bother you again with this... but I am struggling! Would you please give some insight again? You have really and truly explained this strategy in every detail but I am not getting the same results as you.
      I understand the many trades comes from "once per bar" block so I started with "no position" block to limit the orders.. This changes the outcome of the "average profit" variable.. I dont know why?
      For some reason the counter also do not reset properly because the expert will work With the "for each trade" block to add volume, but then suddenly will put down numerous orders simultaneously. Maybe it is my counter settings? I also played around with a lot of different ways to reset the counter as to not to disturb the working of the "average profit" but cannot come up with a solution. Hence I have to trouble you again for help.
      Thank you in advance!
      https://fxdreema.com/shared/NVdhiuLcd
      0_1599590340351_Stochastic MACD.mq5
      0_1599590271896_AAAAAA Profit Math counter.JPG

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: How to limit the Parent orders

      @l-andorrà I just dont understand it... I do not want more than 1 trade but still its allowing 20 trades?.. I must be doing something wrong in the logic of the expert?.. But I will ask him... Just thought I missed something in the logic of the conditions set

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: How to limit the Parent orders

      @l-andorrà Thx my friend.. will do that then.

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: How to limit the Parent orders

      @l-andorrà It was shared?
      https://fxdreema.com/shared/8S4P9c12e

      I made a mistake in saying Parent Trade... It is the Child Trades that is the problem?.. How to control the Child trades to only one? This number of trades is not working!
      0_1599455634408_How to control Children trades.JPG

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • RE: Awesome Oscillator

      @ramimoujaes 0_1599397736742_Awesome osilator pic.JPG

      posted in Questions & Answers
      AlphaOmega
      AlphaOmega
    • How to limit the Parent orders

      Morning Everyone! I want to limit the parent order in a variable. I have placed a condition to reset the counter on the "on trade" tab, it works fine but if the price action moves back pass the previously reset point, the parent condition gets triggered again which cause it to create about 20 orders simultaneously. How can I control this situation? Thank you in advance!

      https://fxdreema.com/shared/8S4P9c12e
      1_1599385770106_AAAA - test working1.JPG 0_1599385770105_AAAA - test working.JPG

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

      @biztet Lots more work to be done here.. But josecortesllobat has done a great job of putting me on the right track.. If only I really understand this variables and constants. Will let you know when I am finished... look whats it doing firing on only 1 out of 8 cylinders so far
      0_1598887464431_ec67ab97-9f7b-4de2-a39d-7fb49dd9c360-image.png
      0_1598887500667_de74a7eb-cc26-4f50-82b7-b06709979910-image.png

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

      @josecortesllobat Wow!! I really appreciate the time and effort you took to make this example. Also thank you for your patience as, I am sure other members here also have problems with this variables and constants as the Fxdreema example do not really teach you anything so in fact you are helping the whole Fxdreema community..., So a big THANK YOU and lots of respect to you from my side!
      I will go through your stuff and give you feedback on my progress.

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

      @josecortesllobat .. I do not really know how to put your code into constants and variables.. Never worked with those stuff and same goes to coding. After lots of back reading I have come up with something but it is not working, and I am afraid I think I am going down the wrong road here
      .. Please take a look and teach me how to implement what you wrote previously.. greatly appreciated
      https://fxdreema.com/shared/163e9qHvb
      0_1598809772346_AO Fancy Strategy.JPG
      Hi @AlphaOmega

      Regarding to your question: TP average. Probably there is a much efficient way to code it because fxDreema allows to reach the same goal with multiple ways. I assume that each child trade has a fixed TP that probably will be the same as for the parent trade. Let´s call it 'TakeProfitPips'. Using your example,

      nTrades == 0 (reset it as per your need)
      TakeProfitPips == 100

      OpenPrice_ParentTrade == 1.00000
      nTrades == 1

      TPLevel_ParentTrade == OpenPrice_ParentTrade + TakeProfitPips (as price fraction) = 1.00000 + 0.00100 = 1.00100

      OpenPrice_ChildTrade1 == 1.00010
      nTrades == 2

      TPLevel_ChildTrade1 == OpenPrice_ChildTrade1 + TakeProfitPips (as price fraction) = 1.00010 + 0.00100 = 1.00110

      TakeProfitAv == (TakeProfitPips + (TPLevel_ChildTrade1 - OpenPrice_ParentTrade) "as pips")) / nTrades
      = (100 + (1.00110 - 1.00000) "as pips" ) / 2
      = (100 + 110) / 2 = 210 / 2 = 105

      Modify ChildTrade1 TP to 105 pips -> TP_ChildTrade == 105

      OpenPrice_ChildTrade2 == 1.00020
      nTrades == 3

      TPLevel_ChildTrade3 == OpenPrice_ChildTrade3 + TakeProfitPips (as price fraction) = 1.00020 + 0.00100 = 1.00120

      TakeProfitAv == (TakeProfitPips + [(TP_ChildTrade ) + (TPLevel_ChildTrade2 - OpenPrice_ParentTrade) "as pips"]) / nTrades
      = (100 + [(105) + (1.000120 - 1.00000) "as pips" ] )/ 3
      = (100 + [(105) + (120)] )/ 3 = 325 / 3 = 108.3

      Modify ChildTrade2 TP to 108 pips -> TP_ChildTrade == 108

      .... and so on

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

      @biztet Hahaha!! Oh man... have not been there since Tanaka left.. maybe I should go make a peep... Yes .... and THANK YOU!!! To all the senior members who helped in this post!!! Respect to you!!

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

      @biztet We are contributors of cause. I just have nothing to contribute at the moment.. lol

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

      @josecortesllobat .. Wow!! thank you so much for your reply... I will firstly try to understand what you have written because I have no coding skills as such and also secondly have never work with this variables/constants... Much appreciate that you took the time and trouble to help me here... Thank you!

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