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?
JSParticipant
Senior
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)
great thank you.
I’ll try it.