Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

Guest forsearch

Indicator As OHLC or Candlesticks in Investor/RT

Recommended Posts

Guest forsearch

This may seem like an odd question, but I was wondering if one could easily display any given indicator as an OHLC bar or a candlestick in Investor/RT?

 

Simple example:

 

You can display, say CCI as a line or a histogram, typically in most programs. But say you wanted to display it as an OHLC bar instead. Is this doable?

 

Keep in mind that I'm thinking way outside of the box here, as most folks would not want this capability, but looking at your Volume Breakdown indicator, I figure the same functionality to display other indicators as OHLC (or candlesticks) might be available.

 

Or to make it even simpler:

 

Guess what I'm really asking is... what are the available options for "Draw As" for indicators available in I/RT? Does it include OHLC bar or candlestick as an option?

 

Thanks,

 

-fs

Share this post


Link to post
Share on other sites

Well, in order to draw OHLC bars, you have to have 4 values. The CCI indicator for instance only has one recorded value per bar. Internally, the high, low, and open of the CCI is not recorded. Now, since the open is essentially the previous value of CCI, it would be possible to draw CCI as an open/close bar. Now it is possibly to draw custom candlesticks using any 4 custom prices (custom indicators), but the high and low isn't accessible in this case. But here are a couple variations of CCI bars drawn with open/close candle bodies:

 

http://www.charthub.com/images/2008/07/14/CCI_Bars.png

 

CCI_Bars.png

Share this post


Link to post
Share on other sites
Guest forsearch

Chad,

 

Thanks for this. Would it be possible to pass through the value of an indicator using a token to create a custom indicator with OHLC or HLC values?

 

Keep in mind, I'm referring to the OHLC values that the indicator makes per bar, which may or may not coincide with the OHLC values of its input (e.g. Price).

 

Looking at a static final (close) value of an indicator after the fact gives no clue as to where it may have moved during the bar interval.

 

If an indicator is run on a tick-by-tick basis, is there any other way of capturing and displaying those other values (high, low and open) on a historical basis?

Share this post


Link to post
Share on other sites

fs, Chad - I might be completely wrong here, but if you plotted a very short-term chart (let's say 10 seconds, or even tick-by-tick as you suggest, fs) and report the CCI result for this very short-term chart (close only like you say Chad) into one of the "Variables" (V1, V2, etc...) and then plotted the "Variable" as an OHLC or candle under a longer timeframe chart (Chad, you have used the 5-minute in your post), would this work? I could try it but I am not proficient at manipulating the Variables. So just an idea which may or may not work, Chad?

Share this post


Link to post
Share on other sites

Actually, you could plot the CCI (or any other indicator) in OHLC bar or candle format using a custom instrument (and a V# variable). I'll create one of these and let it run for a few hours this morning, and then post it with details.

Share this post


Link to post
Share on other sites

OK, here is the CCI bars done as a custom instrument. I've setup a custom instrument/symbol, ES_CCI, which ticks every time the ES ticks, but ticks with a price of the current 5-min CCI value. In this way, not only can you plot the CCI as bars, but you can then apply any technical indicator to the CCI Bars. In this chart, I've added a 5 period MA to the CCI bars:

 

CCI_Bars_2.png

 

Another interesting side effect of this approach....even though it's plotting the 5-min CCI, you could plot the ES_CCI bars in any periodicity. For instance, here they are plotting on a 1-minute data. Notice the jumps they take every 5 minutes as the CCI moves to a new window of bars:

 

CCI_Bars__1min.png

Edited by LS_Chad

Share this post


Link to post
Share on other sites
Guest forsearch

Excellent!

 

Can you run this custom instrument on historical tick-by-tick data? Or must it be live data?

 

And if I did a replay with tick data, would it work?

Share this post


Link to post
Share on other sites
Excellent!

 

Can you run this custom instrument on historical tick-by-tick data? Or must it be live data?

 

And if I did a replay with tick data, would it work?

 

You can replay the tick data on this custom instrument, yes...on a chart of any timeframe. You could even plot an Market Profile chart of ES_CCI, or open a Time & Sales window on ES_CCI, etc.

 

The custom instrument will build tick by tick live while data is flowing, from the time it is created. I/RT is unable to build historical data from tick data due to the nature of the custom instrument. Custom instruments based on prices (OHLC) or volume of one or more instrument, can generate historical data from the tick data of the component or components however.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • Date: 23rd February 2024. Market Recap – Global Rally Pushing Valuations To Record Highs Across the US, Europe & Japan. Economic Indicators & Central Banks:   It was all about Nvidia. Nvidia got a $277 billion 1-day boost to its market capitalization yesterday – the biggest single-session increase in value ever!(the previous record was a $197 billion gain by Meta Platforms Inc.) Treasuries continued to lose ground, hurt by the surge in risk appetite with yields cheapening to the highest levels since late last year. The solid jobless claims report, which followed on the heels of the hawkish bent in the FOMC minutes, added to expectations the FOMC will leave rates in restrictive territory into June at least. A weaker than expected S&P Global services headline saw rates dip briefly. Japanese markets are closed for a public holiday. Fed Governor Christopher Waller: ”interest rate cuts should be delayed at least two more months, but indications of healthy demand and concerns over supplies could boost prices in the coming days.” Today: Germany IFO business climate & GDP, ECB publishes 1- and 3-Year inflation expectations survey. Market Trends:   Massive global rally in risk that saw the NASDAQ(USA100) jump 2.96% to 16,041.6, falling just short of the historic peak of 16,057 from November 2021. The S&P500 (USA500) climbed 2.1% to 5100, and the Dow (USA30) was up 1.18% to 39,069, both marking new records. Asian stock markets today continued to move higher, with the global rally pushing valuations to record highs across the US, Europe and Japan. The Nikkei jumped a further 2.2%. Financial Markets Performance:   The USDIndex was little changed at 103.80, below 104 for the first time since February 2. The Yen has performed the worst so far this year, experiencing a 6.3% decrease against the Dollar, as investors sought higher yields in other currencies, anticipating that Japan’s interest rates would remain close to zero for the foreseeable future. The Yen weakened against the Euro, Sterling, and other currencies this week, marking its 4th consecutive weekly decline against the US Dollar. USOil slipped to $77.85 per barrel after Fed speeches indicated delay to rate cuts. Gold dipped to $2021 per ounce. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi Market Analyst HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • $LAMR Lamar Advertising stock nice breakout, frpm Stocks To Watch , see https://stockconsultant.com/?LAMR
    • Elevate your dating game with the top site for hassle-free connections. Authentic Maidens Top-notch Сasual Dating Superlative Сasual Dating
    • Date: 22nd February 2024. In-Depth Analysis – AUDUSD – Investors Expect Fed to Cut First! AUDUSD – Economists Do Not Expect the RBA to Cut Until 2024’s Third Quarter.   The Aussie Dollar increases 0.67% and sees its strongest gain this week so far. The exchange rate trades at its highest price since February 2nd. The FOMC’s Meeting Minutes indicate the Federal Reserve is not yet willing to cut interest rates. FOMC Members are cautious about cutting rates too fast. Australia’s Wage Price Index for the latest quarter continues to read higher than where the RBA would like to see it. The Reserve Bank of Australia advise the regulator would not consider cutting interest rates until the second half of 2024. The Australian Economy weakens but not enough to pressure the RBA! Inflation remains moderately higher than the US! AUDUSD – Technical Analysis The AUDUSD is witnessing one of the lowest spreads amongst the major currency pairs and is seeing higher levels of volatility. The Australian Dollar has been rising against the USD for seven consecutive days, similar to the NZD and the Euro. However, the AUD is performing better than the GBP, JPY and CHF against the Dollar. However, investors should note that the bullish price movement is largely being driven by the weakness in the Dollar. The US Dollar Index has fallen 0.50% this week and trades at a 3-week low. The Australian Dollar on the other hand is witnessing mainly bullish price movements depending on the currency pair. The Australian Dollar is increasing against the GBP, Euro, Yen, and the CHF but is declining against the NZD. So here we can see there are no major conflicts between the two individual currencies. However, investors will need to continue monitoring the US Dollar Index and price condition of the AUD against other major currencies. The AUDUSD is trading above the 75-Bar Exponential Moving Average and above the “Neutral” level on the RSI as well as the Bollinger Bands. These three factors indicate a further bullish trend as the asset is yet to be read “overbought” on most oscillators. In addition to this, the asset has managed to break above the resistance level and the previous high, meaning the continuation of the traditional wave pattern. The only negative indication when evaluating technical analysis is the measurements of the previous 4 impulse waves. The average bullish wave size is 0.87% and the largest has been 0.92%. The current impulse wave reads 0.87%. Therefore, if the pattern is to continue the price may retrace soon, even if it is going to continue rising thereafter. However, this cannot be known for sure. AUDUSD – Fundamental Analysis In the Meeting Minutes, representatives stated more fear about the remaining risks of a premature decline in rates than about a persistent period of high interest rates. Against this background, markets are reconsidering the timing of a possible easing of the regulator’s position in May and June. According to the CME Groups FedWatch Tool, the likelihood of a May adjustment is currently anticipated at 30-35%. A strong possibility is considered anything above 70%. Next week’s Core PCE Price Index will be key for the Dollar as this will be the last inflation reading for the month and short-term future. If the PCE Price Index is also higher, this means all 5 inflation readings beat expectations. As a result, the Dollar may rise. However, the Dollar’s issue is that the market’s risk profile is high, and many expect the Fed to cut first. Therefore, the Dollar may continue to struggle unless other central banks become more dovish. Even though the Reserve Bank of Australia’s interest rate is lower than the Fed’s, analysts expect the Fed to cut first. Even though GDP Growth in Australia is weakening, the economy is still performing better than Europe and the UK. In addition to this, inflation is still above 4.00%, which is extremely high for the Aussie and the Unemployment Rate has risen to 4.1% which is still manageable according to analysts there. Therefore, most analysts believe the RBA will cut in the third quarter and after the Fed. Therefore, fundamental analysis is slightly in the Aussie’s favor here, but technical analysis will need to continue signalling a rise. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Michalis Efthymiou Market Analyst HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • $GOOG Alphabet stock back to 143.09 triple+ support area with bullish stats, $GOOGL , see https://stockconsultant.com/?GOOG
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.