Posted By: Grat
Problem with history from MT4 - 09/16/20 18:37
Hi,
situation:
- I have a gap in the symbol.t6
2020.09.16 08:30 1,29013 1,29013 1,29013 1,29013 0 105,066666
2020.08.06 11:48 1,31694 1,317 1,31659 1,31666 0 105
2020.08.06 11:47 1,31698 1,31712 1,31693 1,31693 0 97,86667
2020.08.06 11:46 1,31719 1,31723 1,31692 1,31698 0 92,73333
- I have all M1 data in the MT4 for this symbol
I trying many way, how to repare this:
a) delete file symbol.t6 and run script download.c / working
b) run script without delete file and run script download.c / not working
c) run script withoud delete with and run script download.c with option OVERRIDE / not working
version 2.30 - if running the trade AOS - not save new candle into symbol.t6 ( 2.32 also not )
I trying found any SW function ( I not happy with this )
I have a Idea:
bool checkHistory(){
// becouse I not found the fce how to add new data in the middle symbol.t6
// load data into dataset
loadMaster(); // work OK
loadMissingData(). // prepare second dataset
mergeData(dts1,dts2)
// save complete dataset
saveData(dst,symbol.t6)
return true;
}
Is a correct way? I exist any simplest solution?
update 2020/09/17:
+ load data from t6 working
- still I cannot found how to download exact M1 bar from the MT4
ee this
zorro code:
and this is I know, how to read in MT4
but I don't know, how to get returned data / respond(cmd,arr,4) / in zorro
First M1 candle: (4) = 7:0 (20-01-02 07:00)
GAP: (4) = 48:47 (20-01-02 21:48)
Master (252776): (4) = 21:49 (20-01-02 21:49)
Master (252777): (4) = 21:48 (20-01-02 21:48) < -- 21:47 mis
Master (252778): (4) = 21:46 (20-01-02 21:46)
Master (252779): (4) = 21:45 (20-01-02 21:45)
Finish M1 candle: (4) = 21:48 (20-01-02 21:48)
thank's Milan
situation:
- I have a gap in the symbol.t6
Quote
2020.09.16 08:30 1,29013 1,29013 1,29013 1,29013 0 105,066666
2020.08.06 11:48 1,31694 1,317 1,31659 1,31666 0 105
2020.08.06 11:47 1,31698 1,31712 1,31693 1,31693 0 97,86667
2020.08.06 11:46 1,31719 1,31723 1,31692 1,31698 0 92,73333
- I have all M1 data in the MT4 for this symbol
I trying many way, how to repare this:
a) delete file symbol.t6 and run script download.c / working
b) run script without delete file and run script download.c / not working
c) run script withoud delete with and run script download.c with option OVERRIDE / not working
version 2.30 - if running the trade AOS - not save new candle into symbol.t6 ( 2.32 also not )
I trying found any SW function ( I not happy with this )
I have a Idea:
bool checkHistory(){
// becouse I not found the fce how to add new data in the middle symbol.t6
// load data into dataset
loadMaster(); // work OK
loadMissingData(). // prepare second dataset
mergeData(dts1,dts2)
// save complete dataset
saveData(dst,symbol.t6)
return true;
}
Code
bool loadMaster(string InName){ masterRec = dataLoad(MASTER,InName,7); if(!masterRec) { printf("\nCan't open %s",InName); return false; } printf("\n%i bars",masterRec); return true; }
Is a correct way? I exist any simplest solution?
update 2020/09/17:
+ load data from t6 working
- still I cannot found how to download exact M1 bar from the MT4
ee this
zorro code:
Code
var dSend[10]; dSend[0]=1; dSend[1]=1600326000; dSend[2]=1600326060; dSend[3]=1; brokerCommand(3001,dSend);
and this is I know, how to read in MT4
Code
switch(command) { case GET_HISTORY: Print("Command ",command,": ",arr[1]," ",arr[2]," ",arr[3]); arr[0]=0.0; arr[1]=1.0; arr[2]=2.0; arr[3]=3.0; respond(cmd,arr,4); break; ....
but I don't know, how to get returned data / respond(cmd,arr,4) / in zorro
Quote
First M1 candle: (4) = 7:0 (20-01-02 07:00)
GAP: (4) = 48:47 (20-01-02 21:48)
Master (252776): (4) = 21:49 (20-01-02 21:49)
Master (252777): (4) = 21:48 (20-01-02 21:48) < -- 21:47 mis
Master (252778): (4) = 21:46 (20-01-02 21:46)
Master (252779): (4) = 21:45 (20-01-02 21:45)
Finish M1 candle: (4) = 21:48 (20-01-02 21:48)
thank's Milan