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.

 
Duxx

Elite
500100100100252525
Posts: 881

Joined: 2/18/2009

User Profile
 
Subject : RE: Help on Olang - System
Posted : 8/28/2010 12:15 PM
Post #16913 - In reply to #16890

Matt or someone else

Im trying to figure out the logic on the counter you kindly provided, trying to learn how this works.

First the system try to find the pattern, and when it finds the pattern, the the counter is set to zero with nBarsSincePattern = 0

If the pattern is not found, the pattern = 1 with nBarsSincePattern +=1

But Matt mentioned that the above formula nBarsSincePattern +=1 is more like an increase by 1, so can I assume that by setting up nBarsSincePattern as integer (does this means any integer or just the number 1 integer?) then the + sign on the formula would increase the integer by 1?

Im also unclear why this function H[nBarsSincePattern + 1] requires the + 1

Your guidance is appreciated
Deleting message 16913 : RE: Help on Olang - System


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