Download Markay Latimer – Bear Trap Indicator

Discussion in 'Video courses, webinars, training material' started by kelieumang, 4 July 2023.

  1. gajicvn

    gajicvn New Member

    Joined:
    4 October 2021
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    I will try to change the language to English, thank you!
     
  2. gajicvn

    gajicvn New Member

    Joined:
    4 October 2021
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    I tried switching languages but it didn't work. My tradingview is error like this. Can you share your Bull Trap Tradingview Indicator code for me? Thank you !
     

    Attached Files:

    • 14.png
      14.png
      File size:
      123.8 KB
      Views:
      29
  3. gajicvn

    gajicvn New Member

    Joined:
    4 October 2021
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    This is the code I copied and pasted into tradingview.
     

    Attached Files:

    Maddy321 likes this.
  4. Yarvua

    Yarvua Well-Known Member

    Joined:
    6 April 2022
    Messages:
    1,468
    Likes Received:
    553
    Trophy Points:
    113
    Gender:
    Male
    Hi,

    Have you followed all the steps in the instructions?

    Here's the code I have in my tradingview.

    Code:
    //@version=5
    indicator("The Bear Bull Trap", overlay=true)
    
    //Step 1
    candle_size1 =input(4.0, title='Step 1 candle Size % Daily')
    candle_size2 =input(0.5, title='Step 1 candle Size % Intraday')
    candle_size = timeframe.isdaily? candle_size1 : candle_size2
    
    big_red_candle = close<open and (100 - (close/open)*100>=candle_size)
    big_green_candle = close>open and ( (close/open)*100 - 100 >=candle_size)
    
    //Retracement Range
    z = input.int(65,title='Inventory Retracement Percentage %', maxval=100)   
    hl = math.abs(high - low)
    Oc = math.abs(close - open)
    Max = math.max (close, open)
    min = math.min(close, open)
    
    top_wick = high - Max
    bot_wick = min-low
    
    long_retraced = top_wick/hl >= z/100
    short_retraced =bot_wick/hl >= z/100
    
    // Step 3
    x1 = input(2.0, title='Step 3 Breakout % Daily')
    x2 = input(0.25, title="Step 3 Breakout % Intraday")
    x = timeframe.isdaily? x1 : x2
    
    long2 = long_retraced and ta.barssince(big_red_candle )<=3
    short2 = short_retraced and ta.barssince(big_green_candle)<=3
    
    longo = high>ta.valuewhen(long2 , Max, 0) * (1+x/100) and ta.barssince(long2)<=3 and not long2
    shorto= low <ta.valuewhen(short2, min, 0) * (1-x/100) and ta.barssince(short2)<=3 and not short2
    long = longo and not longo[1]
    short = shorto and not shorto[1]
    
    // chart plot & alerts
    plotshape(long2, textcolor=color.lime, color=color.lime, style=shape.triangleup, text = '',  location=location.belowbar, offset=0, size=size.tiny)
    plotshape(short2, textcolor=color.red, color=color.red, style=shape.triangledown, text = '', location=location.abovebar, offset=0, size=size.tiny)
    alertcondition(long2 , title='Step 2 BUY Alert')
    alertcondition(short2 , title='Step 2 SELL Alert')
    
    bgcolor(long?color.new(color.green, 70):short?color.new(color.red, 70):na)
    plot(close)
    
     
  5. gajicvn

    gajicvn New Member

    Joined:
    4 October 2021
    Messages:
    5
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    I will try your code, thank you!
     
    Yarvua likes this.
  • Clubbingbuy is a convenient platform for collective purchase of information products! Our service successfully solves the main task of the project-we give the possibility of collective purchases for all popular books, audio and video tutorials, seminars, programs, scripts, databases, templates and themes. The purchase will be cheaper than the full cost several times. New knowledge will cost no more than a Cup of coffee. Get the maximum benefit for the minimum money!