Formula for optimizers

Forums ProRealTime English forum ProOrder support Formula for optimizers

Viewing 3 posts - 1 through 3 (of 3 total)
  • #217354

    Can someone please write me a formula that makes the following usable for the optimizer:

    Average[period,type](pricetype)

     

    Period and Type are clear how to use this. I’m failing at assigning pricetype. So I would need a usable formula for the optimizer that would allow me to optimize close, high, low, typicalprice… Would it be possible?

    #217382
    JS

    Hi,

    I think it should work like this:

    If DataType=1 then
    Source=Close
    ElsIf Datatype=2 then
    Source=High
    ElsIf DataType=3 then
    Source=Low
    ElsIf DataType=4 then
    Source=TypicalPrice
    EndIf

    And then have DataType optimized from 1 to 4…

    Average[Period,MAType](Source)

    1 user thanked author for this post.
    #217386

    great thank you.
    I’ll try it.

    1 user thanked author for this post.
    avatar JS
Viewing 3 posts - 1 through 3 (of 3 total)
Similar topics:

Create your free account now and post your request to benefit from the help of the community
Register or Login