|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
Is there a way to change an indicator from a line to columns or histogram?
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
To add to my post. I have created a quick indictor (I have OT2020 RT) which plots on my chart. I have figured out that the indicators code is in a text file in OT2020\VBA\QuickIndicators. I've also figured out that "BaseLevel" is used in histograms and have applied the syntax in the text file for the quick indicator. It makes no difference, the indicator still displays as a line.
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Plothist(“label”, value, baseline, color, width)
If it looks like a line then probably your value is fixed, equal to baseline.
Post your code and I’ll take a look.
You need OT Pro for this. I dont think quick indicators have a histogram plot option.
[Edited by Jim Dean on 3/13/2021 2:58 PM]
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
Thanks Jim, appreciate it.
#Indicator
Dim fValue As Single
fValue = RSI(8)-50 * 1.5
Plothisto("Value", fValue,1,green,5)
Return fValue
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Not at my PC but my guess is that you meant this:
fValue = ( RSI(8)-50 ) * 1.5
Plothist(“value”, fvalue, 0, green, 1)
… my iPhone apparently added an “o” earlier.
Precedence of operators is important in coding. * & / happen before + & -
[Edited by Jim Dean on 3/13/2021 3:00 PM]
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
Still the same. Looks like it's not possible with the QuickIndicator.
Thanks for helping anyway :-)
|
|
Rean
 Veteran
 Posts: 105
Joined: 8/30/2013
Location: Johannesburg, South Africa
User Profile |
Hold your horses Houston, I was too quick in responding ... it works. Thanks Jim
|