Download MetaTrader 5
To add comments, please log in or register
Enable MQL5 Storage to store your source codes. It is free!
Odd Lotter
11
Odd Lotter 2013.12.14 17:55 

Good day,

Does anybody know how to color a candle based on certain code criteria. In Tradestation the code I use is: Range > (AvgTrueRange(23) * 1.8)

Therefore, what is is doing is, if the range of the current candle is greater than the average true range of the past 23 candles by 1.8 times, make the candle pink (for example).

Thanks in advance.

Brett

whroeder1
13596
whroeder1 2013.12.14 18:16  
Lots of people do. Did you RTFM? Did you write an indicator using histograms? You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2013.12.14 18:33  
theoddlotter:

Good day,

Does anybody know how to color a candle based on certain code criteria. In Tradestation the code I use is: Range > (AvgTrueRange(23) * 1.8)

Therefore, what is is doing is, if the range of the current candle is greater than the average true range of the past 23 candles by 1.8 times, make the candle pink (for example).

You can't make the candle pink, you can paint over the top using Indicator buffers and a histogram or using Objects
Odd Lotter
11
Odd Lotter 2013.12.14 18:42  
RaptorUK:
You can't make the candle pink, you can paint over the top using Indicator buffers and a histogram or using Objects


That sounds good, making it pink is just a way to highlight it. Any sort of highlighting method would do. Do you know how to implement Indicator buffers a histogram or Objects with that code I mentioned earlier?
Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2013.12.14 19:29  
theoddlotter:

That sounds good, making it pink is just a way to highlight it. Any sort of highlighting method would do. Do you know how to implement Indicator buffers a histogram or Objects with that code I mentioned earlier?

Yes I do

/
To add comments, please log in or register