3 candelestick pattern

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #234378 quote
    tonb
    Participant
    Junior

    I am looking for 3 candelstick patern as an indicator for scalping therfore no screener.

    Bear candele closes below the opening of candel 1.

    Bulle candele closes above te opening of candele 1.

    #234382 quote
    robertogozzi
    Moderator
    Master

    It’s a 2-candle pattern then?

    #234383 quote
    tonb
    Participant
    Junior

    it doesn’t save the attachment.

    #234387 quote
    tonb
    Participant
    Junior

    Bear candele closes below the opening of candel 1.

    Candele 1 is  an Up candele, candele 2 is an Up candele and then candele 3 closes below the opening of candel 1.=Bear

    Bulle candele closes above te opening of candele 1.

    Candele 1 is a down candele, candele 2 is down candele and then candele 3 close above te opening of candele 1.= Bull

    #234389 quote
    JS
    Participant
    Senior

    Hi Ton,

    You can try this one…

    If Close[2]>Open[2] and Close[1]>Open[1] and Close<Open[2] then
    Bear=1
    Bull=0
    ElsIf Close[2]<Open[2] and Close[1]<Open[1] and Close>Open[2] then
    Bear=0
    Bull=1
    EndIf
    
    Return Bull as "Bull" Coloured("Green"), Bear as "Bear" Coloured("Red")
    robertogozzi thanked this post
    #234390 quote
    tonb
    Participant
    Junior
    Thank jou, the formula is good, but I would like een signal if the conditions are met. Now i only get a signal when there is a trend reversal.
    #234391 quote
    JS
    Participant
    Senior
    This one is with “arrows” when the condition is true… (Load indicator on price)
    If Close[2]>Open[2] and Close[1]>Open[1] and Close<Open[2] then
    Bear=1
    Bull=0
    ElsIf Close[2]<Open[2] and Close[1]<Open[1] and Close>Open[2] then
    Bear=0
    Bull=1
    EndIf
    
    If Bull=1 and Bear[1]=1 then
    DrawArrowUP(BarIndex,Low)Coloured("Green")
    ElsIf Bear=1 and Bull[1]=1 then
    DrawArrowDown(BarIndex,High)Coloured("Red")
    EndIf
    
    Return //Bull as "Bull" Coloured("Green"), Bear as "Bear" Coloured("Red")
    tonb, Iván González and DeathMetal thanked this post
    #234428 quote
    MaoRai54
    Participant
    Master
    @ JS sorry but i don’t understand why you write this line:    If Bull=1 and Bear[1]=1 I think it’s not possible to have bull in the current bar and bear in the previous one.
    #234434 quote
    JS
    Participant
    Senior

    Hi @MaoRai54

    Look at the graph…

    #234993 quote
    KumoNoJuzza
    Participant
    New
    Hi, Thanks for the indicator.  I am trying to use convert it to a strategy. A position is open at the next candle to the one showing the buy/sell signal. I would like to open the position once the arrow is drawn. Any clue on how to do write it ? Thanks
    // 3 Candle Pattern
    
    //Strategy
    If Close[2]>Open[2] and Close[1]>Open[1] and Close<Open[2] then
    Bear=1
    Bull=0
    ElsIf Close[2]<Open[2] and Close[1]<Open[1] and Close>Open[2] then
    Bear=0
    Bull=1
    EndIf
    
    //Timeframe (1 mn)
    If Bull=1 and Bear[1]=1 then
    buy 0.5 contract at market
    //DrawArrowUP(BarIndex,Low)Coloured("Green")
    ElsIf Bear=1 and Bull[1]=1 then
    sellshort 0.5 contract at market
    //DrawArrowDown(BarIndex,High)Coloured("Red")
    EndIf
    #234995 quote
    JS
    Participant
    Senior

    Your strategy code is good, and the order can’t be executed faster than this…

    The “Close” of the last bar is decisive so the fastest execution is on the “Open” of the next bar…

    KumoNoJuzza thanked this post
    #234997 quote
    KumoNoJuzza
    Participant
    New
    Thanks JS. I also will try to switch timeframe.
    JS thanked this post
    #235031 quote
    KumoNoJuzza
    Participant
    New
    Building on the strategy, for each position, I want to set the stop loss at the open value of the previous candle as per the blue marks on the picture. I am sure there is an obvious way to code it but I cant get it right.  
    // 3 Candle Pattern
     
    //Strategy
    If Close[2]>Open[2] and Close[1]>Open[1] and Close<Open[2] then
    Bear=1
    Bull=0
    ElsIf Close[2]<Open[2] and Close[1]<Open[1] and Close>Open[2] then
    Bear=0
    Bull=1
    EndIf
    
    // Stop Loss Management
    If onmarket THEN
    set stop loss open[tradeindex[1]]
    ENDIF
     
    //Timeframe (1 mn)
    If Bull=1 and Bear[1]=1 then
    buy 0.5 contract at market
    //DrawArrowUP(BarIndex,Low)Coloured("Green")
    ElsIf Bear=1 and Bull[1]=1 then
    sellshort 0.5 contract at market
    //DrawArrowDown(BarIndex,High)Coloured("Red")
    EndIf
Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.

3 candelestick pattern


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
tonb @tonbijl Participant
Summary

This topic contains 12 replies,
has 5 voices, and was last updated by KumoNoJuzza
1 year, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/26/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...