Page 38 of 180
Re: Coding Help
Posted: Thu Jun 08, 2017 5:33 am
by shaileshm
Hello,
I trying to edit a code to include a expression of the tick difference (uptick - downtick).
Uptick and downtick is defined as
Code: Select all
uptick[i] = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
downtick[i] = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
in the same manner how can I write the expression for tickdifference of up and down ticks.
Maybe its a noob question but my coding skills are very poor. All help much appreciated.
Re: Coding Help
Posted: Thu Jun 08, 2017 2:45 pm
by mntiwana
Understanding wrote: Thu Jun 08, 2017 5:21 am
mladen, where new versions were posted? I downloaded them in those topics where these indicators were posted, i don't know, were newer versions posted in a forum :/ Help with the new versions, please. Or help edit these that i attach here
mntiwana, I ask that in
Vidya (fl).mq4,
ema variation + filter 3 mtf.mq4,
StepMA averages nmc 3.142 + arrows.mq4,
Relative volatility index 1.1.mq4 a new price section was added ("enum enPrices" (pr_habclose, // Heiken ashi (better formula) close and more ...) and filter and interpolation type like by
ema variation + Filter 3 mtf.mq4
First - "Vidya" upgraded version was posted in "moving Averages" thread,here
viewtopic.php?f=578480&t=8414844
at post # 214
what is your next query ?
Re: Coding Help
Posted: Thu Jun 08, 2017 4:49 pm
by Understanding
Thank you. I also have this version. This version is different, namely: it does not have floating levels. If in this 2.0 it would be possible to add floating levels - then about seeing it would be all decided.
Re: Coding Help
Posted: Thu Jun 08, 2017 5:04 pm
by mntiwana
Understanding wrote: Thu Jun 08, 2017 4:49 pm
Thank you. I also have this version. This version is different, namely: it does not have floating levels. If in this 2.0 it would be possible to add floating levels - then about seeing it would be all decided.
That "Vidya fl" is the first and last till now

Re: Coding Help
Posted: Thu Jun 08, 2017 5:40 pm
by mladen
shaileshm wrote: Thu Jun 08, 2017 5:33 am
Hello,
I trying to edit a code to include a expression of the tick difference (uptick - downtick).
Uptick and downtick is defined as
Code: Select all
uptick[i] = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
downtick[i] = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
in the same manner how can I write the expression for tickdifference of up and down ticks.
Maybe its a noob question but my coding skills are very poor. All help much appreciated.
If you are using open and close to determine the direction of the "tick" then the
difftick = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
Re: Coding Help
Posted: Thu Jun 08, 2017 8:11 pm
by pacois
Hello Maladen how can i add these parameters to the iCustom (NULL, 0, IndicatorName, BufferNumber1, i) function of this indicator's parameters, especially the TimeFrame. Thanks.
Re: Coding Help
Posted: Thu Jun 08, 2017 8:54 pm
by mladen
pacois wrote: Thu Jun 08, 2017 8:11 pm
Hello Maladen how can i add these parameters to the iCustom (NULL, 0, IndicatorName, BufferNumber1, i) function of this indicator's parameters, especially the TimeFrame. Thanks.
Try like this
iCustom (NULL, TimeFrame, IndicatorName,AlertsBox,ShowLevelsZero,"",0,MaxBarsCount, BufferNumber1, i)
Re: Coding Help
Posted: Thu Jun 08, 2017 8:55 pm
by pacois
mladen wrote: Thu Jun 08, 2017 8:54 pm
Try like this
iCustom (NULL, TimeFrame, IndicatorName,AlertsBox,ShowLevelsZero,"",0,MaxBarsCount, BufferNumber1, i)
Try,Grazie mladen.
Re: Coding Help
Posted: Thu Jun 08, 2017 9:05 pm
by pacois
mladen wrote: Thu Jun 08, 2017 8:54 pm
Try like this
iCustom (NULL, TimeFrame, IndicatorName,AlertsBox,ShowLevelsZero,"",0,MaxBarsCount, BufferNumber1, i)
Hi Malden, everything works but I do not change the Time Frame, it settles on the current Tf.Thank you
Re: Coding Help
Posted: Thu Jun 08, 2017 10:54 pm
by shaileshm
mladen wrote: Thu Jun 08, 2017 5:40 pm
If you are using open and close to determine the direction of the "tick" then the
difftick = iClose(ForSymbol,0,i)>iOpen(ForSymbol,0,i)
thats same as uptick. What I would need is if ticks are in same direction then it gets added and if its in different direction then it is subtracted.