Doug Hayman Posted December 17, 2020 Report Share Posted December 17, 2020 I'm assuming there is no way to create a user-defined indicator in MT. For example, I might want an indicator to graph the delta EMA value from one candle to the next. Alternatively, is there a function I can use in Paintbar logic that could display such a value maybe above a given candle at specified coordinate locations on my chart? Any other ideas on how I can get a graphic or numeric representation of a "user-defined" indicator like that? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 18, 2020 Report Share Posted December 18, 2020 SetYValue function in an advanced paintbar... Combined with specifying small shapes so they're more like dots on a line. Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted December 18, 2020 Author Report Share Posted December 18, 2020 Interesting Mike, but if I'm looking to display (actually plot) EMA delta values from one candle to the next in my Advanced PB-based chart, how can this display properly without a serious adjustment of chart scale? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 18, 2020 Report Share Posted December 18, 2020 Put the indicator into a separate chart? It may be an idea to show PB values as numbers on the chart. The problem is space. If the candles are all spaced out that's fine. If they are close together... Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted December 18, 2020 Author Report Share Posted December 18, 2020 Mike, understand the issue with decimals displaying and spacing on chart. Maybe I'm being dense here, but an intraday chart has to be associated with a symbol, which means that the chart price scaling is going to be relative to the chart symbol prices, right? Even in a separate chart, if I want to chart EMA deltas from candle-to-candle or maybe chart it as a 1-to-100 oscillator, those low values are not going to display properly in a chart via SetYValue that has chart symbol prices at high values (for example, @MESH21). I tried enabling chart option "Hide Primary Chart", which gets rid of the candles, but it still retains the price scaling for that symbol in the chart. Is there a way that I can have my SetYValues display in the scenario above in a different chart? Thanks again. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 18, 2020 Report Share Posted December 18, 2020 Doug, separate charts (top and bottom) have their own scales. 1 Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted December 18, 2020 Author Report Share Posted December 18, 2020 Dang Mike! I had no idea that Paintbars could appear BELOW the main chart. I just dragged to below chart (from above chart), and the scaling now works great! This is great, as effectively user-defined indicators and oscillators can easily be developed using SetYValue. Thank you! Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted December 18, 2020 Report Share Posted December 18, 2020 Learn something new every day This is a poor-man's custom indicator. I keep thinking of doing a full-fledged custom indicator editor, but the code for indicators is a bit complex. And simplifying it so users can do it - don't know. Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted December 18, 2020 Author Report Share Posted December 18, 2020 I think it's more than a poor-man's indicator, and see lots of value in this. In regard to doing an indicator editor, you'd need to weigh that against other items on your to-do list. May result in a lot of extra support too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.