logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mikrit71  
#1 Posted : Thursday, May 9, 2013 6:48:34 AM(UTC)
mikrit71

Rank: Newbie

Groups: Registered, Registered Users
Joined: 5/9/2013(UTC)
Posts: 4

Is it possible to use a variable like the code below in some way?

bBandWidth:= BBandBot(C,20,S,2) - BBandTop(C,20,S,2);

Mov(C,bBandWidth,S);

haddison  
#2 Posted : Thursday, May 9, 2013 8:49:45 AM(UTC)
haddison

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2010(UTC)
Posts: 113
Location: London

Download the Forum20 dll, place it in the appropriate directory (External Function Dlls) and use the following function:

ExtFml( "Forum20.MOV", C, bBandWidth, S)
mstt  
#3 Posted : Thursday, May 9, 2013 2:53:01 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)

Hi M

Using the Forum DLL (the 188KB version) will do the job you ask of it as haddison has already explained. You might want to make sure that bBandWidth variable is a positive number however.

It is possible to do the job without the Forum DLL if you can tolerate the use of PREV in one of the following configurations.

Mov(C,LastValue(bBandWidth+PREV-PREV),S);

Mov(C,LastValue(bBandWidth+PREV*0),S);

The "+PREV-PREV" version executes slightly faster than the "+PREV*0" version, but it is prone to occasional small errors with some functions as seen with a number of the MS11 Adaptive indicators.

Roy

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.