OmniTrader Forum OmniTrader 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.

 
Barry Cohen

Sage
5000100010010010025
Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: SymbolID Function example
Posted : 4/4/2024 12:09 PM
Post #48902 - In reply to #48901

Good question! It depends on what you're after.

So 5425 is SPY & you're wanting the filter to pass all symbols only if the SMA(10) > SMA(20) on SPY is true? Or do you want the filter to pass if the symbol is SPY as well as the SMA(10) > SMA(20) is true?

This formula will pass any symbol if SPY's SMA(10) is greater than SPY's SMA(20).

SMA(GetClose("SPY"),10) > SMA(GetClose("SPY"),20)

That could also be written like this.


This formula will pass ONLY the SPY if SPY's SMA(10) is greater than SPY's SMA(20). All other symbols will not pass.

SymbolID("") = 5425 AND SMA(10) > SMA(20)

Attached file : SymbolID.png (13KB - 284 downloads)

Deleting message 48902 : RE: SymbolID Function example


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