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.

 
Ryan Olson

Veteran
1002525
Posts: 170

Joined: 12/29/2006
Location: Austin, Tx

User Profile
 
Subject : RE: Operator overloading in OL?
Posted : 8/10/2021 9:39 PM
Post #31568 - In reply to #31566



The answer isn't as easy as "no".

You can pass quite a few things into indicators:

For example, SMA can take SMA(50), SMA(V,50) SMA((C-H), 50) but not tuples, dictionaries but you are able to pass some information directly into indicators.

If you are building the indicator you will only be able to pass the parameters you have built in but not data series.

However, inside the indicator you are in control, you can calculate whatever you want, you have access to price, volume, read from data files and more.

As far as "true" overloading operators - this is a concept used in OOP programming and not completely implemented in OmniLang.
Deleting message 31568 : RE: Operator overloading in OL?


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