upPrice=High[iHighest(Symbol(),0,MODE_HIGH,N,0)];//максимум за N баров downPrice=Low[iLowest(Symbol(),0,MODE_LOW,N,0)]; //минимум за N баров значение индикатора=(upPrice-downPrice)/Point;
sllawa3 >>:
implement the indicator as a function, in the function parameters parameters of this indicator and the number of bar for which you want to calculate the value of the indicator
как вставить простенький индюк в код эксперта ? чтоб снимались показания его с н4 ( вписать в код а не вызвать через icustom )...третий день бьюсь..
сам индюк :
sanyooooook >>:
реализуй индикатор как функцию, в параметрах функции параметры этого индикатора и номер бара для которого нужно рассчитать значение индикатора
реализуй индикатор как функцию, в параметрах функции параметры этого индикатора и номер бара для которого нужно рассчитать значение индикатора
I'm trying to figure out how to do it... I'm trying to get it to give the value of n4 on any timeframe (or the one I prescribed in the settings)
double Fn(int N,int bar) { double upPrice,downPrice; upPrice=High[iHighest(Symbol(),0,MODE_HIGH,N,bar)];//максимум за N баров downPrice=Low[iLowest(Symbol(),0,MODE_LOW,N,bar)]; //минимум за N баров return((upPrice-downPrice)/Point); }it will be for the current TF
No... it's all crap... it doesn't work... none of the proposed options... it only works through icustom, which is exactly what you need to get rid of...
sllawa3 >>:
нет.. всё это лажа.. не работает...ни один из предложенных вариантов.. работает ток через icustom, а как раз от него и необходимо избавиться...
нет.. всё это лажа.. не работает...ни один из предложенных вариантов.. работает ток через icustom, а как раз от него и необходимо избавиться...
I'm telling you - the turkeys are a bummer... If not now, then later. Besides, you won't be able to debug them in the tester. What do you need?
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 to insert a simple indictor into expert code ? to take its readings from n4 ( put it in the code and not call it via icustom )...third day I'm struggling...
the indy itself :