OmniTrader Forum - OmniTrader 2019 Technical Support
How do Filter Block Parameters work?

^ Top
kmcintyre

Posts: 410

Joined: 8/30/2007
Location: Valley Center, CA

User Profile
 
Subject : How do Filter Block Parameters work?
Posted : 5/24/2019 6:59 PM
Post #46198

I have an indicator that takes one parameter.

I want to use the indicator in a filter block.

I can add a filter, rename the filter, write OL code to call my indicator in the Long and Short Conditions edit box. But I have to hardcode the parameter to my indicator in the OL.

I want to have the parameter passed to my indicator be a "Parameter" from the Filter block's perspective. IE I want the value to be set by the Parameters block in the upper right corner of the Filters block UI. I want to be able to assign a min and max value and oprimize.


How do I do this?

Example
EMA( 50 ) < c ' this is hard codeded - no Bueno
EMA( param1 ) < c ' I want param1 to be listed in the Parameters UI so I can assign min, max, and default values...

Thanks

^ Top
LSJ

Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: How do Filter Block Parameters work?
Posted : 5/25/2019 9:36 AM
Post #46201 - In reply to #46198

I am probably completely misunderstanding your question but for the opportunity to learn here is my simple solution to what I think you are asking:


Attached file : param1.jpg (132KB - 535 downloads)

^ Top
kmcintyre

Posts: 410

Joined: 8/30/2007
Location: Valley Center, CA

User Profile
 
Subject : RE: How do Filter Block Parameters work?
Posted : 5/25/2019 11:07 AM
Post #46202 - In reply to #46198

Yep. My question was so damn stupid it is no wonder that you couldn't believe I was asking it.

I absolutely did not see the Add button in the Parameters UI....

Being blind sucks...

Thanks

^ Top
LSJ

Posts: 515

Joined: 8/17/2006
Location: Citrus Springs, FL

User Profile
 
Subject : RE: How do Filter Block Parameters work?
Posted : 5/25/2019 12:40 PM
Post #46204 - In reply to #46198

No problem. We hold hands and feel our way along - I've got wet AMD.
^ Top
kmcintyre

Posts: 410

Joined: 8/30/2007
Location: Valley Center, CA

User Profile
 
Subject : RE: How do Filter Block Parameters work?
Posted : 5/25/2019 3:11 PM
Post #46205 - In reply to #46198

Lots of research being done on AMD (and RP).

Hope springs eternal.

Blessings!

^ Top
John J

Posts: 272

Joined: 8/3/2010
Location: Leduc, AB

User Profile
 
Subject : RE: How do Filter Block Parameters work?
Posted : 7/4/2019 5:18 PM
Post #46269 - In reply to #46198

I did some optimizations in a filter block today, and I have to admit that I ran into something I thought I knew the answer to years ago. If I check for optimization, how can I see the optimized values like I can in the Port Sim? Is the filter block doing dynamic optimization perhaps.?


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16015&posts=6