Back

Find Current Day High and low on minute resolution

Hello,

I am new to algorithmic trading and relatively new to programming in general, so I apologize in advance if this is a dumb question.  My strategy will ultimately use the Minute Resolution, however I am trying to find a way to capture the Daily High and Low of a given currency, in this case EURUSD.  A similar thread on this topic instructed to use the following code to find the daily high and low when trading with minute resolution:

EURMondayH = Identity("EURUSD", Resolution.Daily, Field.High);

However, when I use this code my output result is 0.  Is there any other way to find the Daily High and Low?  Any advice would be greatly appreciated!

Thanks in advance!

Update Backtest








This thread talked about this problem 

https://www.quantconnect.com/forum/discussion/1707/getting-previous-day-close-when-im-subscribed-to-higher-resolution-data

If you are trying to get the value in Python, try EURMondayH.Current.Value. It would be better if you could attach the backtest so people could help with your algorithm

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed