Looking for some other codes and reading some documentation I tried to assemble the code attached but I am not able to get what I aimed for:
1. I want these variables to be accessible to end users to define values as it can be done with other indicators when adding them to a chart
- ShowBullish (bool)
- ShowBearish (bool)
- ShowStrong (bool)
- ShowNeutral (bool)
- ShowWeak (bool)
- TextColor (brush)
- TextSize (int)
- TextOffset (int)
- TextFont (string)
2. Depending on the selection done for the boolean variables listed before, I pretend this code to print above the candles the text "SB", "NB" or "WB" (text characteristics defined by the "Text..." variables listed before) in case of:
- "SB" if the close of the candle is in the highest third of the candle range (for bulling candle) or in the lowest third of the candle range (for bearish candle)
- "NB" if the close of the candle is in the middle third of the candle range
- "WB" if the close of the candle is in the lowest third of the candle range (for bulling candle) or in the upper highest of the candle range(for bearish candle)
I appreciate any help in fixing these errors.
Thank you
Code: BarThirds.cs
Comment