Pseudo triangle trading system 5 min using volume and volatity

Forums ProRealTime English forum ProOrder support Pseudo triangle trading system 5 min using volume and volatity

Tagged: 

Viewing 15 posts - 1 through 15 (of 23 total)
  • #48476

    Hello

    I found this system that could be basic and adptable to several instrument but I have difficulties to code it.

    This idea is to trade triangle pattern using volatity indicator and volume indicator. ( i know that it is difficult to detect trendline compression)

    During triangle , volatility and volumes are decreasing and a proper moving average is flat (according to the article in doc enclosed).

    Does someone has the idea how to code it? (specialy with decrease of volume and volatily)

    Volume decrease could be code with a decrease of the average of volume

    Volatily decrease could be code with a decrease of the average of volatily.

    If both are decreasing, a buy or sell stop order is generated at last low/high

    Triangle amplitude is equal to the highest(high)[x periods]-lowest(low)[x periods]

    Thanks

    #50636
    Leo

    Hi,

    I posted a method to find local maximums and minimums, maybe you can find a way to detects triangles based on that method

    https://www.prorealcode.com/topic/dobule-bottom-or-double-top

    Let us know if you get it

    #50644

    I made a triangle pattern detector in this topic if you find it useful: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/

    #50646

    Thanks I will try with wedge detector adding decrease as condition

    #50754

    Hello

    I modified your code of the screener to better understand it with some comments (you used a b c d for points and I use High1 High2 Low1 Low2).

    I am able to find compression lines with the screener

     

     

    and for and indicator, but I have a problem with drawline function which drawlines in the indicator window and not inside pricewindow

     

     

    #50757

    I should use the drawsegment instruction instead of drawline..

    #50796

    Better like this

     

    #50797

    Good! Do you have screenshots of your indicator in its current state?

    #50799

    Please find somescreenshots

    for daily , i look at 20 days volatilty and fractal cp=4

    for 5 minutes timeframe, I look at 300 bars volatily and fractal cp=10

     

    How can prt  draw directly in price window and not in indicator window?

    #50808

    How can prt  draw directly in price window and not in indicator window?

    Just add your indicator on price with the wrench icon on the left upper side of your price chart.

    #50970

    Thanks

    It is better like this

    I have to improve the logic by

    -filtering using stochastic oscillation which could give information on the period of fractal to control

    -control the angle of the triangle (more symetric triangle pattern),

    -preventing fake detection by measuring the time distance between Low1-Low2 and Hig1-High2

     

    I will try to use @juanj code from calculating diagonal trend line using trigonometry for trading of breakout of lines.

    Some picture of my manual trade on sugar that I am following, which is detected

    And other time frames

    2 users thanked author for this post.
    #51078

    Well done Yannick, great idea about stochastic oscillation, how many times overbought been met after an oversold and so on?

    #51144

    I improved the quality of the triangle signal with some extra logic condition 3 and 4

    The next question is how to generate stop orders on lines that are calculated at each bar and has to stay valid for1 bar and is modified at each new bar , I need help.

    In this case x=0 current bar?

     

     

     

    #51287

    Pending orders are only valid during 1 bar in any case, they expired at each new Close. So each time the code is read, the previous STOP order has already been deleted automatically by the broker.

    #52442

    Thanks I modified the buying and sellingshort logic.

    I still have to

    -calculate better the buystop and sellstop limite with TP and SL

    -improving time limitation on the trade regarding

    -improve triangle detection

    Plenty of brain work

     

Viewing 15 posts - 1 through 15 (of 23 total)

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