Open position on RSI crossing 50 only

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #224759 quote
    Fahad
    Participant
    New

    Hi ,

    • i work on RSI strategy, but there is issue i can’t find the slotion , i want it to open position  once RSI cross 50 only , but the system keep open postion once the RSI above 50 .

    Attached the indicators & the system .

    • secondly, can i let the system work only MES , and can`t be used for NQ or DAX  any others?   thanks
    IND.png IND.png sy.png sy.png
    #224763 quote
    robertogozzi
    Moderator
    Master

    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’.
    I changed it.
    Thanks 🙂

    Remove line 13 and replace line 17 with:

    RETURN c1
    #224764 quote
    GraHal
    Participant
    Master

    Posting the code makes it easier and quicker for us to help as we can copy your code and then amend, with code in .jpg we have to type it out and keep looking back at your code in the jpg.

    Try coding betwen If and Endif in your Indicator as below …

    If date < limitdate AND RSI[14](close) crosses over 50 Then
    Signal = 1
    ENDIF
    
    Return signal
    robertogozzi thanked this post
    #224765 quote
    Fahad
    Participant
    New

    Thank you , for the other question is that possible.

    Appreacte your support

    #224770 quote
    GraHal
    Participant
    Master

    secondly, can i let the system work only MES , and can`t be used for NQ or DAX  any others?   thanks

    We can run Algos on 1 Instrument only, so either MES, or NQ or DAX or any other single Intstrument.

    I don’t think we can specify an Instrument within the Algo code; maybe somebody will jump in and say otherwise??

    #224791 quote
    Fahad
    Participant
    New

    Yes , I want it to be only for 1 Instrument selected by me

    #224793 quote
    GraHal
    Participant
    Master

    So you are sorted then … just select the Instrument you want??

    #224819 quote
    Fahad
    Participant
    New

    No prother , What i want to give you a copy only work for a precise Instrument only  , i want the system will not work on other Instrument

    my question can i deforce the system to work only on a precise Instrument  ?

    #224823 quote
    GraHal
    Participant
    Master

    No you can’t force the system to work only on a precise Instrument.

    If the System is offered via MarketPlace then it may be possible?  Hopefully an existing MP vendor will confirm this or not?

    #224827 quote
    LucasBest
    Participant
    Average

    There is no specific instructions for the code to know wich instrument/asset is used, but as far as you know 1 or 2 (or more) accurates values of the asset in the past, maybe you can use them to let the system know if the asset/instrument is the good one (by comparing the values of the assets at those specific date to the ones you have put in the code)

    GraHal thanked this post
    #224829 quote
    PeterSt
    Participant
    Master

    Hi Lucas,

    This idea is very good – I used it for myself some times (make Strategy depended on Instrument) – but in practice (Market Place application assumed) I don’t see this as something easy to accomplish.

    Say that you have the rougher TimeFrame of 1 day, then this 1 day could be used to look back (with one command, not a loop – a loop would be a no-go). But say that this starts today (ES being at 4575 as of now), then in a year of time this would this work, if you have PreLoadBars set to a virtual year. But also, because you’d also need the smaller TF of e.g. 15 minutes, then this may not be achievable in the 10000 of PreLoadBars we have. I did not do the math, but my guts tell me “not”.

    If the System is adjusted regularly *and* reloaded by the customer, it might work. But if the customer forgets to do that, suddenly his System will be rejected. And of course by then this is now understood.

    For Fahad :

    // Determine whether system is ES.
    // E.g. ES = 1 has determined that ES is in order.
    
    If Not ES then
      Quit   // I suppose this will silently stop the System as if it was never started.
    Endif
    

     

    I must say, I always wonder how what you see below can be applied. So maybe the solution is in there somewhere ?
    And then indeed what GraHal says … maybe vendors on the Market Place know ? @Nicolas ?

    image_2023-12-04_154907251.png image_2023-12-04_154907251.png
    #224837 quote
    LucasBest
    Participant
    Average

    Hi Lucas,

    This idea is very good – I used it for myself some times (make Strategy depended on Instrument) – but in practice (Market Place application assumed) I don’t see this as something easy to accomplish.

    Hi Peter,

    Of course, this would require regular adjustment.

    But at the same time, a strategy that used with an asset that it has not been optimised for would give very poor/bad result and that is maybe the best argument for avoiding to do that…

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

Open position on RSI crossing 50 only


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fahad @doo23559 Participant
Summary

This topic contains 11 replies,
has 5 voices, and was last updated by LucasBest
2 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/03/2023
Status: Active
Attachments: 3 files
Logo Logo
Loading...