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.
AVTParticipant
Senior
This is how you would do it
- define the condition for an inside bar (examples in candle recognition indicators)
- if the condition is true, then drawcandle (https://www.prorealcode.com/documentation/drawcandle/)
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
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.
I just realized that I should have posted my previous message in English how can I modify?
thank you
thank you nicolas and sorry I wanted to change my stupidity but we do not seem to
Ut5 and 2 minutes cannot be used together because 5 is not a multiple of 2.
ok so an indicator that works on ut 5 and one on ut 2 i will do with it.
thank you
Or is it possible to make it on ut 5mn and 150 secondes ? And ad a filtre for green or red candles.
Thanks
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.
ok Roberto with the mtf the updates of candles will be done every 5mn and 2mn or every second?
No, every 150 seconds.
The smallest TF sets the pace.
150-second TF is a whole, not 150 1-second candles.
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
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