Shit... what are you smoking? Where do you get your cigarettes from? Owl went to the shop and bought some... And then some funk came along and ruined everything.
Bummer...
What a double-edged question) Options for interpretation are as follows:
1. Supposed to find out if you smoke at all.
2. What you smoke.
3. Where and on what plantations it grows. So to speak, I want one too. ))))))
I could do some more, but I don't think so. If you're a smoker, you'd better keep a low profile, or you're going to get smoked. They'll find you...
I am trying to solve the following problem - three consecutive bullish bars, MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. It doesn't work on the test runs and the MA either. Help!!!!!!
Here is my awkward code, where did I mess up?
void CheckForOpen()
{
int ticket, STOPLEVEL;
double Price, SL, TP;
STOPLEVEL=MarketInfo(Symbol(),MODE_STOPLEVEL);
double MA_1 = iMA(Symbol(),0,MA_Period,MA_Shift,MA_Method,PRICE_CLOSE,1);
double MaCD_1 = iMACD(Symbol(),0,FastEMA,SlowEMA,SignalSMA,0,MODE_MAIN,1);
double MaCD_2 = iMACD(Symbol(),0,FastEMA,SlowEMA,SignalSMA,0,MODE_MAIN,2);
if(Volume[0]>1) return;
//---- buy conditionsif (Open[3]<Close[3] && Open[2]<Close[2] && Open[1]<Close[1])
if (Low[1]>MA_1)
if (MaCD_1>0 && MaCD_2>0 && MaCD_1>MaCD_2)// покупка
{
Price = NormalizeDouble(Ask, Digits); // округляем до нужного нам числа цифр после запятойif(StopLoss >= STOPLEVEL)
{
SL = iLow(Symbol(),0,3); // вычисляем стоплос
SL = NormalizeDouble(SL, Digits); // округляем до нужного нам числа цифр после запятой
}
else SL = 0;
if(TakeProfit > 0)
{
TP = Price + TakeProfit*Point; // вычисляем тейкпрофит
TP = NormalizeDouble(TP, Digits); // округляем до нужного нам числа цифр после запятой
}
else TP = 0;
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,SL,TP,"Pattern_1",Magic,0,Blue);
return;
}
}
}
I am trying to solve the following problem - three consecutive bullish bars, the MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. On the test runs and the MA doesn't work either. Help!!!!!!
Here is my crummy code, where did I mess up?
Nowhere in this function; most likely a fault in the conditions of the checkforopen function call.
I am trying to solve the following problem - three consecutive bullish bars, the MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. On the test runs and the MA doesn't work either. Help!!!!!!
Here is my crummy code, where did I mess up?
Normal MACD Sample entry conditions in MT4 itself. Why should you make up your own stuff? Take it, use it, add what is missing! But don't make up something that has been tested hundreds of times and works well in any market!
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.
Hello, could you tell me how to indicate a real timeframe in a condition? Do you mean a variable or maybe there is a special designation?
MQL4 Reference - Operations with Charts-Period
MQL4 Reference-Standard Constants-Chart Periods
MQL4-Chart Operations-Period Handbook
MQL4-Standard constants-Chart Periods Reference
Thank you!
Shit... what are you smoking? Where do you get your cigarettes from? Owl went to the shop and bought some... And then some funk came along and ruined everything.
Bummer...
What a double-edged question) Options for interpretation are as follows:
1. Supposed to find out if you smoke at all.
2. What you smoke.
3. Where and on what plantations it grows. So to speak, I want one too. ))))))
I could do some more, but I don't think so. If you're a smoker, you'd better keep a low profile, or you're going to get smoked. They'll find you...
pu6ka Thanks, but none of them say anything about how to deal with code that is in the codebase and does not compile
I found the answers for myself:
https://www.mql5.com/ru/forum/145281
https://www.mql5.com/ru/forum/145281/page2#808437
https://www.mql5.com/ru/forum/145281/page5#809079
https://www.mql5.com/ru/forum/145281/page8#824496
https://www.mql5.com/ru/forum/146316/page2#836601
https://www.mql5.com/ru/forum/145569/page4#830663
put the position data into an array
Guys, I'm coming back to you for knowledge.
I am trying to solve the following problem - three consecutive bullish bars, MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. It doesn't work on the test runs and the MA either. Help!!!!!!
Here is my awkward code, where did I mess up?
Guys, I'm coming back to you for knowledge.
I am trying to solve the following problem - three consecutive bullish bars, the MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. On the test runs and the MA doesn't work either. Help!!!!!!
Here is my crummy code, where did I mess up?
Nowhere in this function; most likely a fault in the conditions of the checkforopen function call.
Guys, I'm coming back to you for knowledge.
I am trying to solve the following problem - three consecutive bullish bars, the MACD bar on the first bar is bigger than on the second, the first bullish bar is bigger than the MA - we open a buy trade.
The trade itself opens, but there is no MACD signal. On the test runs and the MA doesn't work either. Help!!!!!!
Here is my crummy code, where did I mess up?