OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Matthew Greenslet

Idol
2000252525
Posts: 2077

Joined: 2/27/2006

User Profile
 
Subject : RE: Help on Olang - System
Posted : 8/26/2010 12:26 PM
Post #16892 - In reply to #16891

In your first post you state

Originally written by Duxx on 8/25/2010 10:31 PM
Then, I want to fire a long if the Close is above the high of the lowest low captured...


So in the code I provided you can see that I always check the current close against the High of the bar that made the lowest low bar using the code...

C > H[nBarsSincePattern + 1]


However now you mention that you want the C to be greater than the Low value of the lowest low bar.

Originally written by Duxx on 8/26/2010 11:55 AM
But I would like to trigger the above signal, when the close of current bar is higher than the lowest low.


In which case you can just change

C > H[nBarsSincePattern + 1]

to...

C > L[nBarsSincePattern + 1]

However using the low does not make a lot of sense since if your pattern has formed the close of the last bar in the pattern will always be greater than the L of the prior bar (your pattern is formed by a lower low). So a signal will fire on every green bar (C > O) after your pattern.
Deleting message 16892 : RE: Help on Olang - System


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.