Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1656
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
MakarFX, tried it - no change, it only opens on buy, but sell is completely ignored...
What should we add to these conditions?
Explain the logic...
The first one is clear: there is a signal and no orders are opening...
... and then I do not understand under which conditions orders should be opened or closed
What then do you need to add to make the conditions?
Try this
OK, I'll explain everything in order, trying to be specific and not to overflow...
It's based on a trend trading strategy called "Puria Method". It is based on crossing three moving averages and MACD bar opening. Two slow with periods (75) and (85), Linear Weighted method applied to Low. A fast average with a period (5), Exponential method, apply to Close. MACD indicator with the parameters 15/26/1. Entry point is formed by crossing two slow moving averages and MACD bar opening into the relevant zone with the fast one ( fast and MACD bar should be in the same zone):
The EA places a fixed profit and stop loss. The size of the profit and stop are set in the initial parameters. Orders are closed only when they reach Take Profit or Stop Loss.
This is what was in the original Puria Expert Advisors. Plus, in the latest version, there is also a trailing stop and option to trade by certain hours. Functions are useful, but I am not really interested in them now.
Now, actually, what additions I have made/want to make:
1. 1st open price - (5) above (75) and (85) + MACD bar opened above 0 - 1 out of 4 confirmations;
2.The opening price of the 2nd candle - (5) over (75) and (85) + MACD bar opened above 0- 2 out of 4 confirmations is;
3. The opening price of the 3rd candle - (5) over (75) and (85) + MACD bar opened above 0- 3 out of 4 confirmations is;
4.Opening price of the 4th candle - (5) over (75) and (85) + MACD bar opened above 0- 4 out of 4 confirmations yes- Open buy trade on the same candle (4th).
Somehow, if something is unclear, or there are questions, please ask.
OK, I'll explain everything in order, try to be specific and not to overflow...
This is zeroing.
Maybe I don't understand you correctly...
try to make a screenshot
I've attached a screenshot, if you don't understand something, just ask me.
Attached a screenshot, if anything is not clear - just ask
Try this one - will it open in those places?