Maribozu Indicator with Arrow and label

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196678 quote
    oyinloyeaoyinloyea
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
4 years, 2 months ago.

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