Mashki and I. Captured by illusion... - page 7

 
Roman.:


And what prevents a similar structure for optimization from being shoved into external variables? Then insert it into the iMA calculation...

Don't forget the function

I think it's just right for you...

Roman, how does this structure work?

I need to optimise the waving period, not the timeframe.

 
Stells:

Roman, how does this structure work?

I need to optimise the Mach period, not the timeframe.


If it's just a period, it's even easier - just enter start, step, stop and you'll get variable JawPeriod = 13 as shown in the example. You can set precision in the optimization tab as you want, for example, JawPeriod: start 13, step 2, stop 100 and go, but you'll have MAReriod, not JawPeriod... But it's the same, just press F1 on iMA and everything will be clear instantly, just follow the analogy, in this case with alligator.:-)))

You specify start, step, stop in the optimisation tab and go... For example,

extern int         Period_MA = 13; // период МА - внешние переменные
....

double MA1_1 = iMA(Symbol(), PERIOD_H1, Period_MA1, 0, MODE_EMA, PRICE_TYPICAL, 1);
double MA1_2 = iMA(Symbol(), PERIOD_H1, Period_MA1, 0, MODE_EMA, PRICE_TYPICAL, 2);

 
Roman.:


I don't use this... How to use it - see attached file...

Read two pages of the forum from here... - there's a description.


That's where I posted, I thought you were trading.