fxDreema

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

    Adding a Sure-Fire-Hedge, to an Startegy

    Questions & Answers
    2
    10
    8180
    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.
    • D
      DOSENPFAND last edited by

      Hi ,

      first of all thanks for your nice WYSIWYG Editor !
      Maybe it will be a first small step into learning to code in general as well.

      I know that you dont care much about hedging strategies but it would be nice if you have the time to quickly overlook a not working EA which "i clicked togehther" with your tool.

      Iam also not sure if your familliar with the Sure-Fire-Hedge Trade Management(some use it as a stand alone strategy which will obviously let to a sure loss) which i want to implement within my strategy . It is basicly that you need a strategy with at least a slighet positive expectation where the SL is as double as high as the TP so on half way to the SL of order1 a Hedge Position +1 unit will be opened in the direction of the SL of Order 1 with the same TP and SL ( just in the other direction of course), if price fails to reach TP of the Hedge position too and goes back to the open Price of order 1 a third Hedge is opened and so on and so on .....

      In my variation there should be only 4Trades Max. at the same time and the TPยดs of the trades get also modified to BE-Spread ( I did this by simply reducing the TP of all running trades, to make it not more complicated )

      Well unfortunetly the EA doesnt do as i suppose , i tried it in almost all ways i could imagine and a lot of different combinations of blocks , but iam a completly noob EA Coding and Coding in general so i guess i just make a big logical mistake .
      For now every EA i tried just opens all Position at once an closes them in a way i never intended

      It would be very nice if you have a short look over it ( and please ignore the condition when to open a trade , that was just something random for testing purpose )

      Here is one of the Examples which dont work:

      http://fxdreema.com/shared/MVoriPI2b

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

        There is a block called "Trades count".

        There was somewhere in the forum Sure-Fire project, you found it?

        "Start trades loop" makes the next block(s) connected to it to be executed as many times as many filtered trades there are. In a
        single tick, "Start trades loop" can pass 10 times if you have 10 trades, so it can execute what follows 10 times in a tick.

        I think this project is not very well constructed, it will probably work in a "random" manner. If possible, make projects with less Buy now/Sell now blocks as possible. Also if possible, don't copy/paste the same group of blocks - reuse them instead.

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

          I searched the forum and I found this... It can give some ideas at least http://fxdreema.com/shared/saUu2Td5b

          1 Reply Last reply Reply Quote 0
          • D
            DOSENPFAND last edited by

            Thanks for your fast answer.
            of course i searched the whole forum ( the whole page actualy) for a similar hedge TM since you mentioned Sure..-Fire in another thread but i couldnt find it.

            First of all youre surely right , its bad designed since i totaly lack of experience and understanding of some of the blocks.
            But i was aware that the " in loop" might not be right. The problem is couldnt find anything simillar like this " pips away from Sl/open/Tp" block elsewhere , but recently i discovered that something similliar is in the condition block under "trade events"?? right?

            The other problem is that i have no idea so far how to make the hedge an inherent part of a "logical trading circuit" without using buy/sell stops or market orders for every hedge trade that i need. I hope the link you provided will give me some more insight , but if you have more examples i wouldnt mind that ๐Ÿ™‚

            Greeetings

            1 Reply Last reply Reply Quote 0
            • D
              DOSENPFAND last edited by

              Well i found a Sure-Fire Project , odly enough not with the forum search but with google.
              Annyway , thanks to the Author of this EA!
              It gave me some insights what is possible with dreema i didnt know of . No insult intended but specialy for noobs like me the docs are realy lacking of a good explenation and examples, it seems they didnt even cover all parts in a "scratch the surface" way, but on the other hand thats a lot of boring work , fxdreema is extremly funny to play with it and to learn and it also seems more sophisticated,complete and flexible then all the other generators i have tried.

              [Edit]

              I already find the block , thanks anyway

              http://fxdreema.com/shared/zlHZzgzXc

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

                Yeah... for some reason I could not find results about "Sure-fire" in this forum, even when I'm sure there are posts containing this text. To be honest - I don't know why ๐Ÿ˜„ phpBB is so simple when you look at it, but in the Admin panel is not really intuitive ๐Ÿ˜ฎ

                I agree with documentation - it's not enough and it's stupid ๐Ÿ˜• I don't know why I prefer to answer the same questions again and again and not making better docs. When I'm asking myself "What to do next?" I always end up with decision to do something over the code that no one can see (the core). I wonder what is the name of this phenomenon ๐Ÿ™‚

                1 Reply Last reply Reply Quote 0
                • D
                  DOSENPFAND last edited by

                  I guess its called , " having no boss, so i do whatever i like most Syndrom" ๐Ÿ™‚ the cure could be either an an "EA" which is answering all redundant questions^^, or listening to my begging for some more complex examples, simply to see what is possible (or what is not ) .

                  I prefer latter treatment, as you might have guessed already:)

                  Annyway i see a convergence between the phpBB admin panel and fxdreema , dreema is realy kinda intuitive for people without coding experience who are aware of at least a tiny bid, how MT4 or trading in general works, but some little details, or conditions who are so easy to write in pseudo code can be very tricky , creating "logic holes" resulting in strange behavoir of the EA and the trader in front of the PC ๐Ÿ™‚
                  But i guess that goes for coding in general and its not fxdreema inherent.

                  Keep up the good work

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

                    Actually the reason why I decided to start coding this tool was that I was tired of trying to create a universal EA... or at least something that can do Martingale, Fibonacci or Anti-Martingale when I decide. It sounds so easy, but it's not. I found myself trying to write maybe less than 100 rows of code day after day, so I decided to lose my time with something else.

                    The biggest problem for me is the speed of backtesting in MetaTrader. There is a big waste of time while coding something very simple. My way to code is to write something simple - do test, write more - do another test... write-test-write-test. In MetaTrader you have to waaaaaaiiiiitttttt... And it's hard to detect problems when something is not working as expected. There is something more - MQL4 has weird behaviour sometimes. It's also hard to work with arrays in MQL4. What about MQL5 - it's 5 times harder to do something there.

                    1 Reply Last reply Reply Quote 0
                    • D
                      DOSENPFAND last edited by

                      Yeah, i was suprised to see so many pre-build Money Management blocks with progression , specialy because i was looking to incorporate the "Labouchere Progression" into the EA. Not even Steve Hopwood has made public available code for this( and i guess he coded virtualy any stupid idea for anyone out there in retail forex land ๐Ÿ™‚ , btw i guess his "universal EA " where he build most of his stuff from is or was available , free , on the net. Maybe you would like it .

                      But yeah that wouldnt solve the Mt4 dependency , but why have you never looked at Multicharts, or the more exotic Nanotrader ? Ok, Multicharts is not cheap but demos or even cracked versions are around the net and backtesting with this program is very good( of course it stays and falls with the data source too) , at least thats what the people say , i never tried Multicharts myself.

                      By the way i ran into a (hopefuly) little problem again.

                      Under the "on trade" tab of the original Sure-Fire Project http://fxdreema.com/shared/zlHZzgzXc the Lotsize of every pending-order after the 1st market-order is determined by two simple formulas(by definition the first pending order after initial order must be Grand-Martingale according to the Sure-Fire-Hedge Trademangement), the condition which formula on which order shall be used, is above, but the pending order MoneyMangement section wants to know which of the two Formulas (in my case formula of block 10 or ๐Ÿ˜Ž should be used, since this is defined by above condition and while the original Sure-Fire simply has the Term "Formula" in the pending order section where iam forced to decide which , iam a bid puzzeled.

                      "My" Sure-Fire so far

                      http://fxdreema.com/shared/95vCSCnxc

                      If you could help me out [and you manage to escape the abyss of dreemas code core for a while ๐Ÿ™‚ ] it would be nice .

                      [Edit]

                      Btw, i havent tried Multicharts but the mentioned above Nanotrader , and backtesting on this thing ran very fast even on real tick data, it also has build in sensitivity analysis to prevent curve fitting and also basic tools for very easy creation( even from my noobish point of view) of automatic or semi-automatic( even automatic tactics to trade "in the spread" when hitting the "buy button" ) tradebots.... But Multicharts and Nano are just to expensive for just playing around "on the markets" not even knowing if a certain success is even possible.

                      I have also read there is a bt tool for Mt4 called "Genetic builder" its supposed to exercise faster btยดs as the build in mt4 backtester but i dont know if this prog is any good .....

                      And no iam not selling any of the stuff ๐Ÿ™‚

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

                        "Formula" block makes very simple calculation and puts the result in a global variable which is automatically created. This global variable is the Result. When two Formula blocks uses the same Result, only one global variable will be created and those Formula blocks actually both work with the same variable, so there is no matter which one you will choose. But I think you have to check your Result names...

                        By the way I repaired Search in this forum. I found what was the problem.

                        Well, after I started fxDreema I stopped to try to build EAs. Then I decided that Forex is not for me, but I like to create new tools, so I'm happy with fxDreema even when I don't care about Forex and trading very much.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        Online Users

                        S
                        M
                        2
                        M
                        M
                        N
                        B
                        A
                        B

                        26
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors