|
kmcintyre
 Legend
    Posts: 410
Joined: 8/30/2007
Location: Valley Center, CA
User Profile |
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
|
|
LSJ
 Legend
 Posts: 515
Joined: 8/17/2006
Location: Citrus Springs, FL
User Profile |
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:

[Edited by LSJ on 5/25/2019 9:38 AM]
Attached file : param1.jpg (132KB - 523 downloads)
|
|
kmcintyre
 Legend
    Posts: 410
Joined: 8/30/2007
Location: Valley Center, CA
User Profile |
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
|
|
LSJ
 Legend
 Posts: 515
Joined: 8/17/2006
Location: Citrus Springs, FL
User Profile |
No problem. We hold hands and feel our way along - I've got wet AMD.
|
|
kmcintyre
 Legend
    Posts: 410
Joined: 8/30/2007
Location: Valley Center, CA
User Profile |
Lots of research being done on AMD (and RP).
Hope springs eternal.
Blessings!
|
|
John J
 Veteran
    Posts: 272
Joined: 8/3/2010
Location: Leduc, AB
User Profile |
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.?
|