|
Palm Springs
Posts: 5 since Jun 2014
Thanks Given: 2
Thanks Received: 0
|
HI: First post, thanks for the assistance ;√)
The following simple "for" loop, looks back X number of days and indicates if the Volume
has exceeded the moving avg of volume by at least 4 Std Deveations.
{VOLUME> SDV CHECK WITHIN X# OF DAYS}
FOR WXD2 = 0 TO WXDST BEGIN
If VOLUME (WXD2) > SDVOL2
THEN VOLDCOUNT = WXD2;
End ;
WXD2 = WITHIN X DAYS, WXDST = IMPUT OF NUMBER OF DAYS YOU WANT TO LOOKBACK.
That works just fine. I am encountering a problem when the indicator is custom and I want the same lookback ability as the reserved word Volume provides, i.e., Volume(#). Where number is my lookback days counter. Below I am using the same loop, but the trigger is now the number of long tails in the previous X number of days.
The EasyLanguage compile error that I am receiving is: "Cannot implicitly convert Numerical to True False" I have tried to assign TSCOUNT to a new variable like "Value1" as suggested in the error code directory but still get the same error code.
{CHECK TSCOUNT > 9 WITHIN X# OF DAYS}
FOR WXD1 = 0 TO WXDST BEGIN
IF TSCOUNT(WXD1) > 9
THEN TCDCOUNT = WXD1:
End ;
Grateful for any help or sugestions. More than glad to share any code relating to this issue.
Thanks
|