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

Re: EXE to Large



PureBytes Links

Trading Reference Links



Gaston

i think your calling the same function too often  - why not assign adx to
value1 ie


value1= adx(14);
value2=adx(8);  {etc}

If value1 < 30 and value1 >12.99 and value2 < 30 and value2 >12.99 then
ADX_Status = 0;   {i think you just halved code size}

I'm sure you can probably do it for LinearRegSlope as well

>Dear Traders
>
>I am getting an EXE code to large error when i try to run this function. It
>is a true false function to return a 1 or 0 depending on whether or not the
>ADX meets trending criteria.This does not seem to complicated or large
>enough to pose a problem. Any one have any ideas.
>
>ADX_Status = 1;
>
>If ADX(14) < 30 and ADX(14) >12.99 and ADX(8) < 30 and ADX(8) >12.99 then
>ADX_Status = 0;
>
>If ADX(14) >= 30  then begin
> If LinearRegSlope(ADX(14),5) < LinearRegSlope(ADX(14),5)[5]  then
> ADX_Status = 0;
>End;
>If ADX(8) >= 30 then begin
> If LinearRegSlope(ADX(8),5) < LinearRegSlope(ADX(8),5)[5] then
> ADX_Status = 0;
>End;
>
>Thanks
>Gaston
>