Job finished
Specification
Bot 1 - Add The Day of the Week as an "Input" eg - Day or Date (True / False)
Bot 2 - Add Currency Time (See code below) and Account Number / expiry
Candle OCO Trader
This EA is working well and trades based on a "Date" input - I want it changed to Add the "Day" of the week (Mon - Fri - True False)
Please also see Other Mod Job (Below)
Bot 2 - News Trader
1. Add the following code (below) to enable Time Zones for different currencies and (Test it works)
2. Add Code (Below) Account Number and Expiry
3.Also Check and fix the Bot as its not Setting on Place Order "Candle High and Candle low" (True / false)
input int InpHourDif_USD=2;//Time Difference USD [Hours]
input int InpMinuteDif_USD=0;//Time Difference USD [Minutes]
input int InpHourDif_NZD=2;//Time Difference NZD [Hours]
input int InpMinuteDif_NZD=0;//Time Difference NZD [Minutes]
input int InpHourDif_CAD=2;//Time Difference CAD [Hours]
input int InpMinuteDif_CAD=0;//Time Difference CAD [Minutes]
input int InpHourDif_AUD=2;//Time Difference AUD [Hours]
input int InpMinuteDif_AUD=0;//Time Difference AUD [Minutes]
input int InpHourDif_JPY=2;//Time Difference JPY [Hours]
input int InpMinuteDif_JPY=0;//Time Difference JPY [Minutes]
input int InpHourDif_GBP=2;//Time Difference GBP [Hours]
input int InpMinuteDif_GBP=0;//Time Difference GBP [Minutes]
input int InpHourDif_EUR=2;//Time Difference EUR [Hours]
input int InpMinuteDif_EUR=0;//Time Difference EUR [Minutes]
input int InpHourDif_CHF=2;//Time Difference CHF [Hours]
input int InpMinuteDif_CHF=0;//Time Difference CHF [Minutes]
input int InpHourDif_CNY=2;//Time Difference CNY [Hours]
input int InpMinuteDif_CNY=0;//Time Difference CNY [Minutes]
And this code.....
const int AccountNumber_ = 0;
const datetime ExpirationTIme = D'2022.11.2';
//---
Comment("");
if (AccountNumber_ > 0 && AccountNumber() != AccountNumber_)
{
string str = "Invalid account number! Please contact the owner...";
Comment(str);
Print(str);
return(INIT_FAILED);
}
if (ExpirationTIme > 0 && TimeCurrent() >= ExpirationTIme)
{
string str = "EA Expired! Please contact the owner...";
Comment(str);
Print(str);
return(INIT_FAILED);
}