In the input parameters there is a comment: "How many bars to save the signal from MA crossing". That is, if the MA crossing signal was. for example, on the third bar, and the Low bar of the MA crossing was broken only now, the position will still open if barsToSaveSignal >3.
Fduch писал(а)>> In the input parameters there is a comment: "How many bars to keep the signal from MA crossing". That is, if the MA crossing signal was. for example, on the third bar, and the Low bar of the MA crossing was broken only now, the position will still open if barsToSaveSignal >3.
I have a question. Why does my Expert Advisor close a position on a profit and then opens a new position on a profit without waiting for MA crossing and then once again... In theory, one crossover means one position opening, if the signal is confirmed.
I have a question. The Expert Advisor closes a position on the profit side and opens a new position on the profit side without waiting for MA crossing and then once again... The idea is that one cross is one position opening, if the signal is confirmed.
I warned about barsToSaveSignal. The Expert Advisor "remembers" the crossing during barsToSaveSignal
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hm... the Expert Advisor is giving 100+ pips of profit on D1 period only...
P. S. I advise not to set barsToSaveSignal too high.
Hmmm... expert gives 100+ pips of profit for September on D1 period only...
P. S. I advise not to set barsToSaveSignal too large.
Thank you, I will try to do it now). And what is barsToSaveSignal?
In the input parameters there is a comment: "How many bars to keep the signal from MA crossing". That is, if the MA crossing signal was. for example, on the third bar, and the Low bar of the MA crossing was broken only now, the position will still open if barsToSaveSignal >3.
>> Got it, thanks.)
>> Got it, thanks.)
I have a question. Why does my Expert Advisor close a position on a profit and then opens a new position on a profit without waiting for MA crossing and then once again... In theory, one crossover means one position opening, if the signal is confirmed.
Made to the best of my understanding of the ToR, have a look
Made to the best of my understanding of the ToR, have a look
>> Thank you, I'm looking)
I have a question. The Expert Advisor closes a position on the profit side and opens a new position on the profit side without waiting for MA crossing and then once again... The idea is that one cross is one position opening, if the signal is confirmed.
I warned about barsToSaveSignal. The Expert Advisor "remembers" the crossing during barsToSaveSignal
I warned about barsToSaveSignal. The Expert Advisor "remembers" bars crossed during barsToSaveSignal
A trade already executed should cancel it. >> That's how I see it.)
Because the global variables that give the command to open an order should be reset after they have been used once. But this is not done.