Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 6/19/2005(UTC) Posts: 39
|
Hi Patrick,
The criterias plotted in bullish and bearish trends determine the tendances zones in the band indicator and so the date and the entry direction in the market.
May be a better mathematician as me could find the problem solution on this Forum and tell us ?
Best regards,
Pierre
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Sorry I did not understand what problem you were refering to ...
Pouvez vous me dire ce que vous essayez d'accomplire avec l'expert?
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 6/19/2005(UTC) Posts: 39
|
I've put these formulas :
bullish trend :
C>Mov(C,40,E) AND
C>Mov(C,8,E)
bearish trend
C<Mov(C,40,E) AND
C<Mov(C,8,E)
these indications determine the band zones bullish, bearish and neutral wich are plotted on th X date axis .
I want to put a buy arrow on the beginnig of bullish zones and a sell arrow on the beginnig of bearish zones ? what are the formulas to do it .
Regards
Merci de votre pensée en français qui peut m'être utile, en effet .
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
{Bullish}
LE:=C>Mov(C,40,E) AND C>Mov(C,8,E) ;
LX:=C<Mov(C,40,E) AND C<Mov(C,8,E) ;
B:= ExtFml("ForumDll.Latch",LE,LX,0,0);
B = 1 and Ref(B,-1) <> 1
{Bearish}
LE:=C>Mov(C,40,E) AND C>Mov(C,8,E) ;
LX:=C<Mov(C,40,E) AND C<Mov(C,8,E) ;
B:= ExtFml("ForumDll.Latch",LE,LX,0,0);
B = 0 and Ref(B,-1) = 1
You need the dll for that ...
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 6/19/2005(UTC) Posts: 39
|
Hi, Patrick
Merci beaucoup, vous êtes des types formidables sur le Site US .
Malheureusement, il n'y a presque personne sur le Site français .
Bonne journée, Patrick.
Ici, à Madagascar, c'est l'heure d'aller se coucher,!
Pierre
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Malheureusement je n'ai pas assez de temps pour le site francais :(
Bonne Nuit ;)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Better late than never... No dll required.
buy:=
C>Mov(C,40,E) AND C>Mov(C,8,E);
sell:=
C<Mov(C,40,E) AND C<Mov(C,8,E) ;
buy AND BarsSince(Ref(buy, -1)) > BarsSince(Ref(sell, -1));
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
g your formula is correct, the problem is you miss out on the first 2 trades ...
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 6/19/2005(UTC) Posts: 39
|
Patrick,
J'ai tenté d'adapter ces formules sur l'Editor mais n'y suis pas encore arrivé car l'Editor me refoule pour l'instant le "shell" ci après qu'il ne veut pas reconnaître ."BarsSince(Ref(sell, -1));"
Pouvez-vous me modifier ces formules pour l'Editor ? Encore merci .
Pierre
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
I think that's good news... right?! :-k LOL!
Hey, this is the hardest one I've attempted yet. I can't really take credit 'cause I learned it here on the forum. Lot's of good teachers, BTW! Anyway, I didn't test it much. I tried it on some daily data with about 100 periods loaded and it missed the first trade only. I just thought I'd chunk it in the mix because it appears simpler. Anyway... thanks for the affirmation.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
{Buy}
LE:=C>Mov(C,40,E) AND C>Mov(C,8,E) ;
LX:=C<Mov(C,40,E) AND C<Mov(C,8,E) ;
LE and Barssince(Ref(LE,-1)) > Barssince(Ref(LX,-1))
{Sell}
LE:=C>Mov(C,40,E) AND C>Mov(C,8,E) ;
LX:=C<Mov(C,40,E) AND C<Mov(C,8,E) ;
LX and Barssince(Ref(LX,-1)) > Barssince(Ref(LE,-1))
Just copy and paste the formula from the post ...
Patrick :mrgreen:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Isn't that the same? Gosh... come on guys, I speak Engli[censored]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Quote:I think that's good news... right?! :-k LOL!
:smt109
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
Well he tried to use your formula and it gave him an error so I just retyped the same idea ... So yes it is the same thing and you were right. The problem is that he used your formula and he asked me to fix it :lol:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
If it was right, what did you fix? :lol:
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 9/8/2004(UTC) Posts: 2,266
Was thanked: 1 time(s) in 1 post(s)
|
I just posted both the buy and sell to avoid user errors ;)
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Cool... I learn something with every post! :D
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.