[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 280

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
How is the iMA calculated?
Is there anywhere I can find how iMA function is calculated (or is it classified)?
Especially I am interested in MODE_LWMA.
I want to look and tweak to my liking, but something googling the source code did not work
https://docs.mql4.com/ru/indicators/iMA
You need a formula, so Google can easily find it too.
https://docs.mql4.com/ru/indicators/iMA
You need a formula, Google can easily find it too.
Or don't you understand the term "linear-weighted"?
Где-нибудь можно найти как вычисляется функция iMA (или она засекреченная)
Особеннно меня интересует MODE_LWMA.
Хочу посмотреть и подправить на свой вкус, но что-то нагуглить исходники не получилось
Good afternoon!
As the first experience I decided to implement the following algorithm: we can expect a sharp market movement up or down in some time after the Bollinger lines converge into a narrow corridor. In my Expert Advisor, I analyze the state of Bollinger lines and when they are getting very close(Delta pips), we put a pending sell order in the lower direction (at stepOpen pips below the lower line), hoping that the market will suddenly go in that direction. If the market went in another direction, we simply delete this order.
The algorithm works unstable, sometimes opens two orders in a short period of time, constantly gives errors OrderSend Error 130 and OrderSend Error 138, and removing open orders in case the market moves in the other direction does not work at all.Please, advise us! Thank you!
Victor Ivanovich!
So much to leaf through, why didn't you give a link? You put in the code... What for?
//--Your basic code
PrevTime=Time[0]; // Remember the time of the zero bar opening
If you have a bar open setup, here's the template, it works.
Could you please write this function in the EA yourself? In the picture you can see 3 orders opened on one bar. I need only one. I can't fix the code.
Hi all ))))
Help in the adviser to limit opening of orders to 1 per day, no matter how many times it will pass an entry point...
I am trying to write something like this, it checks history of last closed order before opening, and if it matches then don't open...
for(int i=0;i<OrdersTotal();i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
{
if(OrderCloseTime()==Day()
break;
}
this is not working, please help the lamochinka ))))
order on one bar site:mql4.com
https://www.mql5.com/ru/forum/102366/page3
Need help in changing the EA, ie leave everything as is, but change the action (buy/sell) to (sell/buy), my tests showed that the uptrend is sell, and the downtrend buy. a simple change in the code BUY on SELL me nothing, or something is missing, or .... Anyway,i need help
Thanks in advance.