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

Re[2]: Help- I have seen this problem before- I just can't remember the solution


  • To: Pierre Orphelin <pierre.orphelin@xxxxxxx>
  • Subject: Re[2]: Help- I have seen this problem before- I just can't remember the solution
  • From: Pierre Orphelin <pierre.orphelin@xxxxxxx>
  • Date: Wed, 29 Sep 2004 01:08:26 +0200
  • Organization: Sirtrade Intl.

PureBytes Links

Trading Reference Links

llo Dr,

Wednesday, September 29, 2004, 12:39:37 AM, you wrote:

DW> I am attempting to do a calculation based on a higher time frame ( daily
DW> data using Data2 ) from within an indicator plotted on a lower time frame
DW> chart(45 min data1). It is essentially a moving average of the higher time
DW> frame which I am plotting on the lower time frame. I put in some logic to so
DW> it skips the calculation if the higher time frame is still on the same bar
DW> but it still does not calculate properly even tho I have verified the logic
DW> works properly by putting a print statement in the loop. I remember seeing
DW> this before. Does anyone know what the solution is ? Below is a snipit of
DW> the logic.

DW> Input: Price(Close of data2);
DW> Vars:Init(True);

DW> If Init then begin
DW>  Init=False;
DW>  Cbar=CurrentBar of Data2;
DW>  end;

DW> If CBar
DW>  Tavg=Jrc.jma.2k(Price,Len,Speed); <===== try adding "of data 2 " here.
 Close of sata2 in the input definition is maybe not sufficient to tie the jrc function to the data2 serie.

DW>  Print(Date,time);  { This is to check logic }
DW>  CBar=CurrentBar of data2;
DW>  end;


          Rgds

          PO