RSI IBS in Variation – Problem with SL

Forums ProRealTime English forum ProOrder support RSI IBS in Variation – Problem with SL

  • This topic has 19 replies, 4 voices, and was last updated 6 years ago by avatarMarc.

Tagged: 

Viewing 15 posts - 1 through 15 (of 20 total)
  • #83867

    Hi together,
    pls find attached code.
    For some reasons I want to have a secure SL

    When system is long this SL should trigger when MA10 < MA200
    When system is short this SL should trigger when MA10 > MA200

    SL for Long is called SLL, SL for short is called SLS.

    I think there is an issue with this EA…can somebody confirm if this coding is correct or not and help me to amend it?

     

     

    #83876

    Add these lines (or more if you need) at the end of your code to check the value retained by those variables each bar, as from the screenshot. This will help you discover errors:

     

    #83885

    I’ve tried a few things but I can’t get your code to execute a Short trade.

    I’m sure there is a simple explanation. I’ll probably try again later! 🙂

    #83887

    Sorted … I get Short trades now … I was testing on too low / short a timeframe!

    #83939

    Thank you very much for your help…I think it works now…check out screenshot attached…not many trades, but they seem to be okay

     

    #83943

    Now I see it is not working as it should be… SL for long and short doesn’t work -.-

    Graph shows this

    #83951

    What you call the “SL” are coded at lines 34 and 49. The orders should be exited when Close is above or below the 10 periods moving average, why do you think it is not working?

    #83965

    I understand. I want to have sth like an emergency Stop: line 35 and 50.

    Do I have to implement this to snippets after line 29 and 44?

     

    #83966

    Backtest S&P500

    #83968

    Test: Nasdaq

    #83970

    Test Gold

    #83972

    TEST EURO-BUND

    #83974

    TEST EURUSD

     

    #83976

    TEST WTI

     

    #84039

    One additional question…

    How can I instert the feature to  type in externaml parameters?

    Pls see Screenshot below.

    When playcing RSI I am able to change oversold and overbought zones within the code…I tried to add this feature to IBS…but it doesn’t work without changin paraemters in all other chartwindows

     

Viewing 15 posts - 1 through 15 (of 20 total)

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