RSI Automated Buy and Sell Request

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #115885 quote
    k3rex
    Participant
    Junior

    Hello,

    I would like to try a system that runs RSI-14, each buy should be made under 30 and sold over 70. This should be done on 1h graph. Can anyone help me create such a system?

    #115892 quote
    Vonasi
    Moderator
    Master

    You could do this easily with the strategy creation tool part of the platform but here goes:

    defparamcumulate orders = false
    
    myrsi = rsi[14]
    
    if myrsi < 30 then
    buy 1 contract at market
    endif
    
    if onmarket and myrsi > 70 then
    sell at market
    endif
    k3rex thanked this post
    #115902 quote
    k3rex
    Participant
    Junior

    Thank you mate.

    #115910 quote
    Vonasi
    Moderator
    Master

    No problem and welcome to the forums.

    Please don’t quote previous posts if they contain code in them unless you need to actually highlight something in the code as it just bloats the forums. Only quote previous posts if there are lots of people involved in the chat and you wish to aim your comments at a particular person or if you wish to highlight a particular part of someones comments. You can select just a small part of someones comment and then hit quote to just quote that section.

    I’ve deleted the quote from your previous post to tidy things up. 🙂

    Also don’t forget that you can always also just hit the ‘Thanks’ button if you want to thank someone.

    GraHal thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

RSI Automated Buy and Sell Request


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
k3rex @k3rex Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Vonasi
6 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/04/2020
Status: Active
Attachments: No files
Logo Logo
Loading...