Request help coding strategy with RSI 2

Forums ProRealTime English forum ProOrder support Request help coding strategy with RSI 2

Viewing 7 posts - 1 through 7 (of 7 total)
  • #40037

    Hey,

    I wonder if some one could help im trying to get MA 61 crossing 200 in bulltrend, and i also want in this bulltrend to have and RSI 2 that picks up a contract as it goes down to the value of 6 and sell the position when it hits the value of 95. The only thing i cant get to work is that i only want the RSI to react when the 61 have crossed over 200. So the RSI have to be depended of it self and also sync with the MA. So of when  MA have been taken out of profit or MA been crossing under, then i dont want RSI to take any more positions until MA 61 is crossing 200 again. Just then does the RSI have acces to buy again.

    Do i make sense?

     

    Thank you, hope som of you guys can help me.

    #40206

    So to be clear, you only want 1 trade in each bullish trend? Triggered by the RSI2 crosses under level 6?

    #40235

    Hey, want in bullish trend that 1 long position triggered with MA is crossing and i also want under this positions of MA that the RSI2 starts buying multiple of times every time it is under level 6 in this bullish trend. So i get 1 long position and maybe in i get 5-10 more trades depending of the value of rsi2.

    This is so far i have gotten and now the rsi buys all the time both in bullish and bear.

     

    #40237

    For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    Code is read from top to bottom and your line 19 is below the line 14, which has no sense, because you are testing something that still don’t exist at line 14 (b3 is nothing at that moment).

    I modified the code the way I understand your strategy :

    (not tested, please make your own tests and give feedback here).

    #40241

    Hey and thank you, yes i will use the “insert code prt” from here on.

    The code is still buying in bull and bear, i will add three pictures and trying to explain myself.

     

    The third picture i am trying to show you how i want it to buy. The circle should be the long position in this bull trend. Then i have put out som green arrows in the rsi that i want to buy in the “dips” but only this can be done when the ma is in bull.

     

    Thanks

    #40259

    OH SORRY, just change to code to this one instead:

    You should change the “6” level of the RSI, because it is not reaching this level in your example (I ran test myself).

    #40278

    Hey again, thank you very much sir. Now the code is exactly how i want it. Perfect! And i also understand now how to write other codes thanks to this. I will now backtest with som new and other values.

    I appreciate this very much.

    I will report back how its going.

     

     

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

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