Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    placing limit orders, custom stoploss and exits

    Support
    2
    2
    48
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rrgiyer last edited by

      hi, went thru documentation. however some queries are there . please help me clear these.

      1. 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?
      2. custom stoploss , trailing and target. how to add these? should we edit the exit.py file? or can we write it directly into strategy?
      V 1 Reply Last reply Reply Quote 0
      • V
        Vyacheslav_B @rrgiyer last edited by

        @rrgiyer Hi.

        1. 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.

        2. 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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors
        • Documentation
        • About
        • Career
        • My account
        • Privacy policy
        • Terms and Conditions
        • Cookies policy
        Home
        Copyright © 2014 - 2021 Quantiacs LLC.
        Powered by NodeBB | Contributors