--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 31/10/06, Vins <[EMAIL PROTECTED]> wrote:
i can also put to 0 (zero) the stop, and than change the vakue of
trailing stop.
0,2,10 i belive that was the type of stop, the mode, and the ammount
as i found in the function reference.
do you have a link to learn in use constants ? 1e10 it means
0.0000000001 to be almost to 0 ?
i hope to don't have done too much stupid question.
thank You
--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> As error says you can have "type" or "mode" params as array
>
> Only the "Amount" may be array.
>
> If you want to turn stop on/off you should simply modify AMOUNT
> so it is very high when you turn it OFF"
>
> And learn using constants to make your code readable
> because 0,2,10 does not tell anything
>
> TrStopOn = ...
> ApplyStop( stopTypeTrailing, stopModePercent, IIf( TrStopOn == 1,
6, 1e10 ) );
> ApplyStop( stopTypeLoss, stopModePercent, IIf( TrStopOn == 1, 1e10,
10 ) );
>
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Vins" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, October 29, 2006 11:37 PM
> Subject: [amibroker] from a stop switching in a trailing stop
>
>
> > hi,
> > this is a formula for a stop
> > ApplyStop(0,2,10,1,False));
> >
> > here the trailing stop
> > ApplyStop(2,2,6,1,False);
> >
> > so now i'ld like to put the stop but if a condition is verified
> > switchin in trailing stop
> >
> > i wrote this
> > trstopon= condition;
> > ApplyStop(IIf(trstopon==1,2,0),2,IIf(trstopon==1,6,10),1,False);
> >
> > but i'm getting an error and cursor blinking after FALSE.
> > from the help of error:
> > "Error 4. Incorrect type of argument(s). Expecting number here.
> > This occurs in ApplyStop function when Type, Mode, ExitAtStop or
> > Volatile parameter is an array"
> >
> > thank You
> >
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
| Investment management software | Investment property software | Investment software |
| Investment tracking software | Return on investment software |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
