|
|
SGT_FW
by Aku_Aku. 06/02/25 17:54
|
|
|
|
|
|
|
2 registered members (Quad, Ayumi),
451
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Using T6 Price Instead of Broker Price
[Re: vicknick]
#488656
03/13/25 15:14
03/13/25 15:14
|
Joined: Apr 2023
Posts: 56
vicknick
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2023
Posts: 56
|
So far I have managed to load my data from my own csv into the series:
function run()
{
set(LOGFILE);
set(PRELOAD);
while(asset(loop("6A_M", "6B_M", "6C_M")))
{
string AssetName = (string)Asset;
string FilePath = strf("C:\\Users\\chu_h\\Desktop\\output\\%s_Meod.csv", AssetName);
string setup = file_content(FilePath);
if (!setup) {
printf("#Error: File not found or empty for %s\n", AssetName);
return;
}
vars CloseSeries = series(0, 1000);
var ClosePriceList[1000];
......
However, Zorro try to find the 6A_M historical file when running the script: Error 047: 6A_M no 2020 history (History\6A_M_2020.t6)
Error 047: 6A_M 2020..2025 no data
Error 047: No bars generated Is there a way suppress this error, and instead let Zorro follow through my code to use my csv data? I tried with PRELOAD but it still have the error.
|
|
|
Re: Using T6 Price Instead of Broker Price
[Re: vicknick]
#488658
03/14/25 11:39
03/14/25 11:39
|
Joined: Feb 2017
Posts: 1,790 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,790
Chicago
|
There are many problems here. 1) Are you running in [Test], [Train], or [Trade] mode? Did you account for how the code operates in each mode? Should you be using run() or main() in this case, and why? 2) Unless "6A_M", "6B_M", and "6C_M" are actually assets in your asset list with existing T6 historical data, this code is wrong. Lose the asset() call and consider using of() instead of loop(). of() can be used to set a string. 3) I see you are loading a CSV file, but I do not see your code actually doing anything with the loaded file. You're not even parsing it into a dataset, so I'm not sure what you expected here.
|
|
|
|