#property indicator_color1 DodgerBlue // up[] #property indicator_color2 Red // down[]If first buffer iCustom(..., 0, i) is not EMPTY_VALUE it is blue.
If second buffer iCustom(..., 1, i) is not EMPTY_VALUE it is red.
Detailed explanation of iCustom -
MQL4 and MetaTrader 4 - MQL4 programming forum
whroeder1:
If first buffer iCustom(..., 0, i) is not EMPTY_VALUE it is blue.
If first buffer iCustom(..., 0, i) is not EMPTY_VALUE it is blue.
If second buffer iCustom(..., 1, i) is not EMPTY_VALUE it is red.
Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum
But now it gives many alarm (50 times).
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
whroeder1:
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
Now it just sends sell signal. When I open blue trend chart it gives a sell signal. But it is blue, should give me buy signal. And when I add indicator chart freezing. I can't use.
You are looking at a signal. Act on a change of signal.
MQL4 (in Strategy Tester) - double testing of entry conditions - Strategy Tester - Expert Advisors and Automated Trading - MQL5 programming forum
Do you really expect an answer?
We can't see your broken code.
There are no mind readers here and our crystal balls are cracked.
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
Hi,
I'm using HalfTrend-1.02, And I have indicator's .mq4 file. My problem is if indicator's line is blue, give me 1 value, or if it's red give me 0 value. How can i do that?
example;
if line is red { Sell = True}
if line is blue {Buy = True}