288 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
61
views
MQL4 iCustom return Empty value for some buffers but not all
I have the following indicator, that compiles and shows the arrows properly when attached to a chart. When I try to use iCustom to get values from the indicator buffers I get the empty value for the ...
0
votes
1
answer
68
views
How can I detect when MACD visually touches the RSI in an MQL4/MQL5 indicator window for trade signals?
I'm developing an Expert Advisor in MQL4/MQL5 that should trigger trade orders based on the visual interaction of two indicators—the MACD and the RSI—displayed in the same indicator window. The idea ...
1
vote
1
answer
62
views
How To Find Document With Child Array Where Child Has An Id
I hope someone can help.
I have inherited a project using an atlas mongo db. I has been asked to get data from a collection. Assume documents are structured in the collection like this:
{ _id: '...
0
votes
0
answers
116
views
Writing a mql5 function that calculates the profit and loss of a position in cash
I would like to make an EA that calculates the loss in cash in the account's currency base. This function is considered as an essential function for all the profitable multi-currency trading EAs that ...
0
votes
0
answers
118
views
MQL/PromQL CPU query for Google Cloud Monitoring
I'd like to create a query that would basically give me the CPU metrics for the top 5 used containers, but everything I've tried just doesn't work at all. The CPU metric can be something like "...
2
votes
1
answer
49
views
Double value dont pass in if condition
I am trying to check candle high,low, open and close for gold in mql5. in if condition it pass only both are same, other wise none are passing through.
i have print value and it's all ok, below are ...
0
votes
0
answers
332
views
MQL\TCL script for Collaborative Space in Enovia
I'd like to make a filter for persons which are 'active' AND are in a specific collaborative space (namely Example_CS).
My script is a mix of MQL and TCL.
My problem is that if I handle persons as ...
-1
votes
2
answers
602
views
MQL5 WebRequest send json
input string WebhookURL = "https://discord.com/api/webhooks/1288029176930242621/t-npSVLA5x8hv2QqAI8KfXbsiAXAtBMQcYyZyuuSYeFBOzr-AT-ldGGPAIXwUgeMOfB0";
void SendDiscordMessage(string message)...
-1
votes
1
answer
50
views
Getting last days prices on iLow(NULL,PERIOD_H1,0)
i have an expert advisor that runs on daily timeframe, in it i need to get a few candles low prices. candles are from 1 to 7; when i use iLow(NULL,,PERIOD_H1,0) till iLow(NULL,,PERIOD_H1,7) i get ...
0
votes
2
answers
102
views
MT4 - mql4 function for close any opened sell position?
I'm not very familiar with mt4.
I want to close any sell position that is available, and if it is not available open a new buy position every time that function is executed. any solution or idea. I ...
0
votes
1
answer
117
views
Getting syntax error for JOIN applied between two metrics
Writing first MQL query to achieve below:
reads log from a metric "logging.googleapis.com/user/count_verify_country" which has a field COUNTRY
reads log from another metric "logging....
0
votes
1
answer
332
views
403 error authenticating dxtrade.ftmo.com
I am actually trying to authenticate the dxtrade through the following code. The issue I am facing is getting 403 error, as:
2024年06月20日 08:55:44.748 DxTradeBridge (USDCHF,H1) login > Server ...
0
votes
2
answers
153
views
time check to open a position does not work as expected in backTest (Strategy tester)
i have an expert advisor that opens positions each day at 1:10am only. it works perfectly on chart on forward test but when i try to back test it using strategy tester, i see that it opens positions ...
0
votes
0
answers
122
views
Can't get update data from metatrader5 in Python
I want to get stock data from mt5 in Python, but the last 12 candles aren't available.
My code is like below:
from_date = datetime.now()
# Extract n Ticks before now
rates = mt5.copy_rates_from(symbol,...
0
votes
1
answer
574
views
MQL5 How to find lastest history order ticket?
I am writing an EA program using MQL5, and now I encounter a problem. I want to get the order number of the last closed order (as shown below, the target order number is 2308697611). I have tried many ...