Tradesystem_indicator_data_not_sync

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #88739 quote
    Fei_
    Participant
    Junior

    Hi Nicloas,

    Can you assist on this, the tradesystem data/ indicator data (daily) is not the same!

     

    Please see attached screenshot

    Thanks

     

    Regards,

    Ryan

    Data_not_same.jpg Data_not_same.jpg
    #88745 quote
    Vonasi
    Moderator
    Master

    An indicator will return the value of the currently forming candle whilst GRAPH in a strategy will return the value of the decision candle which is the last closed candle and display this for the currently forming candle. This is why the values are different.

    #88758 quote
    Fei_
    Participant
    Junior

    Hi Vonasi,

     

    Thanks for your reply, but the indicator/trade system that are shown are historic data.

    it is not the latest candle and all the data include open/close/high/Low are different.

    i only observe the issue with daily but not 15/5 mins which I’m running too.

     

    Thanks

    Regards,

    Ryan

    #88766 quote
    Vonasi
    Moderator
    Master

    Historic or not it is the same thing. A strategy gets one set of values at the close of a candle then any orders or instructions are sent at the open of the next candle. So the latest candle GRAPHs the values of the last closed candle. An indicator however is ‘on the fly’ for the currently forming candle so the currently forming candle has the latest values and any closed candles have whatever values that candle closed at.

    #88779 quote
    Fei_
    Participant
    Junior

    I don’t think that would be correct, if that is the case, all the 5min/15mins/all type of graph will have different Open/close/high/low.

    Also, it would be pointless for anyone to do backtest too, since the indicator value and the tradesystem value are essentially different (but that is not the case here)

     

    i figure out the issue with daily, apparently IG and prorealtime use different timing to mark the opening /closing (of a day). One use 00:00 GMT, while the other use opening of the market.

    So i just switch it to 24 (x) hours to solve the issue.

     

    Thanks

     

    Regards,

    Ryan

    #88797 quote
    Vonasi
    Moderator
    Master

    Sorry – I have been confusing myself! In my defence your screen image is very small and so not easy to read the values (even with my reading glasses on!) so I was working on some assumptions about the values. When creating an indicator we have to be aware that the current value of close is the current price of the still forming candle whereas in a strategy the value of close is always going to be the value of the last candle that has actually closed. GRAPH does not happen until a candle has closed so the values of an indicator should be the same at that time as a strategies. No value is shown in the graphed output for any candle that is currently forming but an indicator will show whatever the latest price is.

    I’m glad that you finally worked out that your differences were due to chart times. If you want to use only values between market open and market close then you are better to drop to a faster time frame and store your own values for open, close, high and low during trading hours and then use these values to make trading decisions as to whether to trade at the next market open time. A sort of home made simulated candle.

    On a separate note regarding screen images I would suggest using something like ‘Lightshot’ to capture screenshots and just the important parts of a screen. You can also draw on the screen shot to help highlight things to others.

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

Tradesystem_indicator_data_not_sync


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fei_ @chowfei Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Vonasi
7 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/16/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...