OmniTrader Professional Forum - OmniScripts
Bull and Bear reversal OmniScript ...

^ Top
ap·pren·ticeGuru

Posts: 123

Joined: 10/22/2010
Location: Columbia, MD

User Profile
 
Subject : Bull and Bear reversal OmniScript ...
Posted : 2/8/2020 8:26 AM
Post #30806

Hello,

Please help define the below in OmniScript if possible:

(1). OmniScript for a bull reversal bars have more than one of the following:

• An open near or below the close of the prior bar and a close above the
open and above the prior bar's close
• A lower tail that is about one-third to one-half the height of the bar and a small or nonexistent upper tail
• Not much overlap with the prior bar or bars

(2) OmniScript for a bear reversal bars that have:

• An open near or above the close of the prior bar and a close below the
open and below the prior bar's close
• An upper tail that is about one-third to one-half the height of the bar
and a small or nonexistent lower tail
• Not much overlap with the prior bar or bars

Thanks a bunch.
^ Top
Jim Dean

Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Bull and Bear reversal OmniScript ...
Posted : 2/8/2020 8:49 AM
Post #30807 - In reply to #30806

Here is the bull reversal - see if you can modify it for the bear reversal …
I’ve used arbitrary ATR multiples to handle your descriptions that say “near”, “about”, “small” etc … season to taste)
I did NOT include logic for your “not much overlap” rule since it was way too vague. How many prior bars? What do you mean by overlap? How much is not much, especially in light of your #1 requirement to have *some* overlap.
Good luck!

C > O and C > C[1] and O < C[1] * ATR(14)/10 and math.min(O,C) - L >= (H - L)/3 and math.min(O,C) - L <= (H - L)/2 and H - math.max(O,C) < ATR(14)/10


https://www.omnitrader.com/currentclients/proforum/thread-view.asp?threadid=7796&posts=2