This is not the first time that I have told you this. In future I will just delete your posts with no warning.
-
Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
double Close[2], Open[2], High[2], Low[2];
These are the names of the Predefined Variables. You can not redefine them. Change the names.
-
if (PinBarCheck()) { OpenPrice = Ask; HighPrice = iHigh(NULL, 0, 1); LowPrice = iLow(NULL, 0, 1); Ticket = OrderSend(Symbol(), OP_BUY, Lots, OpenPrice, 3); } //+------------------------------------------------------------------+ //| Check for pin bar formation | //+------------------------------------------------------------------+ bool PinBarCheck() {
The if must be part of a function. You ended the function before the if. Always post all relevant code (using Code button) or attach the source file.
kindly find the complete file for your review and advice, as I still have error
Thanks in advance.
// Pin bar trading strategy // Define variables double takeProfit, stopLoss; int magicNumber = 12345; // unique identifier for trades // Identify pin bar pattern if (pinBarPattern) { // Open three orders at 0.01 each for (int i = 0; i < 3; i++) { if (buy) {
Of course, you have errors.
- Your if and its code, is not inside any function.
- You have not defined or initialized any pinBarPattern or buy variable. Likewise, the rest of your code. You have nonsense.
- You have only four choices:
-
Search for it (CodeBase or Market). Do you expect us to do your research for you?
- Try asking at:
- Coding help - MQL4 programming forum
- Make It No Repaint Please! - MQL4 programming forum
- MT4 to MT5 code converter - MQL5 programming forum
- Please fix this indicator or EA - General - MQL5 programming forum
- Requests & Ideas (MQL5 only!) - Expert Advisors and Automated Trading - MQL5 programming forum
- Indicator to EA Free Service - General - MQL5 programming forum
-
MT4: Learn to code it.
MT5: Begin learning to code it.If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.
-
Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2019)
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
No free help (2017) -
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
kindly I need help to removing the above mentioned error from the following coding .
<deleted>
Thank you