Importing 1min Bars in Csv causes "Symbol not found or has no quotes" error

Created at 13 Sep 2024, 06:10
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
YS

ys2310

Joined 03.12.2021

Importing 1min Bars in Csv causes "Symbol not found or has no quotes" error
13 Sep 2024, 06:10


In back testing, I choose to use my own 1min OHLCV csv file and the Symbol is “XAUUSD”.

If I reference other data bars in my back test code like,

MarketData.GetBars(TimeFrame.Minute, "USDJPY").ClosePrices.Last(1)

I got runtime error “Failed to get symobl ‘USDJPY’: Symbol not found or has no quotes.”

 


@ys2310
Replies

PanagiotisCharalampous
13 Sep 2024, 06:32

Hi there, 

Does your broker offer this symbol? Can you share your cBot code and let us know your broker?

Best regards,

Panagiotis


@PanagiotisCharalampous

ys2310
13 Sep 2024, 06:42

RE: Importing 1min Bars in Csv causes "Symbol not found or has no quotes" error

Hi Panagiotis

I'm using IC Markets and yes they offer this symbol. 

I guess the problem is that we can't use MarketData.GetBars() to refer other symbol's data if we import a Csv file?


@ys2310

ys2310
13 Sep 2024, 06:42

RE: Importing 1min Bars in Csv causes "Symbol not found or has no quotes" error

Hi Panagiotis

I'm using IC Markets and yes they offer this symbol. 

I guess the problem is that we can't use MarketData.GetBars() to refer other symbol's data if we import a Csv file?


@ys2310

PanagiotisCharalampous
13 Sep 2024, 06:53

hi there,

Can you try using the cross broker cTrader application and let me know if you can still reproduce this problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

ys2310
13 Sep 2024, 07:10

RE: Importing 1min Bars in Csv causes "Symbol not found or has no quotes" error

PanagiotisCharalampous said: 

hi there,

Can you try using the cross broker cTrader application and let me know if you can still reproduce this problem?

Best regards,

Panagiotis

I tried with Spotware cTrader cross broker cTrader and it generates a similar error message.

Error | Failed to get symbol 'USDJPY' quotes: Symbol USDJPY has no quotes at 2003/07/01 4:00:00.

I think this is because my Csv data is going all the way back to year of 2003 while the broker's USDJPY's first data is some where 2011.

How we can deal situation like this? 


@ys2310