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.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

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

User Profile
 
Subject : RE: Is SDK still available/usable?
Posted : 2/4/2019 7:33 AM
Post #30284 - In reply to #30283

Got your email and got you registered in TradeTight :~)

I doubt that a for-next is needed for the algorithm at the link I posted. Just three variables for the prior bars' values. Then, at the end of your code after the calcs for the current bar, just "increment" them so that the next bar in the outer implicit (parser) loop has updated "lookbacks" ...

parameters ...

declarations ...

calculations ...

Var3Bago = Var2Bago
Var2Bago = Var1Bago
Var1Bago = VarThisB

return
Deleting message 30284 : RE: Is SDK still available/usable?


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