ZigZagPoint[(ATR)](Close) Combination

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36053 quote
    CKW
    Participant
    Veteran

    Hi Nicholas,

    Will this kind combination works? ZigZagPoint[(AverageTrueRange[242](Close))](Close)
    I would like to use AverageTrueRange[242](Close) as real time variable in ZigZagPoint function. Apparently, it seems working in Probuilder but not working in Probacktest.
    I attacthed 2 photos, each chart has Top and Bottom window for comparison. Top is the value of ZigZagpoint from ProBacktest, Bottom bold line is drawn by Zigzagpoint indicator

    1. by using fix value of parameter -> ZigZagPoint[20](close)
    2. by using variable value from ATR -> ZigZagPoint[(AverageTrueRange[242](Close))](Close)

    From Comparison,
    #1. Probacktest and Probuilder having same result.
    #2. Probuilder and Probuilder do not have same result. Is it normal? or Limitation

    Do you encountered similar issue like this?

    br, CKW

    ZigZig_Normal.jpg ZigZig_Normal.jpg ZigZig_Combine.jpg ZigZig_Combine.jpg
    #39047 quote
    Nicolas
    Keymaster
    Master

    If you want to draw the zigzag point of the ATR, you should put its value into the parenthesis. The way you did, you use the ATR as the period value, and obviously ATR is changing and so the period, that’s why you get a fluctuating value in your example (period changing from time to time..).

    To get the zigzag point from the average true range:

    a=ZigZagPoint[1](AverageTrueRange[242](Close))
    
    return a

    [1] for 1 percent.

    zigzag-point-of-ATR.png zigzag-point-of-ATR.png
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

ZigZagPoint[(ATR)](Close) Combination


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
CKW @ckw Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/19/2017
Status: Active
Attachments: 3 files
Logo Logo
Loading...