OmniTrader Forum - OmniTrader General Discussion
Bollinger Band Crossover modify query

^ Top
Rean

Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : Bollinger Band Crossover modify query
Posted : 6/11/2023 2:37 AM
Post #48825

Is there a way that the standard Bollinger Band Crossover system can be modified to fire long when price closes above the upper band, or short when price closes below the lower band. I have Omnitrader 2022 RT (not pro).
^ Top
Barry Cohen

Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: Bollinger Band Crossover modify query
Posted : 6/12/2023 5:12 PM
Post #48826 - In reply to #48825

These are the conditions you're wanting. You can either make an OL system that does this (would require Pro though & it's probably easy to make this) or you can add a filter in a strategy that only passes signals if it meets these conditions. There's a strategy template called "Filter by Indicator" you can use for that. It's a selection when you create a new strategy from scratch.

Long: C > BOL_UPPER(13,2)
Short: C < BOL_LOWER(13,2)

^ Top
Rean

Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : RE: Bollinger Band Crossover modify query
Posted : 6/13/2023 5:38 AM
Post #48827 - In reply to #48825

Thanks Barry, it works well.

I updated the filter slightly so that it only fires when actually crossing the bands.

Long
C[1] < BOL_UPPER(20,1) and C > BOL_UPPER(20,1)


Short
C[1] > BOL_LOWER(20,1) and C < BOL_LOWER(20,1)



https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16614&posts=3