Rotation candle

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #79059 quote
    Crillezz
    Participant
    Veteran

    Hello!
    Can anyone help me with an indicator of a rotation candle.
    I want a green upp arrow at the bottom of a candlestick when
    Price opens above the previus midpoint
    price is above the previus midpoint and
    Price is above the current midpoint.

    And a red arrow down at the top of a candlestick when
    Price opens belov the previus midpoint
    price is promov the previus midpoint and
    price is belov the current midpoint.

    And a dot on the center of each candlestick, too

    #79061 quote
    GraHal
    Participant
    Master

    Looks interesting and along the lines of an idea I had this morning, so I await developments with enthusiasm! 🙂

    Have I missed something?  What is the condition for the red dot??

    I can see it is at same level as the green dot in the previous candle … is that correct?

    Just trying to help whoever may be kind enough to code it for you! 🙂

    #79066 quote
    Crillezz
    Participant
    Veteran

    The red dot outside is not needed. It has no function.
    I do not have a working strategy for this indicator yet.
    If it goes, it would be useful if it says how many pips it was between the arrows. But only when they go from red to green and vice versa. When it flips.
    Hear is a link from which I got it. But probably will not use it like that.

    #79153 quote
    Nicolas
    Keymaster
    Master

    This simple code should do what needed:

    med = medianprice
    up = open>med[1] and close>med[1] and close>med
    dn = open<med[1] and close<med[1] and close<med
    atr = averagetruerange[10]
    
    if up then 
    drawarrowup(barindex,low-atr) coloured(0,255,0)
    endif
    if dn then
    drawarrowdown(barindex,high+atr) coloured(255,0,0)
    endif
    
    return
    GraHal, bolsatrilera and Crillezz thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Rotation candle


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Crillezz @crillezz Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by Nicolas
7 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/25/2018
Status: Active
Attachments: 3 files
Logo Logo
Loading...