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

Adding a log scale into applystop.



PureBytes Links

Trading Reference Links

Hi,

I'd like to add a logarithmic scale into my ApplyStop. But I still 
have a problem with it. Assume,

Short = ...;
X = 10/log10(Buy); //Min Cover Profit target stop in %
Y = 8/log10(Buy); //Max Cover Loss Stop in %
ApplyStop(1,1,X,0);
ApplyStop(0,1,Y,0);
Cover = 0;

Filter = ApplyStop(1,1,X,0) == 1 OR ApplyStop(0,1,Y,0) == 1;
AddColumn(C,"C",1.2);
AddColumn(X,"X",1.2);
AddColumn(Y,"Y",1.2);

Thanks in advance for any reply.

Regards,
artast