Inside Bars

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #62215 quote
    brendab180
    Participant
    New

    I am new to pro real time but was wandering if it is possible to have an indicator that could color inside bars, lets say like yellow or blue, versus regular candle colors of red and green.  I have looked through the forum and library and not seeing anything like that.  Is this possible?  Appreciate any help offered.

    #62218 quote
    AVT
    Participant
    Senior

    This is how you would do it

    1.  define the condition for an inside bar (examples in candle recognition indicators)
    2. if the condition is true, then drawcandle (https://www.prorealcode.com/documentation/drawcandle/)
    #62285 quote
    Nicolas
    Keymaster
    Master

    This little code snippet draw candlesticks in different colors according to the price direction.

    //inside bar recognition 
    c = high<high[1] and low>low[1]
    
    if c then 
    if open>close then 
    drawcandle(open,high,low,close) coloured(0,0,255)
    else
    drawcandle(open,high,low,close) coloured(255,255,0)
    endif
    endif
    
    return 
    
    inside-bar-pattern-indicator.png inside-bar-pattern-indicator.png
    #148139 quote
    gregoire
    Participant
    Senior

    good evening nicolas I am very interested in the Inside despite the simplicity and appearance it remains quite complicated for me because I think I forgot the base, reassured me we must start from the last candle on the right and go to the left to create our conditions? I try to create an indic in mtf on ut5 and 2 minutes which is based on three candles, 2 approximately the same size and a doji is between it, I would like to receive a signal on the close of the 3rd candle on the given cs above on a graph in ticks, (I am in 10.3 moreover how one does to have access to the 11 his could be useful). I particularly like the shape of your signal nicolas because it attracts the eye on the change of color and as I only have one eye it will help me greatly lol … attached screenshot of what I am trying to do … thank you for your help and participation.

    inside-achat.png inside-achat.png inside-vente.jpg inside-vente.jpg
    #148322 quote
    gregoire
    Participant
    Senior

    I just realized that I should have posted my previous message in English how can I modify?
    thank you

    #148361 quote
    robertogozzi
    Moderator
    Master

    I translated it.

    #148362 quote
    gregoire
    Participant
    Senior

    thank you nicolas and sorry I wanted to change my stupidity but we do not seem to

    #148364 quote
    robertogozzi
    Moderator
    Master

    Ut5 and 2 minutes cannot be used together because 5 is not a multiple of 2.

    #148366 quote
    gregoire
    Participant
    Senior

    ok so an indicator that works on ut 5 and one on ut 2 i will do with it.
    thank you

    #148413 quote
    gregoire
    Participant
    Senior

    Or is it possible to make it on ut 5mn and 150 secondes ? And ad a filtre for green or red candles.

    Thanks

    #148415 quote
    robertogozzi
    Moderator
    Master

    Yes, 5 minutes is 300 seconds, so it’s 1/2 of 5 minutes, thus 5 minute is a multiple of 150.

    In case that is not allowed you can use  a 300-second TF instead of 5 minutes.

    #148417 quote
    gregoire
    Participant
    Senior

    ok Roberto with the mtf the updates of candles will be done every 5mn and 2mn or every second?

    #148423 quote
    robertogozzi
    Moderator
    Master
    No, every 150 seconds. The smallest TF sets the pace. 150-second TF is a whole, not 150 1-second candles.
    #148440 quote
    gregoire
    Participant
    Senior

    ok great so if I want to anticipate my signal by one second I have to go to 149 and it is displayed if I understand correctly? I found an explanation from Nicolas on this subject I will try to test these conditions on the other hand I am in v10.3 so I have to go to v 11 for this to work?

    thanks robrerto

    #148721 quote
    gregoire
    Participant
    Senior

    good evening Nicolas Would you have a suggestion for my indicator below attached image, I try to locate the means (15.17pips) and large stretch (20a30pips), in this stretch there must be 2 candles of the same size or which approximately resemble (the wicks can be different but not the body) and in the middle of these 2 candles there is a doji. thank you

    inside-vente-1.jpg inside-vente-1.jpg inside-achat-1.png inside-achat-1.png
Viewing 15 posts - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.

Inside Bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
brendab180 @brendab180 Participant
Summary

This topic contains 19 replies,
has 5 voices, and was last updated by gregoire
5 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/10/2018
Status: Active
Attachments: 6 files
Logo Logo
Loading...