Is it possible to build a hedging system in ProRealCode?

Forums ProRealTime English forum ProOrder support Is it possible to build a hedging system in ProRealCode?

Viewing 13 posts - 16 through 28 (of 28 total)
  • #152664

    Yeh I hope so, it’d be a cool feature to have.

    I know that we can force multiple open positions on a system, but not ones that are interrelated in terms of why they’re opening/closing. I.e. a new long position has to be opened at a higher stake (1.5x that of the opening stake size) and in the opposite direction (ad infinitum) until a net profitable scenario is formed and an exit signal let’s us exit.

    We’ll see. Always nice to start up a thread on here though to see people’s thoughts and feelings on various approaches. Great community.

    #152817

    As I said earlier in the topic, do a search for ‘sure fire hedging’, it is what the system is using as recovery system. No matter how you enter the market, if you don’t afford to exit in loss, and re-enter again to recover it (by averaging all orders opened prices), then it is a martingale, mathematically speaking.

    #152856

    I’ve seen someone on Ayondo (social trading) using a “Martingale” or averaging-down system for some years not without success. It was a long only system on FTSE that averaged down its entry prices by increasing position sizes until finally a profit was reached. As in all Martingale systems, the profit curve appeared almost like drawn with a ruler, interrupted by a few short and heavy drawdowns. This system would have had its final catastrophic failure in March 2020, when the markets went down abruptly due to the Corona crisis, however this was never realized because Ayondo went bankrupt before this event.

    #152866

    Yeh, so interestingly this system is both long and short. But also, it traded through the pandemic crash this year, and the resultant rapid bull market after it. And it crushed in both.

    There are 3 strategic differences with this strategy compared to all the others I’ve googled on the advice of everyone in this thread, but I’ve not found anything similar.

    1. is the that it doesn’t double stake sizes, it uses a 1.5x (which isn’t as heavy on margin crushing)
    2. it doesn’t use SLs, so it accumulates the positions both way, so even in a ranging market you just need to hold tight with your open positions until the market on the 5min charts starts to move out of it’s range. (the crucial part is only trading with microscopic starting stake, so if you end up with like 20 positions open you won’t get margin called.
    3. it sets up with 2 levels of the same entry stake. So let’s say you open a long position at £0.5. You’ll also have an order to go short for £0.5 say 100 pips beneath. This creates like a limbo zone for the price to range it before it decides which way it’s going, and then from there each order than opens at say 15 pip increments from each of those starting orders increases at 1.5x.

    As far as I can tell, the danger scenario (that all systems have, no system is perfect!) is when the market moves like the picture attached. In a continually widening range until you get margin choked. But it’s rare, and I’d probably be able to tolerate the occasional sharp drawdown to be honest, as I’d only be allocating say 25% of my overall portfolio towards this system anyway.

    #152889

    If the system has no SL, where do the realized losses come from ? At some point, there must be a mechanism to close bad positions.

    #152890

    Yeh I haven’t deconstructed how the EA takes profits yet. It seems to wait until the net profit on all open positions is in profit and the Stochastics gives an entry in the opposite direction. But it basically just closes all positions rather than having various order hitting SLs at different levels.

    #152892

    So, ultimately it keeps accumulating the losses from the “limbo zone”, until the total net position ends up in profit by chance ?

    #152896

    Yeh pretty much! It’ll range about, and as soon as the markets make their mind up and move either way it’ll wait until the net p/l is in profit and there’s an exit signal and will close out all positions.

    #152910

    This system is also often called “recovery zone”, check that 😉

    #155229

    Hi Matt,

    I have also purchased Beastmode EA and have been using the past month. I don’t suppose you would be open to discuss our experience with it since there is such a lack of reviews online? Please whatsapp on ******** if possible to discuss the hedging function etc.  I’ll remove this comment by end of today, so hopefully you catch it.

    Kind regards,

    David

    #155237

    DLara – Please respect the forum rules:

    • Do not include personal information such as email addresses or telephone numbers in your posts.

     

    Your details have been deleted from your post. This rule is there to ensure that the forums comply with GDPR.

    #159105

    Recently, I thought a bit about how to realize such a system in Prorealtime, as holding short and long positions at the same time is not allowed in automatic trading. It could work this way, I think :

    Assumed, the first position is 1.0 contract long. The next position would be 1.2 contracts short, the following 1.4 contracts long, the next one 1.6 contracts short, and so on, and all of these cumulated, which would be called “hedging”. In Prorealtime, this is not possible directly.

    Instead, you could do it the following way : In the first step, you buy 1 contract long. When opening the 2nd position, you sellshort 0.2 contracts, so in total, you hold 0.2 contracts short (equivalent to holding 1 contract long and 1.2 contracts short). For the next position, you buy 1.2 contracts long (composed of 2.4 contracts long and 1.2 contracts short). In the next step, you sellshort 0.4 contracts, which is the new total position size and equivalent to holding 2.4 contracts long and 2.8 contracts short. And so on and on.

    The result should be entirely the same as adding up more and more positions, but with a lot of transaction fees (spread) saved.

     

    Of course, this does not mean that such a system using averaging down combined with “Martingale light” position sizing will make money, but at least technically, it should be possible even in Prorealtime.

    #159158

    As I have just seen on myfxbook.com, the original system cited in the first post of this thread has just had its inevitable big drawdown common to all systems using Martingale averaging down. This drawdown in January has eaten up all profits since June.

    Not only did it look to good to be true, it was, as reality has shown. It will not have been the last drawdown, even bigger ones will follow – the longer you wait. One of them will eat up all profits since the beginning, usually.

Viewing 13 posts - 16 through 28 (of 28 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login