Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.
emptyvault
Members-
Content Count
34 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by emptyvault
-
hi , I just started to familiar with easy language and tried to practice it . Here is the code for visually present two kinds of average , one greater than another one , up and down . Something like that . One is adaptive average and the other shorter one is custom make . Here is the code . inputs: Price( Close ), EffRatioLength( 10 ), FastAvgLength( 2 ), SlowAvgLength( 30 ) ; variables: var0( 0 ) ; var0 = AdaptiveMovAvg( Price, EffRatioLength, FastAvgLength, SlowAvgLength ) ; variables: S1(0),S2(0),S3(0),S4(0),S5(0),S6(0),PI(0),SD(0),Num(0),Den(0),sin6(0); PI=3.1415926; SD=180/7; S1=sine(1*180/7)*C; S2=sine(2*180/7)*C[1]; S3=sine(3*180/7)*C[2]; S4=sine(4*180/7)*C[3]; S5=sine(5*180/7)*C[4]; S6=sine(6*180/7)*C[5]; Num=S1+S2+S3+S4+S5+S6; sin6 = sine(SD)+sine(2*SD)+sine(3*SD)+sine(4*SD)+sine(5*SD)+sine(6*SD); If sin6 > var0 then PlotPaintBar(High,Low,open,close,"",green); The MC complier test it ok and when I tested to highlight a bar individually they worked ok too . It cannot paint anything when I combined them together . What is the mistake ? thanks
-
oh , I just found that at MC home page . There is vidya by Chande, let me see if it is the same old one . thanks all .
-
dear Tams , I used the first one and downloaded there . Did you try the code I posted if you can see any problem on your computer . As I only success for once but most of the other simbol return error message . I guess maybe it is the problem of MC . If someone tried the code and you can successfully apply to your chart . Please dont mind to tell me . In fact , it is said to be the code of variable index dynamic average of Tuschar Chande which I picked out from my MS program and tried to translate to MC codes . If someone has better way to do it . Please feel free to share .
-
I tried and tried over and over again . I cannot sure if it is bug or not but it finally seems worked out on some charts only . Some symbols still show same error ..... maybe I have to ask CS for help again ..
-
Thanks for replying . I have tried that before . When I added the coma and a figure in it . It just shown error : Invalid number of parameters. 1 parameter(s) expected . Did I miss some steps that have to declare the CMO function as it is not built in by the program ?
-
I have tried to add a statement -> SetFPCompareAccuracy(1); to decrease the accuracy if it caused the problem , but still cannot help ....
-
I am a newbie in multicharts and easylanguage . I tried to translate the code I used in metastock to it . The following is a moving average . I tested it in the complier but no error return and complied successfully for the first time , but when I applied it over a chart , it returned error message and said there are kind of floating calculation error . Can someone give me a hand ? (notes , CMO is chande mementum oscillator which was posted here by another kind man earlier ) {10VIDYA} inputs: smooth(5); variable : AbsCMO(0); variable : SC(0); variable : vidya10©; AbsCMO=AbsValue(CMO©)/100; SC= 2/(smooth+1); vidya10= (sc*AbsCMO*c)+(1-(SC*AbsCMO))*vidya10[1]; Plot1(vidya10,"vidya10"); :crap:
-
very thanks !! I am just seeking it .
-
Really thanks for sharing ! Can anyone post the Chande momentum oscillator and the variable index dynamic average EL code here ?