Stop Losses and Target Profit

Forums ProRealTime English forum ProOrder support Stop Losses and Target Profit

Viewing 6 posts - 1 through 6 (of 6 total)
  • #129907

    Hi there, I don’t really understand the difference in these pieces of code, but I get different results when I’m backtesting. The Profit Target should be  sell at market if the closing price is >3 X ADR and Stop Lossshould be sell at market if the closing price is <1.5 ADR. Can anybody help me to understand the difference between these lines of code? Also, I wonder what is the default selling mode of “SET STOP LOSS” and “SET TARGET PROFIT”? Is it MARKET, LIMIT, or STOP? // Target

    VERSUS

      // Stop Loss

    VERSUS

    Many thanks in advance for your advice Frank  

    #129911

    Frank – Welcome to the forums…. but I’m guessing you didn’t bother to read the forum rules before submitting your first post.

    There are some simple rules that everyone using the forums is expected to follow. Your post has broken one or more of these rules.

    The forum rules are as follows. I have highlighted in bold the rule/rules that you have not followed:

    Post your topic in the correct forum.

    ProRealTime Platform Support          only platform related issues.
    ProOrder                                                only strategy topics.
    ProBuilder                                              only indicator topics.
    ProScreener                                           only screener topics
    General Discussion                               any other topics.
    Welcome New Members                      for new forum members to introduce themselves.

    Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
    Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
    Be careful when quoting others in your posts. Only use the quote option when you need to highlight a particular bit of text that you are referring to or to highlight that you are replying to a particular member if there are several involved in a conversation. Do not include large amounts of code in your quotes. Just highlight the text you want to quote and then click on ‘Quote’.
    Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’.
    Do not include personal information such as email addresses or telephone numbers in your posts. If you would like to contact another forum member directly outside of the forums then contact the forums administrator via ‘Contact Us’ and they will pass your details on to the member that you wish to contact.
    Always be polite and courteous to others.
    Have fun.

    I have edited your post where required. Please ensure that your future posts meet these few simple forum rules. 🙂

    1 user thanked author for this post.
    #129913

    SELL AT MARKET simply sells at the opening price of the next candle. So if your exit conditions are met then that is what happens.

    You are using SET TARGET and SET STOP completely wrong. When using SET TARGET and SET STOP you are setting a distance from the trades opening price so they should be followed by a number and not a condition. If price moves this distance inter-candle then the trade will be closed.

    1 user thanked author for this post.
    #129914

    Hi Vonasi,

    My apologies. I realized what I did, and tried to edit the post, but apparently once you submit it there is no way to edit it. Thank you very much for your feedback, It won’t happen again.

    Frank

     

    #129918

    You have 5 minutes to edit your post.

    I also now notice that you managed to also post in the wrong forum. I’ll move it to the correct forum but please try to follow the few simple rules with any future posts.

    1 user thanked author for this post.
    #130008

    Hi Vonasi,

    Thanks. Again, sorry about that. Now I know.

     

     

     

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login