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

Re: HashNums16 GV



PureBytes Links

Trading Reference Links

Look in the description of the Hashnums there is a difference how the charts
are processed in sequence depending if you are testing a system or an
indicator and real time / backtest.



-----Original Message-----
From: Ian Cunningham <CunCom@xxxxxxxxxxxxxx>
To: INTERNET:omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: Monday,June 05,2000 3:14 PM
Subject: Re: HashNums16 GV


>
>Actually, I did have it as OUp ( made a mistake in
>translating it from my other machine) and it still dosen't
>get the value from Hashnums.
>Am I using the right/best Define for this?
>Is there a better way to write this test? (I'm sure there is :-)).
>
>Thank you
>Ian
>
>
>
>
>Message text written by INTERNET:omega-list@xxxxxxxxxx
>>You are storing it in OUp but you are trying to retrieve it from OUp1.
>Change OUp1 to OUp.
>
>dbs
>
>Plot1(C, "");
> putAt("Avg5", "OUp", OUp);
> putAt("Avg5", "ODn", ODn);
>
>
>
> Plot1(C,"");
> DirUp = getAt("Avg5", "OUp1");
> DirDn = getAt("Avg5", "ODn1");
>
>
>
>Ian Cunningham wrote:
>
>> Anyone using the above with TS4 help me with the following?
>> I am attempting to learn to use the GV to pass values from
>> one time frame to another to use as a filter within a study.
>>
>> The following simple code is a test to get the values from
>> the 5 min data into the 1 min. I have "update every tick" checked
>> as I want to get each tick.
>> In the Print Log I am getting the correct values for the 5 min,(put)
>> however,
>> I get zeros for the 1 min (get).
>>
>> Any ideas what I am doing wrong?
>>
>> TIA
>> Ian Cunningham.
>>
>> DefineDllFunc:"c:\omega\hashnums.dll, INT, "putAt", LPSTR, LPSTR, FLOAT;
>>
>>  Vars: Len(20), OUp(0), ODn(0), X(0);
>>
>>  X = Average(C, Len);
>>  If X > X[1] then OUp = 1 Else OUp = 0;
>>  If X< X[1] then ODn = 1 Else ODn = 0;
>>
>>  Plot1(C, "");
>>  putAt("Avg5", "OUp", OUp);
>>  putAt("Avg5", "ODn", ODn);
>>
>>  Print(Date:8:0, Time:5:0, "OUp5 = ", OUp);
>>  Print(Date:8:0, Time:5:0, "ODn5 = ", ODn);
>>
>>  1 min;
>>
>>  DefineDllFunc:"c:\omega\hashnums.dll, FLOAT, "getAt", LPSTR, LPSTR;
>>
>>  Vars: OUp(0), ODn(0), DirUp(0), DirDn(0);
>>
>>  Plot1(C,"");
>>  DirUp = getAt("Avg5", "OUp");
>>  DirDn = getAt("Avg5", "ODn");
>>
>>  Print(Date:8:0, Time:5:0, "OUp1 = ", DirUp);
>>  Print(Date:8:0, Time:5:0, "ODn1 = ", DirDn);
>
>
>
><
>