Candlestick price error on PXI Daily

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #108408 quote
    Vonasi
    Moderator
    Master

    I coded a price action indicator but when I applied it to the France 40 PXI daily chart on my demo platform I got a strange spike in the indicator output. Closer inspection shows that on 28 October 1997 there is a candle with a high shown as having a lower value than the open!

    I will send a report via the platform.

    Screenshot_1-6.png Screenshot_1-6.png
    #108432 quote
    Vonasi
    Moderator
    Master

    I found another candle where the high is lower than the open – this time on the SP500 SPTRD daily on September 22 2003.

    I sent a second report.

    Screenshot_2-3.png Screenshot_2-3.png
    #108434 quote
    Vonasi
    Moderator
    Master

    It would appear that candles where the impossible is shown to happen are not uncommon!

    I tested the SP500 daily with this simple indicator and it found 46 candles with an issue:

    flag = 0
    
    if high < open then
    flag = 1
    tot = tot + 1
    endif
    
    if high < close then
    flag = 2
    tot = tot + 1
    endif
    
    if low > close then
    flag = 3
    tot = tot + 1
    endif
    
    if low > open then
    flag = 4
    tot = tot + 1
    endif
    
    return flag, tot
    Screenshot_4-3.png Screenshot_4-3.png
    #108437 quote
    Vonasi
    Moderator
    Master

    DJI daily also has 46 candles with issues.

    FTSE100 daily has 49 candles with issues.

    France40 daily has 179 candles with issues.

    DAX daily has 58 candles with issues.

    Forex is not immune – a quick check on the EURUSD daily shows 71 candles with issues.

    …and even the DAX 4 hour chart has 1 candle with an issue.

    I think that some of the data we test on might need a bit of a clean up!

    Screenshot_5-4.png Screenshot_5-4.png Screenshot_6-3.png Screenshot_6-3.png Screenshot_7-3.png Screenshot_7-3.png Screenshot_8-4.png Screenshot_8-4.png Screenshot_9-3.png Screenshot_9-3.png
    #108443 quote
    Vonasi
    Moderator
    Master

    This indicator version lets us see how many of each type of error there are:

    flag = 0
    
    if high < open then
    flag = 1
    tot1 = tot1 + 1
    endif
    
    if high < close then
    flag = 2
    tot2 = tot2 + 1
    endif
    
    if low > close then
    flag = 3
    tot3 = tot3 + 1
    endif
    
    if low > open then
    flag = 4
    tot4 = tot4 + 1
    endif
    
    return flag as "error", tot1 as "high < open", tot2 as "high < close", tot3 as "low > close", tot4 as "low > open"
    #108486 quote
    GraHal
    Participant
    Master

    Sterling work Vonasi! … PRT need to get you on their Team!!

    More reasons why our strategies don’t work as we expect??

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Candlestick price error on PXI Daily


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by GraHal
6 years, 4 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 09/25/2019
Status: Active
Attachments: 8 files
Logo Logo
Loading...