#include <profile.c>
#include <default.c>
#define SYMBOLS "EUR/USD","USD/JPY","EUR/JPY"//
#define TO_M15 0
#define TO_H1 4
#define TO_H4 8
#define TO_READ 0
#define DATA_OK 1
#define CSV_BEGIN 2
void loadPredict(const string idx, const int nHandle){
string InName = strf("FI_%s_%s.csv",strx(Asset,"/",""),idx); // name of a single year CSV file
watch("FILE:",InName," HND: ",nHandle);
}
function run(){
if (is(INITRUN)){
Script = "Omega";
BarPeriod = 15; // 15 min
LookBack = 1;
int i=0;
while(asset(loop(SYMBOLS))){
AssetInt[CSV_BEGIN+TO_M15]=i*3;
AssetInt[CSV_BEGIN+TO_H1]=AssetInt[CSV_BEGIN+TO_M15]+1;
AssetInt[CSV_BEGIN+TO_H4]=AssetInt[CSV_BEGIN+TO_M15]+2;
loadPredict("M15",AssetInt[CSV_BEGIN+TO_M15]);
loadPredict("H1",AssetInt[CSV_BEGIN+TO_H1]);
loadPredict("H4",AssetInt[CSV_BEGIN+TO_H4]);
i++;
}
while(asset(loop(SYMBOLS))){
watch(Asset," HND: ",AssetInt[CSV_BEGIN+TO_M15]);
}
}
quit("#Only INIT!");
}