[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 8

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
Hello.
Here are my labours from the weekend. I'm submitting it for condemnation.
int start(){
//----
double CCI = NormalizeDouble(iCCI(NULL, 0,Period,PRICE_CLOSE,1), Digits);
if(CCI[1] > -100)
if(CheckOrders(OP_SELL))
{
if(!OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, NULL, MagicNumber))
Print("Buy order not opened. Error #", GetLastError());
}
if(CCI[1] < 100)
if(CheckOrders(OP_BUY)
{
if(!OrderSend(Symbol(), OP_SELL, Lots, Bid, 3, 0, 0, NULL, MagicNumber))
Print("Sell order not opened. Error #", GetLastError());
}
//----
return(0);
}
This is part of the code for CCI. The essence is simple, cci at the bottom >-100 buy, cci at the top < 100 sell
int start(){
//----
double RSI = NormalizeDouble(iRSI(NULL, 0,Period,PRICE_CLOSE,1), Digits);
if(RSI[1] > 70)
if(CheckOrders(OP_SELL))
{
if(!OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, NULL, MagicNumber))
Print("Buy order not opened. Error #", GetLastError());
}
if(RSI[1] < 30)
if(CheckOrders(OP_BUY)
{
if(!OrderSend(Symbol(), OP_SELL, Lots, Bid, 3, 0, 0, NULL, MagicNumber))
Print("Sell order not opened. Error #", GetLastError());
//----
return(0);
}
the part of the code for RSI is the same, buy at 70 sell at 30
int start(){
//----
double WPR = NormalizeDouble(iWPR(NULL, 0,Period,1), Digits);
if(WPR[1] > -80)
if(CheckOrders(OP_SELL))
{
if(!OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, 0, NULL, MagicNumber))
Print("Buy order not opened. Error #", GetLastError());
}
if(WPR[1] < -20)
if(CheckOrders(OP_BUY))
{
if(!OrderSend(Symbol(), OP_SELL, Lots, Bid, 3, 0, 0, NULL, MagicNumber))
Print("Sell order not opened. Error #", GetLastError());
}
//----
return(0);
}
this part of the code for WPR (williams indicator) buy -80, sell -20.
I have a question if i am not confused with the trading conditions in all this............Thank you very much........
Hello, esteemed professionals and not only.
In my opinion, your website is the most suitable for helping newbies in learning MQL4.
When I asked questions, I got comprehensive answers from experts. Precisely the experts. But a beginner is a beginner. He will ask the question again and again until he understands its essence. So behave schoolchildren who have the desire to learn something..... Maybe they (students) are not so smart as geeks, and not as smart as nerds, but if there is a desire, I think it should be welcomed...... I want to learn.....
I really liked the responses and comments from korey, grani77, vinin, YuraZ, figarO, BARS. Intelligent and intelligent. If you allow me, the communication can be transferred to ............ Thanks in advance
Oh, boy. I thought, "No matter how much you teach a chicken, it doesn't get smarter, it just knows more."
Oh, boy. I thought, "No matter how much you teach a chicken, it doesn't get smarter, it just learns more."
Why teach a chicken? It's not even a bird (according to the proverb) ..... Well, that's the difference between a man and a chicken - he thinks. Or we could say, "You live a long time and learn a long time."
And still I repeat, above I gave my creation over the weekend, please, your comments what is wrong ..........
to igrok2008
I would say that the current state of automated trading looks like the Battle of the Harvest,
We are fighting with combines, quotes, MQL, tester, glitchy TS from books and homemade ones,
that's why the training is simply not settled, it doesn't exist yet because of the many unresolved problems
ranging from the technical to the gnostic.
- There is the art of creating MTS, but the rest of the meta trade is a mess
so there is only one way for the training to work
=You have to pick the right problem, work on it and learn from it.
...
P.S. it's a shame to study, because instead of (having experience and skills) solving problems in MT4, you have to learn and learn from these problems.
IMHO = face on the piano
but there are no other ways in autotrading yet and will not be yet
to igrok2008
the current state of the auto trade is like the Battle of the Harvest,
we are fighting with combine, quotes, MQL, tester, glitchy TS from books and homemade ones,
that's why the training is just not settled, it doesn't exist yet because of the many unresolved problems
ranging from the technical to the gnostic.
- There is the art of creating MTS, but the rest of the meta trade is a mess
so there is only one way training can be sustained
=You have to pick the right problem, work on it and learn from it.
...
P.S. it's a shame to study, because instead of (having experience and skills) solving problems in MT4, you have to learn and learn from these problems.
IMHO = face on the piano
but there are no other ways in autotrading yet and will never be.
Why does it hurt to learn? A person learns and develops. If he does not learn, it is a process of transformation into an amoeba, into a unicellular, amorphous state. So these are philosophical questions. They are complicated, not simple, and it is BETTER to discuss them over a cup of tea (40 degrees), with pastries (a piece of good meat) and on a magic couch. ......-:)))))))
I repeat, from16.02 (above) my creations. What's wrong with them.............
to igrok2008
1. the question is not asked, i.e. where is the question posed?
2. To answer the general question "what's wrong with them", you need to run this EA at all, it is a technique, but it is not suitable for testing.
But if it is, there is nothing to answer.
3. You don't need a test, if the question is about CCI, for example, the question about something else + CCI is appropriate, but you haven't asked it))
3. Code posted on the SRC button is much easier to read, save your eyes and time
Questions about the indicator:
1. My comment to the code is correct (red)
2. Where in the code is it written to change the colour of the histogram when haOpen < haClose and when haOpen > haClose
If you don't mind, please correct the wrong comments on this code! I really want to understand it):