Trading Strategy ADX/ADM

Forums ProRealTime English forum ProOrder support Trading Strategy ADX/ADM

Viewing 8 posts - 1 through 8 (of 8 total)
  • #25732

    Hello everybody,

    i think can be beautiful to create an automatization of ADX/ADM trading from the system by xinian. His system is very polular on italian finance forum. And he have a blog xinian.altervista.org.

    His system can be applied on a lot of index and commodities and have a very good return for example DAX 26% annually and a max DD of 6%. Look the attachment.

    I post his indication for his strategy:

     

    The TS ADX / ADM

    The ADX or Average Directional Index is an excellent medium-term indicator, however, It indicates only the strength of the trend and not its direction.
    The ADX value can be between 0 and 100. Typically, a trend characterized by a ADX below 20 is considered weak, while above 25 is considered strong.
    Much more useful indicators + DI (Positive Directional Indicator) and -DI (Negative Directional Indicator), considering their average to 14 days: + DI14 -DI14 in green and red.
    Their intersections determinate the direction of the trend.
    + DI14> -DI14 FlatZone + = LONG
    + DI14 <-DI14-Flatzone = SHORT
    FLAT in -Flatzone + Flatzone crossover band
    the Flatzone was -10% + 10% in older versions, now it is also calculated on the basis of periodic backtest
    ADM or Average Daily Movement is an indicator based on the Intraday volatility
    They are given daily 2 entry (Long or Short) and 3 Take Profit (Long and Short)

    Operationally:
    you enter long / short if the hourly closing (at 10, at 11, etc.) the index value is above / below the Entry long / short daily then
    if it does not arrive within the TP xx closure:
    -if we are in trend (see ADX) you go over and the next day closes if it enters the reverse signal
    -if we controtrend (ADX contrary) closes in foreclosure

    for example…
    the signal I enter long with 3 positions (3 contracts, etc …)
    the 1st pos goes to take profit on the TP1 (at bat)
    the 2nd on TP2 (at bat) once made the TP1 (hourly candle) gets up the stop loss sull’entry
    the 3rd on TP3 (at bat) once made the TP2 (hourly candle) gets up the stop loss on TP1
    – If ADX is FLAT or LONG, if he has not reached a target moves into the position over … ..
    the day after reaching the TP1 will sell all positions and expect the new signals, but if it does not reach the former tp1 but enters the entry contrary closes everything and it’s reversal.
    – If ADX is better to close it SHORT day

    Calculation of intraday levels
    ADM is the average of N-days of daily volatility (Max-Min), average days in N …
    I now calculating periodically according to the backtest and you find it in the upper left in the graph, in early versions of the TS I used the value of 30 days, which is good enough
    , Others use other values ​​..
    the input levels are calculated in this way
    The entry levels are calculated this way:
    the standard theory says to use a break-out level = 0.382 (Price Break), lately I’m calculating each day based on volatility
    (Closed on previous + Price Break * ADM Ndays) gives us the Entry Long
    (Closing the previous day – Price Break * ADM Ndays) gives us the Entry Short
    DayC = previous closing day
    C = current price
    Long Entry C => ((DayC) + ((Price Break) * (ADM Ndays)));
    Entry Short = C <((DayC) – ((* Price Break (ADM Ndays)));
    I noticed, however, when volatility increases the price break place to 0.382 generate several false signals
    Therefore, since version 3.0 I’m experiencing this formula …
    Price Break = (0.382 + 0.382 * ((10 days ADM-ADM Ndays) / ADM Ndays))
    The targets are determined as … instead.
    Target 1 = Long (12:45 * ADM) + Entry Long;
    Target 2 Long = (0.95 * ADM) + Entry Long;
    Target 3 Long = (1.95 * ADM) + Entry Long;
    Target 1 = Entry Short Short- (12:45 * ADM);
    Target = Entry 2 Short Short- (0.95 * ADM);
    Target = 3 Short Entry Short- (1.95 * ADM);

     

    This is the ADM code for the indicator 1h timeframe:

    There is also someone that tried without success to code the strategy here:

    Qui sotto il codice PRT per l’ADM daily:

    ***********************************

    **********************

    QUI SOTTO INVECE IL CODICE DEL SISTEMA DI TRADING:

    *********************

     

    *********************

    I’m not a good programmer but maybe someone can find this information interesting and can process a better system. And with the automatic trading system active it will be great to optimize it with a good money management or a seasonal optimization.

    #25741

    Hi Alex, just out of interest (for me) and to try and keep Nicolas in good health … could you not see the ‘Insert PRT Code’ button by any chance at all?  Often I can’t see it either.

    I use Firefox and I have found by going Tools, Options, Privacy, Clear Recent History then I need only to tick ‘Site Preferences’ then Clear Now and refresh the PRC Site screen and I see the Insert PRC Code again. Takes me a few seconds but saves Nicolas and the Moderators several minutes and lots of frustration.

    Just a few thoughts anyway, but I often wonder if fellow members can’t see the Insert PRt Code button also??

    Cheers
    GraHal

    1 user thanked author for this post.
    #25745

    AleX post modified, thanks GraHal, I need you as a moderator! to “keep me in good health”! 🙂 (seriously)..

     

    #25798

    Thanks Nicolas (and sorry for the extra-work),

    I found the problem to replicate the original system with this code, the person who made the system code didn’t put the Flatzone condition into the system and didn’t use ADX for stay or exit position as Xinian recommended. And no optimization of various part of the code.

    I will try to create the basics code for this system in the next days as the initial indications.

    #25807

    AleX, please keep this topic alive with beta versioning and/or questions if needed. We’ll try to help you the most! 🙂 Thanks.

    #25859

    Here, the code of the original xin idea. With the incorporated ADM indicator.

    • Condition entry with 3 position= cross over entry ADMLong
    • Exit 1 position at TargetPprofitLong1, 1 Position TPL2, 1 position TPL3
    • Stop loss at start ShortProfit1, after TP1 moved to EntryLong, after TP2 moved to TP1
    • Filter: DI+ DI- distance min 66%,
    • Entry level calc: Pricebreak formula
    • Multiday filter if at the end of the day we are on market, with ADX condition: if ADX>25 stay on market else exit

    The original Xin strategy have on dax the double profit and the half DD but is optimized time by time, i don’t know with which frequency.

    Maybe can be useful for someone have this code.

    Comment or suggestion?

     

    #26493

    Thanks Alex, even if the strategy seems to perform well in backtests, it is still not possible to perform partial close with ProOrder 🙁 So it can’t be traded live I’m sorry ..

    1 user thanked author for this post.
    #31983

    From what I understood the flatzone is not a costant value but changes with backtests. It would be interesting knowing how is it calculated.

     

Viewing 8 posts - 1 through 8 (of 8 total)

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