Questions from Beginners MQL5 MT5 MetaTrader 5 - page 413
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
It's not clear what was meant?
I meant the following:Insert the code correctly in the forum
I see. I check the location of the tenkan and the kinjun on the first and second candle. If there is a signal, I enter an alert. But I would like it to be a one time thing. Please help me. Here is the code.
I see. I check the location of the tenkan and the kinjun on the first and second candle. If there is a signal, I enter an alert. But I would like it to be a one time thing. Please help me. Here is the code.
Not more than one alert on one bar:
There is no more than one alert per bar:
Hi All!
How to make an EA to skip 1 signal after a losing trade? ( very good Z-strategy )
Explain in words, the code itself is able to implement.
Hi All!
How to make an EA to skip 1 signal after a losing trade? ( very good Z-strategy )
Explain in words, the code itself is able to implement.
At a loss give a certain value to the global variable of the terminal and reset it to zero at the first signal. The trading function monitors this value and decides whether to open a new trade or not.
In other words, the work order is approximately as follows:
a) Track profit;
b) count signals, check the checkbox in case of loss, if there is no other signal to trade yet, reset the checkbox when the first signal after the loss occurs;
c) check the box and decide whether to trade or wait.
It is more convenient to use GPT, they are saved when the terminal crashes, simple variables in the code can be reset by any sneeze and the Expert Advisor will work with errors.
At a loss, assign a certain value to the terminal's global variable and reset it to zero at the first signal. The trading function monitors this value and decides whether to open a new trade or not.
That is, the order of work is approximately the following:
a) Track profit;
b) count signals, check the box in case of a loss, if we haven't yet had another signal to trade, reset the box when the first signal comes in after a loss;
c) check the box and decide whether to trade or wait.
GPT is more convenient to use, they are saved when the terminal crashes, simple variables in the code can be reset by any sneeze and the Expert Advisor will work with errors.
Got it all but one . How to make a signal counter?
spits
sl = NormalizeDouble(sl,MarketInfo(symbol,MODE_DIGITS));
possible loss of data due to type conversion .mq4 1697 29
type Doble at SL.