- This topic has 6 ข้อความตอบกลับ, 3 เสียง, and was last updated 9 years, 4 months มาแล้ว by .
-
กระทู้
-
{Chandelier Trailing Stop}
ATRper:=Input(“ATRper”,1,100,10);
Constant:=Input(“Constant”,1,5,3);
ARC:=Constant*ATR(ATRper);
Trail:=
If(C>PREV AND Ref(C,-1)>PREV,
Max(PREV,C-ARC),
If(C<prev and="" if(c="" min(prev,c+arc),="" ref(c,-1)PREV,C-ARC,C+ARC)));อันนี้คือที่พี่มดเคย post ไว้ใน ถามตอบในบทความ Trailing stop ครับ …. คราวนี้ผม (มือใหม่เรื่องโปรแกรมมาก ๆ -_-“) จะเขียนสูตรอันนี้มาลงใน Amibroker ครับ ลองมั่วดู ไปได้แค่นี้อ่ะครับ ….
ATRper = Param(“ATRper”,1,100,10);
Constant = Param(“Constant”,1,5,3);
ARC = Constant*ATR(ATRper);Trailing = IIf(C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2),Max(Ref(C,-1),C-ARC),IIf(C<Ref(C,-1) AND ….???
ไปต่อไม่ถูกอ่ะคับ ไม่เข้าใจว่า ="" คืออะไรครับ ใครพอรู้บ้าง ช่วยมือใหม่ด้วยนะครับ ขอบคุณนะครับ
- คุณต้องเข้าสู่ระบบเพื่อตอบกลับกระทู้นี้