RSI as stop loss

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #196013 quote
    mariamfimariamfi
    Participant
    New

    Hello

     

    can I use RSI to stop the trade

    for example if RSI hit 30 close the trade.

    Without waiting for the candle to close

    similar to stop loss

     

    Regards

    #196026 quote
    PeterStPeterSt
    Participant
    Master

    Normally not that I know of. But maybe @JS can make the “inverse RSI”, hence how the strength of the price has led to the RSI, and thus what the price needs to reach in the upcoming bar in order to meet your RSI request. Seems fun.

    #196030 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You have to use a low TF (down to 1 second) so that you can immediately close the trade as soon as RSI is hit:

    Timeframe(Daily,UpdateOnClose)
    IF MyLongConditions AND Not LongOnMarket THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    //
    Timeframe(Daily,default)
    MyRsi = RSI[14](close)
    //
    Timeframe(default)       //choose 1min or 1sec, ...
    IF LongOnMarket AND MyRsi <= 30 THEN
       SELL AT MARKET
    ENDIF
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

RSI as stop loss


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
mariamfi @mariamfi Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
4 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/24/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...