[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 1064

 

Could you please tell me how to implement levels of Moving Average indicator in the code?


 
iMA
 
42
 
what do you mean by levels and what do you want to show in the picture?
 

Here's

 
I don't think so, but it can be done manually - create lines and assign the value iMA+n, where n is the level
 
eddy:
I don't think so. But you can do it manually - create lines and assign value iMA+n, where n - level

if you had read the description you would know that there is an

double iEnvelopes( string symbol, int timeframe, int ma_period, int ma_method, int ma_shift, int applied_price, double deviation, int mode, int shift)

which will draw what you need...
 
I haven't read the whole fact sheet, just the textbook.
 

ежелиб Описание читал то зналбы, что есть индюк

It doesn't always help because it calculates the offset in percentages, but more often in pips.

 

Please tell me how to declare indicator to which symbol it should be applied, for example:

Print(iMA(NULL, 0, 14, 0, MODE_SMA, PRICE_CLOSE,0));

null is the current symbol

how to write it correctly so it outputs a value on eu-dollar, on diaries, no matter what symbol the EA is attached to.

I thought

Print(iMA(EURUSD, 0, 14, 0, MODE_SMA, PRICE_CLOSE,0));

I wonder if it's possible to do such a thing.