Сommunication anyone interrested turning this into a Semi-Ea

Discussion in 'Free communication on a variety of topics' started by DjFx, 23 August 2023.

  1. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
  2. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    cost for the bases of the EA is $200 . if a couple of people are interrested to develop it further. let me know
     
  3. Dasio86

    Dasio86 Member

    Joined:
    22 November 2022
    Messages:
    106
    Likes Received:
    14
    Trophy Points:
    18
    Hi, i't interessing. Maybe i'm in only if we get the source code
     
  4. PDX

    PDX Active Member

    Joined:
    4 December 2022
    Messages:
    707
    Likes Received:
    92
    Trophy Points:
    28
    Gender:
    Male
    Location:
    Prime
    the question posted by topic starter is to create/develop a source code, so it's a bit far-fetch at the moment
     
  5. PDX

    PDX Active Member

    Joined:
    4 December 2022
    Messages:
    707
    Likes Received:
    92
    Trophy Points:
    28
    Gender:
    Male
    Location:
    Prime
    how do you manage/factor commissions, slippage, volatility, and other stuff into the ea's development?
     
  6. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    yes, source code included but i will ask to make sure.

    first we need to put something on paper what you want to see included. for final quote and to make sure its done ,right

    first trade manual entry with market order or stop/limit order. input parameters: hedge distance in pips, first take profit in pips. after that cycle will paly out. bu for me any extra trades taken the EA will take that into account as well is my thought.
     
  7. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    as i said above we need to put things on paper . and find out if it is a big problem or not. its same with manual trading. if something unexpected happens you need to act accordingly.

    things like slippage, commissions, different spreads should already be known if the programmer understands his craft,right.
     
  8. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    also like to add a dashboard. so you can see some details like overall drawdown. profit and loss...etc.
     
  9. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    or @Admin has programmer in his staff. they could program it as well.
     
  10. Dasio86

    Dasio86 Member

    Joined:
    22 November 2022
    Messages:
    106
    Likes Received:
    14
    Trophy Points:
    18
    I see it's video but what i don't understand is the calculation. Maybe because he did it in units and not lots, but for now i have a little confusion
     
  11. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    if we automated it, than you don't really have to worry about the calculations. see attachment its an ecxel sheet wiht lotsize
     

    Attached Files:

  12. Dasio86

    Dasio86 Member

    Joined:
    22 November 2022
    Messages:
    106
    Likes Received:
    14
    Trophy Points:
    18
    I'm a programmer mainly mt4 but also mt5 but I need to have all rules write and clear
     
  13. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    100.000 units is 1 standerd lotsize.

    let me see if i can put something on paper so you could make the base of the Ea
     
  14. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    what exactly you do not understand
     
  15. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    if you use lotsize or risk% and not units

    If you put in lotsize and hedge is 30 pips. If your risk 1 lot you risk $300 on 1st trade

    If you put risk x% and hedge is 30 pip. If you risk 1% your lotsize is +/- 0.5 lots( you need to calculate the lotsize)

    first hedge you close x% of the trade. he use +/- 15%( make input that you can decide how much % to take off as profit).

    2nd hedge was 16% as profit

    and with the inner hedge he toke 20% profit and used the rest to trim off.

    make inputs/parameters in %
     
  16. Dasio86

    Dasio86 Member

    Joined:
    22 November 2022
    Messages:
    106
    Likes Received:
    14
    Trophy Points:
    18
    So if i understand lets start with a full hedge of 30 pips.
    When the market go away of 40 pips (for example) the EA close all the profitable lot. So we have 10 pips out of the hedge. A % of this 10 pips profit is used to close partially the negative position....and so on. It right?
    In this way the equity loss is decrease amd the balance is increase..
    Right?
     
  17. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    if you bought and price goes against you. a sell stop has been placed 30 pips below. if the sell is activated your in a hedge,right. now the sell needs to go 40 pips in profit. so you have a sell + 40 pips and a buy with -70 pips. now you take partial profit of the 40 pips sell for profit and the rest of the profit is used to partially trim the negative position of the buy floating loss.
     
  18. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
  19. Dasio86

    Dasio86 Member

    Joined:
    22 November 2022
    Messages:
    106
    Likes Received:
    14
    Trophy Points:
    18
    So what i can try to do is,
    External Input
    1. Risk per Trade (fixed or %)
    2. Pips Step for heding
    3. Pips Step for Partialize Close
    4. % of profit to retain
    5. Magic Number
    6. Comment
    The only think i need to know is.
    How we want it to work for the position?
    The first position is opened manually?
    With which rules it open the internal position for squeeze?
     
  20. DjFx

    DjFx Active Member

    Joined:
    16 August 2020
    Messages:
    474
    Likes Received:
    61
    Trophy Points:
    28
    Gender:
    Male
    you can make an input for internal position x% input. so you can fill that in. default 50% of the lotsize you started with. are you making a button on the chart,so it knows if you press it that it is a internal position and knows which side to partial close...etc.

    % of profit tp retain. the amount depends on when you close the position. if you use as default 40 Pips. if you use 1 lot ,you toke of 25%,right. if you would have closed the 1st position at 80 pips. he would take different amount profit. he closes less as profit and more to redue the drawdown.