2 registered members (AndrewAMD, Imhotep),
567
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
AssetsXXX.csv fields
#477901
08/13/19 10:30
08/13/19 10:30
|
Joined: Apr 2019
Posts: 53 Canada
aelagha
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2019
Posts: 53
Canada
|
I would like to confirm two things: 1- The parameters in the assets csv file are only used for backtesting except the asset symbol. Is this correct? i.e for live trading real or demo, all parms are pulled from the broker. 2- once connected to the broker, the info is pulled from the broker and the \log\assets.csv file is updaed. So, I can rely on this info like spread, leverage, commission to be accurate.
Thanks for your help.
Last edited by aelagha; 08/13/19 10:47.
|
|
|
Re: AssetsXXX.csv fields
[Re: aelagha]
#477903
08/13/19 11:04
08/13/19 11:04
|
Joined: Feb 2017
Posts: 1,718 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,718
Chicago
|
In Live mode, Zorro will request this information from your respective broker plugin, and if the info is available, the plugin will supply it. Now, whether or not the info is wrong? You must evaluate how well your particular broker plugin does this. If it is wrong, I would suggest using the SET_PATCH brokercommand to disable the flow of misinformation, so that you can supply your own overrides. SET_PATCH is described here: https://zorro-project.com/manual/en/brokercommand.htm
|
|
|
Re: AssetsXXX.csv fields
[Re: aelagha]
#477914
08/13/19 19:31
08/13/19 19:31
|
Joined: Apr 2019
Posts: 53 Canada
aelagha
OP
Junior Member
|
OP
Junior Member
Joined: Apr 2019
Posts: 53
Canada
|
|
|
|
Re: AssetsXXX.csv fields
[Re: aelagha]
#480012
05/13/20 12:02
05/13/20 12:02
|
Joined: Jan 2020
Posts: 32
leohermoso
Newbie
|
Newbie
Joined: Jan 2020
Posts: 32
|
Andrew, tks for your reply! Sometimes for non-English speakers, some phrases are not easy to grasp. The reason I insisted on this question is I am putting exactly on top of my run function, yet I still get warning 054
DLLFUNC void run()
{
brokerCommand(SET_PATCH, 16 + 32 + 64);
NumCores = 12;
assetList("AssetsDefault.csv");
set(PLOTNOW + LOG + PARAMETERS + FACTORS + TICKS + RISKLIMIT);
BarPeriod = 60;
LookBack = 600;
StartDate = 2019;
NumWFOCycles = 12;
DataSplit = 80;
Capital = 2500;
StartWeek = 72100;
EndWeek = 52100;
BarMode = BR_WEEKEND + BR_SLEEP;
OptimalFRatio = 3;
if (Train)
{
Detrend = TRADES;
}
if (ReTrain) {
UpdateDays = -1;
SelectWFO = -1;
reset(FACTORS);
}
static std::map<std::string, bool> tradeOpen;
static std::map<std::string, int> isTaken;
if (is(INITRUN))
{
brokerCommand(SET_ORDERTEXT, (DWORD)LABEL);
}
while (asset(loop(Assets)))
{
MyAlgoGoesHere();
}
}
I don't know if for DLLs there is a special way to declare the set_patch! If you could enlighten this again for me I'll be very thankful best regards Leo Hermoso
|
|
|
Re: AssetsXXX.csv fields
[Re: aelagha]
#480019
05/13/20 16:25
05/13/20 16:25
|
Joined: Mar 2019
Posts: 357
danatrader
Senior Member
|
Senior Member
Joined: Mar 2019
Posts: 357
|
If MT4/5 maybe this is relevant? https://zorro-trader.com/manual/en/mt4plugin.htm#remarksSome MTR4/5 servers need a long time for the initial access of the price history of previously unused assets. This can cause a timeout. The strategy will then not start, and a Error 054 or Error 055 message is displayed. In that case just restart the strategy by clicking [Trade] again. Inbetween the server had enough time to upload the missing asset. You might need to repeat that step a few times until all assets load properly.
|
|
|
|