100% found this document useful (1 vote)
82 views

00kook Chaloke - Com Peak-Trough System 1.0

This document describes a peak-trough trading system. It defines parameters to identify peaks and troughs in price data, plots the price data with arrows to indicate identified peaks and troughs, and colors the price line green or red to indicate an uptrend or downtrend. It outputs the current price, open, high, low, and percentage change from the previous period.

Uploaded by

rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
82 views

00kook Chaloke - Com Peak-Trough System 1.0

This document describes a peak-trough trading system. It defines parameters to identify peaks and troughs in price data, plots the price data with arrows to indicate identified peaks and troughs, and colors the price line green or red to indicate an uptrend or downtrend. It outputs the current price, open, high, low, and percentage change from the previous period.

Uploaded by

rohit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

_SECTION_BEGIN("_00Kook Chaloke.

com Peak");
///// Chaloke.com Peak-Trough System 1.0 /////

Sens=Param("Sens",1,0.25,5,0.25);
PK=Peak(Close,Sens,1);
TGH=Trough(Close,Sens,1);
Color=IIf(BarsSince(Cross(C,Ref(PK,-1)))<BarsSince(Cross(Ref(TGH,-
1),C)),colorBrightGreen,colorRed);
Plot(Zig(C,Sens),"",colorWhite);
Plot(C,"Chaloke.com Peak-Trough System",Color,styleCandle);
PlotShapes( Cross(C,Ref(PK,-1)) *shapeUpArrow,colorRed,0,L,Offset=-20);
PlotShapes( Cross(Ref(TGH,-1),C) *shapeDownArrow,11,0,H,Offset=-20);

Title=EncodeColor(colorBrightGreen)+Date()+" " +Name() +" Chaloke.com Peak-


Trough System 1.0 " + EncodeColor(10)+" O="+O+" H="+H+"
L="+L+EncodeColor(colorPink)+" C="+C+" ("+NumToStr((C-Ref(C,-1))/Ref(C,-
1)*100,1.2)+" %) "
;
_SECTION_END();

You might also like