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

Referencing buy attributes to sell



PureBytes Links

Trading Reference Links

Hi All from a new AmiBroker user. I just love it so far, I've made more
progress in backtesting in the last week in Ami than in MetaStock in the
last few months.

Anyway, a question.

What I want to do is base sell conditions based on conditions at time of
buying. I might want to use a profit target based exit which depends on a
price calculated on the day the buy condition is generated. An example would
be I want to sell when the equity reaches the value of CLOSE + 2 * ATR(20)
on the day the buy signal is generated. Any ideas how I can achieve this in
AFL?

I have more similar questions, but let's cover one at a time :)

Cheers,

Mark