Joris,

Very nice!

--- In [email protected], "Joris Schuller" <jschul...@...>
wrote:

PercZoneLow1 = Param("PercZoneLow1",0.3,0.000001,1,0.05) ;
PercZoneHigh1 = Param("PercZoneHigh1 ",1,0.000001,1,0.05) ;

PercZoneLow2 = Param("PercZoneLow2",0.00001,0.000001,1,0.05) ;
PercZoneHigh2 = PercZoneLow1 ;

al = ATR(14);

HHVmax=HighestVisibleValue(H);
LLVMin=LowestVisibleValue(L);

almax=HighestVisibleValue(al);
alMin=LowestVisibleValue(al);

MinZ1 = ( PercZoneLow1 * HHVMax - PercZoneHigh1 * LLVMin ) / (
PercZoneLow1 - PercZoneHigh1 );
MaxZ1 = ( LLVMin - MinZ1 ) / PercZoneLow1 + MinZ1;

MinZ2 = ( PercZoneLow2 * almax- PercZoneHigh2 * alMin) / ( PercZoneLow2
- PercZoneHigh2 );
MaxZ2 = ( alMin- MinZ2 ) / PercZoneLow2 + MinZ2;

Plot( C, "C in zone", colorGrey50, styleCandle | styleOwnScale, MinZ1,
MaxZ1);
Plot( al, "ATR(14) in zone", colorRed, styleLine | styleOwnScale,MinZ2,
MaxZ2);




Reply via email to