Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

ATR Syntax for Condition Formula Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
f41909
Posted : Monday, January 7, 2013 1:30:13 PM
Registered User
Joined: 8/1/2010
Posts: 5

What would be the syntax for the ATR indicator in a condition formula?   I can't just create a condition scan directly from the chart since I want to do a calculation such as ATR6 is less than half of the value of ATR100.   Thanks for your assistance.

Bruce_L
Posted : Monday, January 7, 2013 1:58:02 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

ATR isn't part of the Personal Criteria Formula Language. The PCF Formula Descriptions topic contains a fairly comprehensive list of the syntax which is valid in a PCF.

A Condition Formula to check for a 6-Period Average True Range being less than half the value of a 100-Period Average True Range which would match the charts in TC2000 version 12.3 could be written as:

(AVGH6 - AVGL6) / 2 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1) + ABS(H2 - C3) + ABS(C3 - L2) + ABS(H3 - C4) + ABS(C4 - L3) + ABS(H4 - C5) + ABS(C5 - L4) + ABS(H5 - C6) + ABS(C6 - L5)) / 12 < ((AVGH100 - AVGL100) / 2 + (ABS(H - C1) + ABS(C1 - L) + ABS(H1 - C2) + ABS(C2 - L1) + ABS(H2 - C3) + ABS(C3 - L2) + ABS(H3 - C4) + ABS(C4 - L3) + ABS(H4 - C5) + ABS(C5 - L4) + ABS(H5 - C6) + ABS(C6 - L5) + ABS(H6 - C7) + ABS(C7 - L6) + ABS(H7 - C8) + ABS(C8 - L7) + ABS(H8 - C9) + ABS(C9 - L8) + ABS(H9 - C10) + ABS(C10 - L9) + ABS(H10 - C11) + ABS(C11 - L10) + ABS(H11 - C12) + ABS(C12 - L11) + ABS(H12 - C13) + ABS(C13 - L12) + ABS(H13 - C14) + ABS(C14 - L13) + ABS(H14 - C15) + ABS(C15 - L14) + ABS(H15 - C16) + ABS(C16 - L15) + ABS(H16 - C17) + ABS(C17 - L16) + ABS(H17 - C18) + ABS(C18 - L17) + ABS(H18 - C19) + ABS(C19 - L18) + ABS(H19 - C20) + ABS(C20 - L19) + ABS(H20 - C21) + ABS(C21 - L20) + ABS(H21 - C22) + ABS(C22 - L21) + ABS(H22 - C23) + ABS(C23 - L22) + ABS(H23 - C24) + ABS(C24 - L23) + ABS(H24 - C25) + ABS(C25 - L24) + ABS(H25 - C26) + ABS(C26 - L25) + ABS(H26 - C27) + ABS(C27 - L26) + ABS(H27 - C28) + ABS(C28 - L27) + ABS(H28 - C29) + ABS(C29 - L28) + ABS(H29 - C30) + ABS(C30 - L29) + ABS(H30 - C31) + ABS(C31 - L30) + ABS(H31 - C32) + ABS(C32 - L31) + ABS(H32 - C33) + ABS(C33 - L32) + ABS(H33 - C34) + ABS(C34 - L33) + ABS(H34 - C35) + ABS(C35 - L34) + ABS(H35 - C36) + ABS(C36 - L35) + ABS(H36 - C37) + ABS(C37 - L36) + ABS(H37 - C38) + ABS(C38 - L37) + ABS(H38 - C39) + ABS(C39 - L38) + ABS(H39 - C40) + ABS(C40 - L39) + ABS(H40 - C41) + ABS(C41 - L40) + ABS(H41 - C42) + ABS(C42 - L41) + ABS(H42 - C43) + ABS(C43 - L42) + ABS(H43 - C44) + ABS(C44 - L43) + ABS(H44 - C45) + ABS(C45 - L44) + ABS(H45 - C46) + ABS(C46 - L45) + ABS(H46 - C47) + ABS(C47 - L46) + ABS(H47 - C48) + ABS(C48 - L47) + ABS(H48 - C49) + ABS(C49 - L48) + ABS(H49 - C50) + ABS(C50 - L49) + ABS(H50 - C51) + ABS(C51 - L50) + ABS(H51 - C52) + ABS(C52 - L51) + ABS(H52 - C53) + ABS(C53 - L52) + ABS(H53 - C54) + ABS(C54 - L53) + ABS(H54 - C55) + ABS(C55 - L54) + ABS(H55 - C56) + ABS(C56 - L55) + ABS(H56 - C57) + ABS(C57 - L56) + ABS(H57 - C58) + ABS(C58 - L57) + ABS(H58 - C59) + ABS(C59 - L58) + ABS(H59 - C60) + ABS(C60 - L59) + ABS(H60 - C61) + ABS(C61 - L60) + ABS(H61 - C62) + ABS(C62 - L61) + ABS(H62 - C63) + ABS(C63 - L62) + ABS(H63 - C64) + ABS(C64 - L63) + ABS(H64 - C65) + ABS(C65 - L64) + ABS(H65 - C66) + ABS(C66 - L65) + ABS(H66 - C67) + ABS(C67 - L66) + ABS(H67 - C68) + ABS(C68 - L67) + ABS(H68 - C69) + ABS(C69 - L68) + ABS(H69 - C70) + ABS(C70 - L69) + ABS(H70 - C71) + ABS(C71 - L70) + ABS(H71 - C72) + ABS(C72 - L71) + ABS(H72 - C73) + ABS(C73 - L72) + ABS(H73 - C74) + ABS(C74 - L73) + ABS(H74 - C75) + ABS(C75 - L74) + ABS(H75 - C76) + ABS(C76 - L75) + ABS(H76 - C77) + ABS(C77 - L76) + ABS(H77 - C78) + ABS(C78 - L77) + ABS(H78 - C79) + ABS(C79 - L78) + ABS(H79 - C80) + ABS(C80 - L79) + ABS(H80 - C81) + ABS(C81 - L80) + ABS(H81 - C82) + ABS(C82 - L81) + ABS(H82 - C83) + ABS(C83 - L82) + ABS(H83 - C84) + ABS(C84 - L83) + ABS(H84 - C85) + ABS(C85 - L84) + ABS(H85 - C86) + ABS(C86 - L85) + ABS(H86 - C87) + ABS(C87 - L86) + ABS(H87 - C88) + ABS(C88 - L87) + ABS(H88 - C89) + ABS(C89 - L88) + ABS(H89 - C90) + ABS(C90 - L89) + ABS(H90 - C91) + ABS(C91 - L90) + ABS(H91 - C92) + ABS(C92 - L91) + ABS(H92 - C93) + ABS(C93 - L92) + ABS(H93 - C94) + ABS(C94 - L93) + ABS(H94 - C95) + ABS(C95 - L94) + ABS(H95 - C96) + ABS(C96 - L95) + ABS(H96 - C97) + ABS(C97 - L96) + ABS(H97 - C98) + ABS(C98 - L97) + ABS(H98 - C99) + ABS(C99 - L98) + ABS(H99 - C100) + ABS(C100 - L99)) / 200) / 2

Sir Old Viking Trader and PCFs



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.