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.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : Operator overloading in OL?
Posted : 8/10/2021 2:59 PM
Post #31561

Many standard indicators offer mulptiple variations of parameters (signatures).

RSI(14) vs. RSI(Data, 14)
SMA(50) vs. SMA(Data, 50)
etc.

I would like to be able to pass a data series into my #indicator too!
And if I don't pass a Data series, I would like to default to the current symbol's Close.

(This is known as operator overloading...)

Is there a way to do this in OL?

Thanks

Deleting message 31561 : Operator overloading in OL?


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