Maribozu Indicator with Arrow and label

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196678 quote
    oyinloyea
    Participant
    Veteran

    I am trying to create a maribozu indicator with label . Please help Attached is my code. Thanks in advance

    DEFPARAM CalculateOnLastBars = 500
    Offset = 10 * pipsize
    Bearish = open > close
    Bullish = close > open
    bigmarubozu = abs(open-close)/range>=0.95 and range>=3*average[30](range)
    If bigmarubozu Then
    IF bullish then

    DRAWARROWUP(barindex,low – offset) coloured(0,255,0,255)
    EndIf
    Endif

    If bigmarubozu Then
    IF bearish then
    DRAWARROWDOWN(barindex,high + offset) coloured(255,0,0,255)
    EndIf
    Endif

    Return

    #196716 quote
    robertogozzi
    Moderator
    Master

    There you go:

    DEFPARAM CalculateOnLastBars = 500
    Offset = 10 * pipsize
    Bearish = open > close
    Bullish = close > open
    bigmarubozu = abs(open-close)/range>=0.95 and range>=3*average[30](range)
    If bigmarubozu Then
    IF bullish then
    DRAWARROWUP(barindex,low - offset) coloured(0,255,0,255)
    DrawText("Marubozu",barindex,low - offset*2) coloured(0,255,0,255)
    EndIf
    Endif
    If bigmarubozu Then
    IF bearish then
    DRAWARROWDOWN(barindex,high + offset) coloured(255,0,0,255)
    DrawText("Marubozu",barindex,low - offset*2) coloured(255,0,0,255)
    EndIf
    Endif
    Return
    denmar and oyinloyea thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Maribozu Indicator with Arrow and label


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
oyinloyea @oyinloyea Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/03/2022
Status: Active
Attachments: No files
Logo Logo
Loading...