PureBytes Links
Trading Reference Links
|
Easy language is simpler because it increments the
bar number for me?? What's hard about bar = bar + 1?
Because easy language is dependant on data1 bars --
I suffer. I can only make trades off data1 because EL
only understands bars from data1. If I have other data
series better hope that all the bars match with Data1 or
else.
Oh yea, EL keeps all there vars in arrays. Makes life so
much easier for me with all this series and simple functions stuff.
Like I have to have a Average function that is both series and simple.
Now how confusing is that??
Much rather just create a Average function with a For Loop at least there
is no black magic involved and my code is clean.
EL is not easy. Easy language is confusing and very limited.
> >var
> > lBarX: LongInt; <== need to define any variable type feature
> that is requested by a few TS user
> > lBarBeg: LongInt;
> > lBarEnd: LongInt;
> > rAverage: Real;
> > rXFactorToday: Real;
> >
> >Begin
> > If lLastBar = 0 Then
> > lBarEnd := BarEnd <========stupid coding. This should be obvious to EL
> users.
Yes it is a very obvious mistake. How can I work with bars from Data2,Data3,Data4??
The answer is you can't -- unless EL has a reference to a bar in Data1.
> > Else
> > lBarEnd := lLastBar; <====not better ( no need of this in EL, current
> bar is autamatically recognized, and only the fist and last bars are of
> interest to EL)
Yep only Bars on Data1 are important to easy language. We are all one data
traders. Sorry not me baby :-)
> > rXFactorToday := (2.0 / (lLength + 1));
> >
> > rAverage := rPrevXA; <========= previous values are stored in EL
Sure are that is why we have that confusing Series and Simple function
stuff. Which makes all the sense in the world.
> > If rAverage = 0.0 then Begin <===why to test this ?
> > lBarBeg := (lBarEnd - lLength); <=======hihihi....clever.
> > if lBarBeg < 1 then lBarBeg := 1; <=== Nobel Prize in sight
> > rAverage := Average(lValueConstant, lBarBeg, lLength); <=== more
> complicated than EL that makes use of maxbarsback and avoid IBarBeg command
> > lBarBeg := lBarBeg + 1; <===haha! No automatic incrementation of
> barnumber!
> > End
Yep the wonderful maxbarsback. Makes life easier for me. If I want my different data
series to have different lookbacks to bad in EL. Have to use the global maxbarsback
across all data series. So damm limiting.
> > Else
> > lBarBeg := lBarEnd; <======I do not believe it again!
> > For lBarX := lBarBeg to lBarEnd do
> > rAverage := (rXFactorToday * Bar(lValueConstant, lBarX)) + ((1.0 -
> >rXFactorToday) * rAverage);
> > Result := rAverage; <=======Means that you need to write a loop to
> perform a calculation from bar x to bar x+n ! This is automated in TS...and
> needs ZERO line of code
Nope no code at all to write the above function -- just the know how on how to understand the black magic in
series and simple functions.
Mark J.
|