forked from vzhomeexperiments/FALCON_A
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_CopyDATFilesToProd_Maintain.bat
35 lines (25 loc) · 1.13 KB
/
_CopyDATFilesToProd_Maintain.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rem Script to copy DAT files from tester to Files folder of the Terminals
rem IMPORTANT: This script will also clean up all relevant files to start from the beginning
rem To be used to start from the beginning
@echo off
setlocal enabledelayedexpansion
:: files generated in the tester\files folder
set SOURCE_DIR="%PATH_T2_T%\tester\files"
:: files copied to the sandbox folder MQL4\Files
set DEST_DIR1="%PATH_T1%"
set DEST_DIR2="%PATH_T3%"
set DEST_DIR3="%PATH_T4%"
rem only copy *.dat files
ROBOCOPY %SOURCE_DIR% %DEST_DIR1% *.dat
ROBOCOPY %SOURCE_DIR% %DEST_DIR2% *.dat
ROBOCOPY %SOURCE_DIR% %DEST_DIR3% *.dat
::pause
:: ### TERMINAL 1 ###
:: delete Order Results files
:: ### TERMINAL 3 ###
:: delete files with Reinforcement Learning Policy
del "%PATH_T3%\SystemControlMT*.csv" \q
:: delete control files with extension *.rds
del "%PATH_DSS_Repo%\R_tradecontrol\_RL_MT\control\*.rds" \q
:: delete data in the file OrdersResultsT1.csv related to the updated systems, also disable sytems in T3
::"C:\Program Files\R\R-3.5.2\bin\Rscript.exe" "C:\Users\fxtrams\Documents\000_TradingRepo\R_tradecontrol\_OT\delete_data_of_re_trained_bots_market_type.R"