Bollinger Bounce Strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22527 quote
    StantonRStantonR
    Participant
    Senior

    Hi All

    I have been working on a strategy that I got from a Forex website.

    I have tested it out and seems to be working pretty well. The problem I am finding with it that I am struggling to define a good exit strategy. Sometime you would like to let it run to maximize profits.

    Strategy
    EURUSD mini
    Initial Capital $100
    15 Min timeframe

    Look for Tweezer bottom or tweezer tops

    Long Entry
    Tweezer Bottom
    Low< BolingerDown
    bullindicator = OPEN[1] > CLOSE [1] AND OPEN < CLOSE

    Short Entry
    Tweezer Top
    High > BollingerUp
    bearindicator = OPEN[1] < CLOSE [1] AND OPEN > CLOSE

    Results so far have been pretty good from 25 – 10000 ticks.

    Like I said I am trying to work on a good exit strategy to maximize profits currently I am using the EMA 20 do define the exit but sometimes it exits too early.

    Here is the code any help will be apprecitated

    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    DEFPARAM preloadbars = 0
    
    
    ema20 = ExponentialAverage[20](close)
    //ema8 = ExponentialAverage[20](close)
    // Conditions to enter long positions
    tweezerTop = ABS(High -(High[1]))<= High * 0.0075
    tweezerBottom = ABS(Low -(Low[1]))<= Low * 0.0075
    
    bullindicator = OPEN[1] > CLOSE [1] AND OPEN < CLOSE
    bearindicator = OPEN[1] < CLOSE [1] AND OPEN > CLOSE
    Boll = 20
    
    Boldown = BollingerDown[Boll](close)
    Bolup = BollingerUp[Boll](close)
    
    
    BolliLong = (low < Boldown) and tweezerBottom and bullindicator
    Bolishort = (high > Bolup) and tweezerTop and bearindicator
    
    IF NOT LongOnMarket AND BolliLong THEN
    BUY 1 CONTRACTS AT MARKET
    ENDIF
    
    LongExit = high < ema20
    
    // Conditions to exit long positions
    If LongOnMarket AND LongExit THEN
    SELL AT MARKET
    ENDIF
    
    // Conditions to enter short positions
    IF NOT ShortOnMarket and Bolishort THEN
    SELLSHORT 1 CONTRACTS AT MARKET
    ENDIF
    
    ShortExit = low > ema20
    // Conditions to exit short positions
    IF ShortOnMarket AND ShortExit THEN
    EXITSHORT AT MARKET
    ENDIF
    
    SET STOP PLOSS 20
    #22544 quote
    NicolasNicolas
    Keymaster
    Legend

    There are no easy ways to exit properly with the best profit, but there are for sure many many ways to try šŸ™‚

    You can try to use MAE/MFE study to see how much money trades can do (or not) and find an edge between the 2 values.

    Trailing stop, breakeven or exit after X bars from first trade (Pathfinder’s style as far as I know..),Ā  time schedules like many Open Range Breakout strategies you’ll find on the website, ..

Viewing 2 posts - 1 through 2 (of 2 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

Bollinger Bounce Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
StantonR @stantonr Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/26/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...