Author Topic: Custom Formula Coding  (Read 1684 times)

AntMan

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Custom Formula Coding
« on: April 26, 2018, 05:04:35 pm »
I'm looking for some help with coding custom formulas. I want to write a formula using "if, else" to return certain data. For example, if the filter [PUp5] is positive, return this, else return that.

if ([PUp5]<0)
    {    return this value
}
  else
    {   return that value
}

above is the C++ syntax I am using, but it doesn't work with the custom formulas.
Is there a way to use C++ language in conjunction with the filters, other data and functions to further customize my formulas?

Thanks in advance!

Trade-Ideas_William

  • Administrator
  • Newbie
  • *****
  • Posts: 44
  • Karma: +4/-0
    • Trade-Ideas LLC
Re: Custom Formula Coding
« Reply #1 on: April 27, 2018, 11:10:04 am »
Hi AntMan,

Come see me at Trade-Ideas.com and click the 'chat' button in the lower right corner and I can give you a .pdf file on how to do custom formulas.

Have a good day,

William