VIDYA crossover
Author: moja166
Creation Date: 6/24/2020 9:33 AM
profile picture

moja166

#1
Hello Eugene

VIDYA is great but hard to get it withe wealth lab for beginner like me

the Variable Index Dynamic Average Technical Indicator (VIDYA) Is kind of moving average

and there is calculate withe it to become crossover by using VIDYA 1 and VIDYA 2

CALCULATION
//input = user defined, default is close
//period = user defined, default is 20
//alpha1 = user defined, default is .2
//alpha2 = user defined, default is .04
//prev = previous, index = current bar number
//std = stdDev = standard deviation


CODE:
Please log in to see this code.
profile picture

Eugene

#2
Hi Moja,

QUOTE:
and there is calculate withe it to become crossover by using VIDYA 1 and VIDYA 2


What's hard about choosing two Vidya with different parameters for "Indicator crosses above (below) Indicator" condition from the General Indicators group of conditions? Looks totally effortless to me:

profile picture

moja166

#3
Thank you Eugene

So far so good

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Just a cosmetic code cleanup:

CODE:
Please log in to see this code.
profile picture

moja166

#5
Very good

Appreciated
profile picture

Eugene

#6
You're welcome.
profile picture

moja166

#7
Hi Eugene

by making Vidya indcator crossover to have a sign by your efforts

i did add a stochK 50 and RSI 200 withe 50 level to Vidya crossover

Any suggestions for improvement or adding an alert?




CODE:
Please log in to see this code.


profile picture

Eugene

#8
Hi Moja,

Should you need assistance with implementing a trading idea with clear rules, let me know.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).