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
post the code with your edits -- explain what edits you made -- let's see.
If you are interested in doing it yourself, there is a chance of figuring it out.
I removed all data about"moving average" and "MACD signal line", all I could find.
In this location, instead of a value of "0", the midline was given. I replaced it with "0" everywhere, when selling, and when closing traces.
Removed all data about"moving average" and "MACD signal line", all that I could find.
In this place, instead of the value "0", the average line was specified. Replaced it with a value of "0" everywhere, when selling, and when closing the traces.
on the long example:
-- what role does the highlighted condition play?
Here's what I have after correcting the above highlighted (small comments on the specifics of the openings):
using long as an example:
-- what role does the highlighted condition play?
MathAbs(m_macd_current)>m_macd_open_level - current value of MACD indicator main line modulo
MathAbs(m_macd_current)>m_macd_open_level - current value of the main line of the MACD indicator modulo
yes, only this condition should be either removed or set correctly -- above is a picture of EA performance with this condition removed
Yes, but this condition should be either removed or set correctly -- above is a picture of EA performance with this condition removed.
I didn't change the condition, but I changed other values.
I changed OpenLevel and Closelevel to 0. If I understood correctly, this is one of the conditions for opening a position.
And I disabled Takeprofit and Stoploss.
Position opening occurs through crossing "0", but for some reason the deal is closed after 10 pips. And it is desirable that the deal was opened after the second bar, because the first bar is not formed, and there are false entry.
I also set that the deal was made not earlier than in 60 seconds, it is 10, and he every 10 seconds, during the minute makes a buy or sell, ie for a minute 6 deals. You set 1 lot, for a minute there is a purchase of 6 lots or sale, depending on where the line "0" is crossed.
I partially figured it out, I set TakeProfit to 10000 and it started to roll over normally, but it misses some trades. It is necessary to add a function that the rollover occurs on the second bar, false trades are obtained, and more likely because of this missing trades.
If TakeProfit is set to the required amount, for example on "RTS" 100 points, it closes a deal on TP, and opens a new one when the indicator crosses "0". I tested it on minutes, as there are a lot of signals.