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

Re: [amibroker] function needed



PureBytes Links

Trading Reference Links

Thomas

The reason why this does not work is that you are working with constants 
instead of arrays. Min does work the way you think it should but you can't 
graph the constant values they have to be arrays to graph.

Lets change your example in this way to see if it works. Make sure that 
you select a security where the array prices go across the value of 15 used 
in the example below. I tested this against IBM and where the stock was 
below 95 the new values were the minimum value 10 as it should be.

L1 = 10; L2 = 20; L3 = 30; L4 = 40; L5 = 50; L6 = 60;
x = Min(L1,Min(L2,Min(L3,Min(L4,Min(L5,L6)))));
C = IIF(C>15,C,X);
Graph1 = x;Graph1Style = 2;
Graph1Color = 10;

Steve

At 01:08 AM 11/26/2001 +0100, you wrote:
Hi Steve,

Thanks, but why doesn't it work.
Please test it. In the formula below i should see a graph with the lowest
value: it's 10

L1 = 10; L2 = 20; L3 = 30; L4 = 40; L5 = 50; L6 = 60;

x = Min(L1,Min(L2,Min(L3,Min(L4,Min(L5,L6)))));
Graph1 = x;Graph1Style = 2;
Graph1Color = 10;

Thomas