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

Re: Daily Pivots



PureBytes Links

Trading Reference Links

I see no problem - my indicator is 'moving' but only as it should - the
indicator jumps around each month, right? When the bar spacing changes, the
indicator changes to reflect the new bar spacing. The indicator always
changes at the beginning of the calendar month - if you change the bar
spacing, the X-axis of your charting window with months marked on it will
change and so will the indicator. If yours is different, what do you mean?
You have the prices and the indicator in one window?
Adam

-----Original Message-----
From: Vandal <lazar223@xxxxxxxxxxx>
To: adam_hardy3 <adam_hardy3@xxxxxxxxxx>
Date: Thursday, September 02, 1999 1:20 PM
Subject: Re: Daily Pivots


>Thank you for helping me with this code. However if you change your bar
spacing
>in the window with this indicator plotted within it, the indicator will
still
>move. The reason that I tried to do it with just plots is to make them
fixed
>levels that will not move irrespective of bar spacing. Again thanks...
>
>adam_hardy3 wrote:
>
>> If I got the right idea of what you're trying to do, you want resistance
and
>> support lines to appear, from top to bottom in this order: R2 R1 S1 S2?
The
>> reason why it wouldn't compile was the bracketing. Try this - I've made
the
>> formula less complicated using variables.
>>
>> Vars: MidPrice(0), R1(0), R2(0), S1(0), S2(0);
>>
>> MidPrice = (HighM(1) + LowM(1) + CloseM(1)) / 3;
>> R1 = (2 * MidPrice)  - LowM(1);
>> S1 = (2 * MidPrice) - HighM(1);
>> R2 = MidPrice + R1 - S1;
>> S2 = MidPrice - R1 + S1;
>> Plot1(R1, "R1");
>> Plot2(R2, "R2");
>> Plot3(S1, "S1");
>> Plot4(S2, "S2");
>>
>