Scalping strategy to be improved – Any help is welcome

Forums ProRealTime English forum ProOrder support Scalping strategy to be improved – Any help is welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • #219363

    Hi,

    I am trying to automate a scalping strategy I have come across. I did not publish it in the strategy section since it is clearly not profitable (yet :p )

    Any help is welcome as I would be happy to work together to make this strategy profitable.

    The initial strategy being:

    Setup: is for price to move above the lower or lower Bollinger Bands, RSI raise above the 70 line or below the 30 line and Stochastic raise above the 80 line or below the 20 line at the same time.

    Long Entry: price to move below the upper Bollinger Bands( deviation 2 and 20 period), RSI (7 period ) raise above the 30 line and Stochastic > 80 at the same time.

    Short Entry: price to move above the upper Bollinger Bands( deviation 2 and 20 period), RSI (7 period ) raise below the 70 line and Stochastic < 20 at the same time.

    Exit: Use Trailing Stop.

    As you can see, when backtesting most trades are winning but the few losses are too big. I am running out of ideas to optimize it and to mitigate losses.  The code is

     

     

     

     

     

    #219372
    Wim

    Hi K.,

    Some remarks to get the going better. First your current strategy is not taking any shorts! The command for going short in PRT is SELLSHORT. In line 23 you hope that SELL will do the trick, but no. SELL is for closing a BUY,  SELLSHORT is for selling, to be closed later by EXITSHORT.
    Next little problem: High[Close] in line 22 and Low[Close] in line 26 do something, but most likely not what you want. High[AnyNumber] gives the high of the candle AnyNumber back in time. With the CAC around 7200 this will give you the High and Low of about 7200 minutes ago. If you replace High[Close] and Low[Close] both by Close, you will get some results. If you drop the long trades and only keep the short trades you might even win some money with this strategy. In my experience lots of scalping strategies perform better as either long only or short only robot.
    And then there are the long and short conditions in the IF . . .  THEN in lines 22 and 26. The logic programmed with these conditions doesn’t correspond to the text above the code in which you explain the strategy. I leave that up to you to resolve or improve this part. Hope this will help a little, good luck.

    #219373
    JS

    Oops, crossing comments…

    Here are some notes about your system…

    The system only opens long positions because you use Sell instead of SellShort…

    High[Close] and Low[Close] is not possible…

    The input in your system does not match the description…

    #219432

    Thanks guys for your feedbacks. I’ll work on it.

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

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