Hello,
I am kind of new here and I need kind of an advice from you. For me this is kind of a more complex problem.
I would like to make an algorithm based on macd indicator and signal line. Lets say I will trade EURUSD.
The strategy would be that if the macd crosses signal line from beneath I predict that EUR would get stronger against USD and so I buy EUR and the when I make lets say 0.5% I will sell it. On the other hand when macd crosses signal line from above I predict that USD is going to be stronger against EUR and so I will buy USD as it is going to get stronger and then again sell it with some profit.
Of course this is only the idea, but I somehow can not imply the buying thing for both. Because for stocks it is just buying and selling but in forex, you can buy either USD or EUR and then sell them.
Sorry if the explanation is not straight forward, I apologise and I would be really glad if you would give me some idea or post a bit of code that would solve this problem.
Thank you
jjk
JP B
Jjk
JP B
Jared Broad
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.
Jjk
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!