placing limit orders, custom stoploss and exits
-
hi, went thru documentation. however some queries are there . please help me clear these.
- my strategy involves, buying above some specific price. from what i understand, the oprning price of next day is taken as entry price. but what i want is say take long position only above the high of the previous day. is it possible to do this?
- custom stoploss , trailing and target. how to add these? should we edit the exit.py file? or can we write it directly into strategy?
-
@rrgiyer Hi.
-
I'm not sure I understood your question correctly, but most likely the answer is no. You have access to today's data, and today the algorithm allocates portions of capital to be invested in assets tomorrow (entry at the opening price), but tomorrow's opening price is unknown today. You can't look into the future.
-
It's better to define your own functions directly within your strategy. If you need to use existing functions but want to modify them, just copy the code and change it inside your strategy. Do not modify the library's standard files — they will be reset to default values.
If you’ve noticed, there’s now an AI assistant in the documentation where you can ask similar questions: https://quantiacs.com/documentation/en/
The answers may vary slightly depending on whether you are logged in to the platform or not. I’ve found that it works quite well for me. -