Find the Git repository and all the links here: github.com/ReneBalke/CommitmentsOfTradersMQL5Indicator If you have any questions or want to talk about strategy development with other traders, make sure to join the Automated Traders Elite: www.skool.com/automated-traders-elite/about
Oh my God, I didn't know about APIs. I was scraping the web page line by line. Thanks, Rene , for this although my method also works ,this is a bit straightforward
@@ReneBalke Yes I understand that but I think many people are interested in this kind of EAs because I saw it a few times in your comment section under other videos with likes on them too. I’m also interested to see how this EAs are coded in MQL5 even if it will just run on a demo account. But thanks for showing many great codes and keep going!
Rene is right, additionally all HFT strategies exploit latency arbitrage, or in other words they pay large sums of money to be physically located as close as possible to the trade server. If you dont have the extra money to rent a server in close proximity to the trade server, then you're wasting your time@@ReneBalke
Great job! But looks like the most recent data from this API is from 2022 check the week date report. I cant get last week, I may be doing something wrong.
Yeah that is super weird and confusing. The API provides the full data but it is not sorted correctly. You can sort it yourself. I show it in the video ;)
EasyLanguage Code Inputs: // Monday Inputs MonStartTime(930), MonEndTime(2230), MonDayExitTime(2300), MonEMALength(12), MonADXLength(19), MonADXThreshold(10), MonTakeProfit(1.0115), MonStopLoss(0.9856), MonEntryCandle(1.0007), MonRSILength(30), MonRSIThreshold(59), MondayTrades(True), // Tuesday Inputs TueStartTime(800), TueEndTime(2000), TueDayExitTime(2200), TueEMALength(2), TueADXLength(15), TueADXThreshold(18), TueTakeProfit(1.0118), TueStopLoss(0.9926), TueEntryCandle(1.0012), TueRSILength(35), TueRSIThreshold(62), TuesdayTrades(True), // Wednesday Inputs WedStartTime(900), WedEndTime(1300), WedDayExitTime(2100), WedEMALength(20), WedADXLength(9), WedADXThreshold(17), WedTakeProfit(1.0118), WedStopLoss(0.9913), WedEntryCandle(1.001), WedRSILength(14), WedRSIThreshold(70), WednesdayTrades(True), // Thursday Inputs ThuStartTime(900), ThuEndTime(1500), ThuDayExitTime(2230), ThuEMALength(34), ThuADXLength(15), ThuADXThreshold(18), ThuTakeProfit(1.0079), ThuStopLoss(0.9937), ThuEntryCandle(1.0009), ThuRSILength(14), ThuRSIThreshold(70), ThursdayTrades(True), // Friday Inputs FriStartTime(930), FriEndTime(1500), FriDayExitTime(1530), FriEMALength(16), FriADXLength(12), FriADXThreshold(18), FriTakeProfit(1.0157), FriStopLoss(0.987), FriEntryCandle(1), FriRSILength(20), FriRSIThreshold(66), FridayTrades(True); Variables: EMAValue(0), ADXValue(0), RSIValue(0), MyEntryPrice(0), StopLossLevel(0), TakeProfitLevel(0); // Monday Logic If DayOfWeek(Date) = 1 and MondayTrades then begin EMAValue = XAverage(Close, MonEMALength); ADXValue = ADX(MonADXLength); RSIValue = RSI(Close, MonRSILength); If MarketPosition = 0 and Time > MonStartTime and Time < MonEndTime and Close > EMAValue and Close / Open > MonEntryCandle and ADXValue > MonADXThreshold and RSIValue < MonRSIThreshold then begin Buy ("Mon Long Entry") next bar at market; MyEntryPrice = Close; StopLossLevel = MyEntryPrice * MonStopLoss; TakeProfitLevel = MyEntryPrice * MonTakeProfit; end; If MarketPosition = 1 then begin If Low = TakeProfitLevel then Sell ("Mon Take Profit Exit") next bar at market; If Time >= MonDayExitTime then Sell ("Mon Day Exit") next bar at market; end; end; // Tuesday Logic If DayOfWeek(Date) = 2 and TuesdayTrades then begin EMAValue = XAverage(Close, TueEMALength); ADXValue = ADX(TueADXLength); RSIValue = RSI(Close, TueRSILength); If MarketPosition = 0 and Time > TueStartTime and Time < TueEndTime and Close > EMAValue and Close / Open > TueEntryCandle and ADXValue > TueADXThreshold and RSIValue < TueRSIThreshold then begin Buy ("Tue Long Entry") next bar at market; MyEntryPrice = Close; StopLossLevel = MyEntryPrice * TueStopLoss; TakeProfitLevel = MyEntryPrice * TueTakeProfit; end; If MarketPosition = 1 then begin If Low = TakeProfitLevel then Sell ("Tue Take Profit Exit") next bar at market; If Time >= TueDayExitTime then Sell ("Tue Day Exit") next bar at market; end; end; // Wednesday Logic If DayOfWeek(Date) = 3 and WednesdayTrades then begin EMAValue = XAverage(Close, WedEMALength); ADXValue = ADX(WedADXLength); RSIValue = RSI(Close, WedRSILength); If MarketPosition = 0 and Time > WedStartTime and Time < WedEndTime and Close > EMAValue and Close / Open > WedEntryCandle and ADXValue > WedADXThreshold and RSIValue < WedRSIThreshold then begin Buy ("Wed Long Entry") next bar at market; MyEntryPrice = Close; StopLossLevel = MyEntryPrice * WedStopLoss; TakeProfitLevel = MyEntryPrice * WedTakeProfit; end; If MarketPosition = 1 then begin If Low = TakeProfitLevel then Sell ("Wed Take Profit Exit") next bar at market; If Time >= WedDayExitTime then Sell ("Wed Day Exit") next bar at market; end; end; // Thursday Logic If DayOfWeek(Date) = 4 and ThursdayTrades then begin EMAValue = XAverage(Close, ThuEMALength); ADXValue = ADX(ThuADXLength); RSIValue = RSI(Close, ThuRSILength); If MarketPosition = 0 and Time > ThuStartTime and Time < ThuEndTime and Close > EMAValue and Close / Open > ThuEntryCandle and ADXValue > ThuADXThreshold and RSIValue < ThuRSIThreshold then begin Buy ("Thu Long Entry") next bar at market; MyEntryPrice = Close; StopLossLevel = MyEntryPrice * ThuStopLoss; TakeProfitLevel = MyEntryPrice * ThuTakeProfit; end; If MarketPosition = 1 then begin If Low = TakeProfitLevel then Sell ("Thu Take Profit Exit") next bar at market; If Time >= ThuDayExitTime then Sell ("Thu Day Exit") next bar at market; end; end; // Friday Logic If DayOfWeek(Date) = 5 and FridayTrades then begin EMAValue = XAverage(Close, FriEMALength); ADXValue = ADX(FriADXLength); RSIValue = RSI(Close, FriRSILength); If MarketPosition = 0 and Time > FriStartTime and Time < FriEndTime and Close > EMAValue and Close / Open > FriEntryCandle and ADXValue > FriADXThreshold and RSIValue < FriRSIThreshold then begin Buy ("Fri Long Entry") next bar at market; MyEntryPrice = Close; StopLossLevel = MyEntryPrice * FriStopLoss; TakeProfitLevel = MyEntryPrice * FriTakeProfit; end; If MarketPosition = 1 then begin If Low = TakeProfitLevel then Sell ("Fri Take Profit Exit") next bar at market; If Time >= FriDayExitTime then Sell ("Fri Day Exit") next bar at market; end; end;
René, I don't know why I am feeling that forex as come to its verge of collapse because of crypto Can we start working on crypto now? Please what do u think
Find the Git repository and all the links here: github.com/ReneBalke/CommitmentsOfTradersMQL5Indicator
If you have any questions or want to talk about strategy development with other traders, make sure to join the Automated Traders Elite: www.skool.com/automated-traders-elite/about
Oh my God, I didn't know about APIs. I was scraping the web page line by line. Thanks, Rene , for this although my method also works ,this is a bit straightforward
Wuao, with your tutorial we can draw the line on W1 and then visualize it on lower TF. Good work follow the smart money
Legend, epic stuff once again.
Hello René, can you make a Video about HFT EAs or show how to create one? :)
To be honest I do not think HFT EAs can even work. The only one getting rich is the broker because of the fees you pay.
@@ReneBalke Yes I understand that but I think many people are interested in this kind of EAs because I saw it a few times in your comment section under other videos with likes on them too. I’m also interested to see how this EAs are coded in MQL5 even if it will just run on a demo account.
But thanks for showing many great codes and keep going!
@@ReneBalke
Rene is right, additionally all HFT strategies exploit latency arbitrage, or in other words they pay large sums of money to be physically located as close as possible to the trade server. If you dont have the extra money to rent a server in close proximity to the trade server, then you're wasting your time@@ReneBalke
@@ReneBalke HFT is mostly used on indices because their is no fees on pairs like US30 with most brokers. Would also like to see some videos about it!
Great job! But looks like the most recent data from this API is from 2022 check the week date report. I cant get last week, I may be doing something wrong.
Yeah that is super weird and confusing. The API provides the full data but it is not sorted correctly. You can sort it yourself. I show it in the video ;)
nice job!
Good day, Rene ! I copied your include files, but they done in mql4,few erros every file
Hmm do you use the MT4? I did not have any errors in MT5
Rene, do a backtest of this strategy. Is easy lenguaje, 17k dd, 363k profit since 2018 for nq
EasyLanguage Code
Inputs:
// Monday Inputs
MonStartTime(930),
MonEndTime(2230),
MonDayExitTime(2300),
MonEMALength(12),
MonADXLength(19),
MonADXThreshold(10),
MonTakeProfit(1.0115),
MonStopLoss(0.9856),
MonEntryCandle(1.0007),
MonRSILength(30),
MonRSIThreshold(59),
MondayTrades(True),
// Tuesday Inputs
TueStartTime(800),
TueEndTime(2000),
TueDayExitTime(2200),
TueEMALength(2),
TueADXLength(15),
TueADXThreshold(18),
TueTakeProfit(1.0118),
TueStopLoss(0.9926),
TueEntryCandle(1.0012),
TueRSILength(35),
TueRSIThreshold(62),
TuesdayTrades(True),
// Wednesday Inputs
WedStartTime(900),
WedEndTime(1300),
WedDayExitTime(2100),
WedEMALength(20),
WedADXLength(9),
WedADXThreshold(17),
WedTakeProfit(1.0118),
WedStopLoss(0.9913),
WedEntryCandle(1.001),
WedRSILength(14),
WedRSIThreshold(70),
WednesdayTrades(True),
// Thursday Inputs
ThuStartTime(900),
ThuEndTime(1500),
ThuDayExitTime(2230),
ThuEMALength(34),
ThuADXLength(15),
ThuADXThreshold(18),
ThuTakeProfit(1.0079),
ThuStopLoss(0.9937),
ThuEntryCandle(1.0009),
ThuRSILength(14),
ThuRSIThreshold(70),
ThursdayTrades(True),
// Friday Inputs
FriStartTime(930),
FriEndTime(1500),
FriDayExitTime(1530),
FriEMALength(16),
FriADXLength(12),
FriADXThreshold(18),
FriTakeProfit(1.0157),
FriStopLoss(0.987),
FriEntryCandle(1),
FriRSILength(20),
FriRSIThreshold(66),
FridayTrades(True);
Variables:
EMAValue(0),
ADXValue(0),
RSIValue(0),
MyEntryPrice(0),
StopLossLevel(0),
TakeProfitLevel(0);
// Monday Logic
If DayOfWeek(Date) = 1 and MondayTrades then begin
EMAValue = XAverage(Close, MonEMALength);
ADXValue = ADX(MonADXLength);
RSIValue = RSI(Close, MonRSILength);
If MarketPosition = 0 and Time > MonStartTime and Time < MonEndTime and
Close > EMAValue and Close / Open > MonEntryCandle and ADXValue > MonADXThreshold and RSIValue < MonRSIThreshold then
begin
Buy ("Mon Long Entry") next bar at market;
MyEntryPrice = Close;
StopLossLevel = MyEntryPrice * MonStopLoss;
TakeProfitLevel = MyEntryPrice * MonTakeProfit;
end;
If MarketPosition = 1 then begin
If Low = TakeProfitLevel then
Sell ("Mon Take Profit Exit") next bar at market;
If Time >= MonDayExitTime then
Sell ("Mon Day Exit") next bar at market;
end;
end;
// Tuesday Logic
If DayOfWeek(Date) = 2 and TuesdayTrades then begin
EMAValue = XAverage(Close, TueEMALength);
ADXValue = ADX(TueADXLength);
RSIValue = RSI(Close, TueRSILength);
If MarketPosition = 0 and Time > TueStartTime and Time < TueEndTime and
Close > EMAValue and Close / Open > TueEntryCandle and ADXValue > TueADXThreshold and RSIValue < TueRSIThreshold then
begin
Buy ("Tue Long Entry") next bar at market;
MyEntryPrice = Close;
StopLossLevel = MyEntryPrice * TueStopLoss;
TakeProfitLevel = MyEntryPrice * TueTakeProfit;
end;
If MarketPosition = 1 then begin
If Low = TakeProfitLevel then
Sell ("Tue Take Profit Exit") next bar at market;
If Time >= TueDayExitTime then
Sell ("Tue Day Exit") next bar at market;
end;
end;
// Wednesday Logic
If DayOfWeek(Date) = 3 and WednesdayTrades then begin
EMAValue = XAverage(Close, WedEMALength);
ADXValue = ADX(WedADXLength);
RSIValue = RSI(Close, WedRSILength);
If MarketPosition = 0 and Time > WedStartTime and Time < WedEndTime and
Close > EMAValue and Close / Open > WedEntryCandle and ADXValue > WedADXThreshold and RSIValue < WedRSIThreshold then
begin
Buy ("Wed Long Entry") next bar at market;
MyEntryPrice = Close;
StopLossLevel = MyEntryPrice * WedStopLoss;
TakeProfitLevel = MyEntryPrice * WedTakeProfit;
end;
If MarketPosition = 1 then begin
If Low = TakeProfitLevel then
Sell ("Wed Take Profit Exit") next bar at market;
If Time >= WedDayExitTime then
Sell ("Wed Day Exit") next bar at market;
end;
end;
// Thursday Logic
If DayOfWeek(Date) = 4 and ThursdayTrades then begin
EMAValue = XAverage(Close, ThuEMALength);
ADXValue = ADX(ThuADXLength);
RSIValue = RSI(Close, ThuRSILength);
If MarketPosition = 0 and Time > ThuStartTime and Time < ThuEndTime and
Close > EMAValue and Close / Open > ThuEntryCandle and ADXValue > ThuADXThreshold and RSIValue < ThuRSIThreshold then
begin
Buy ("Thu Long Entry") next bar at market;
MyEntryPrice = Close;
StopLossLevel = MyEntryPrice * ThuStopLoss;
TakeProfitLevel = MyEntryPrice * ThuTakeProfit;
end;
If MarketPosition = 1 then begin
If Low = TakeProfitLevel then
Sell ("Thu Take Profit Exit") next bar at market;
If Time >= ThuDayExitTime then
Sell ("Thu Day Exit") next bar at market;
end;
end;
// Friday Logic
If DayOfWeek(Date) = 5 and FridayTrades then begin
EMAValue = XAverage(Close, FriEMALength);
ADXValue = ADX(FriADXLength);
RSIValue = RSI(Close, FriRSILength);
If MarketPosition = 0 and Time > FriStartTime and Time < FriEndTime and
Close > EMAValue and Close / Open > FriEntryCandle and ADXValue > FriADXThreshold and RSIValue < FriRSIThreshold then
begin
Buy ("Fri Long Entry") next bar at market;
MyEntryPrice = Close;
StopLossLevel = MyEntryPrice * FriStopLoss;
TakeProfitLevel = MyEntryPrice * FriTakeProfit;
end;
If MarketPosition = 1 then begin
If Low = TakeProfitLevel then
Sell ("Fri Take Profit Exit") next bar at market;
If Time >= FriDayExitTime then
Sell ("Fri Day Exit") next bar at market;
end;
end;
René, I don't know why I am feeling that forex as come to its verge of collapse because of crypto
Can we start working on crypto now?
Please what do u think
good