I have no knowledge of Csharp. I have no knowledge of Quantconnect. I absolutely avoided look ahead bias, I use no indicators except 1h heikin high. I didnt even implement the part that should take the profits and my hacked together algo is in the top 1% of the community. Call me an idiot but it feels good to say it :D
So, enough of this superficial childishness.
What I dont understand is how you set TakeProfit for specific orders. If I understand correctly you just open another opposite order in the other direction, and that is fine.
But say I have 10 filled orders and relative filled tickets 1 -2 -3- 4 -5 -6 -7- 8- 9- 10.
A - How do I close, say, EXACTLY filled ticket 2, 3 and 9 once market hits a specified price?
B - I use Oanda, how can I simply have Oanda servers recognize a takeprofit and have it tied to a SPECIFIC TICKET?
C - if that isnt possible, would it be practical as a work-around, to use tags to close these orders once price is hit?
Thanks for the patience and attention.
Luca
Luca Napo
Wow...i just put initial capital to a ridiculously low amount of 10 dollars and not only it didnt crash, but it's number 1 algo. I didnt expect that...
Michael Manus
1) do you use c#? even if not documentation is a good start and than this link maybe helps:
www.quantconnect.com/forum/discussion/1700/support-for-one-cancels-the-other-order-oco
you have to work with the orderevent
Michael Manus
btw in the link above he is using tags for his orders but QC sets defaults i think anyway....check it out
Luca Napo
Thanks Michael, I do (try to) use C# and I will look into that code to see if I can make sense and use of it.
Luca Napo
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!