[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: STUMPED !! - Trailing stop and crossover formula question



PureBytes Links

Trading Reference Links



There is an example in v4.7 help file under the "SetPositionSize"
function...

--- In amibroker@xxxxxxxxxxxxxxx, "jmbruegge" <jmbruegge@xxxx> wrote:
> 
> Does anyone know how to code the following formula section, I am 
> stumped :  -
> 
> 
> here is what i want it to say in simple terms -
> 
> 1.) Sell 1/2 of the position only if the trailing stop of 10% is 
> triggered 
> 
> OR 
> 
> 2.) if the 15 day MA crosses the 40 day MA
> 
> whichever comes first.
> --------
> If one of them is met, the other one will stay in place and act as 
> the next safety net.
> 
> All help is greatly appreciated-
> 
> Thanks-  Jmbruegge





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 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/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/