[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ADX formula



PureBytes Links

Trading Reference Links

Jerry,

What can I say besides: you are 100% right... :-)
But the idea still is the same imho.
Just locate the price and add 'of data2'
Dmiplus calls Truerange. and that calls Truehigh and TrueLow.
It's just search and replace.
Ok it's a bit of work but compared what time it takes to design a system it's not that bad.
But if there are easier ways I'm all ear because I just start replacing/recoding.
And I'm not claiming it's the best way. Just a way.

Just a thought.
If I would recode DMI; I would put everything into one big function.
And add an extra field called ChartNr
DMI_Bing(length,ChartNr)
ChartNr refers to the chart it should access

Tony, all ears now :-)


>Tony
>If I understand correctly what your telling him I don't think it is that
>easy. The Tradestation ADX indicators don't have price as an input to the
>indicator. Several function levels deep DmiPlus and DmiMinus access price. I
>believe the only solution is to rewrite those such that price is an input
>and they can be called
>with Data1,Data2 etc.
>
>Jerry
>----- Original Message ----- 
>From: "Tony" <acjhopst@xxxxxxxxx>
>To: <omega-list@xxxxxxxxxx>
>Sent: Friday, February 06, 2004 2:24 PM
>Subject: Re: ADX formula
>
>
>> On Thu, 5 Feb 2004 14:50:56 -0500, you wrote:
>>
>> >Hello,
>> >
>> >Does anyone know have a formula for calculation of
>> >ADX so that i can apply it on a 5min chart to
>> >determine whether ADX on the equivalent 30,60 min
>> >chart is above 30 threshold?
>> >
>> >For example, if I apply a Average(Close,240) on a
>> >5min chart it will plot  equivalent values as
>> >Average(Close,20) on a 60 min chart.  The reason
>> >why this works in this case is because Average is
>> >a linear function.  I cannot do the equivalent on
>> >ADX because it is non-linear.
>> >
>> >Does anyone have any suggestions?
>> >
>> >Thanks,
>> >Bing
>> >
>> Bing,
>>
>>
>> Open the chart in 3 diffrent timeframes. Using <F5>
>> PS calls the 1st chart data1 the 2nd chart data2 etc
>>
>> When you need a value from the 30-min chart (data2)
>> To read a value from the 30 min chart just use something like: X= Close of
>data2
>>
>> The following code plots a moving average of data1=5min and data2=30min
>> So the trick here is use "of data X"
>>
>> I hope this helped a bit. Or even if it was what you asked for :-)
>>
>> Regards,
>> Tony
>>
>>
>>
>>
>>