Formula for optimizers

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #217354 quote
    phoentzsphoentzs
    Participant
    Master

    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 quote
    JSJS
    Participant
    Master

    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)

    phoentzs thanked this post
    #217386 quote
    phoentzsphoentzs
    Participant
    Master

    great thank you.
    I’ll try it.

    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Formula for optimizers


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by phoentzsphoentzs
3 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/06/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...