Hello
I am very new to Amibroker and have written a
formula that is faultless in executing buy signals but
won't sell properly. All it ever wants to do is sell at the close of
the next day or sells the same day which is not real as my intent is to use
an End of Day buy. I'm really trying to understand Amibroker AFL so
any information of how the Sell works or where I should look would be
appreciated.
What I want to do is sell at a profit target the
next day but if the open is greater than the profit target of course I'm
going to take that. If I don't meet the profit target I want
to wait till the second day after the buy and if the open is greater than
the buy I'll take that and if that doesn't work I want to sell at the buy and if
all else fails I want to close out the trade at the end of the second
day after the buy. So, sell the next day if the open is greater than profit
target (if not met) at the profit target (if not met) the next day if the open
is greater than the buy (if not met) sell at the buy price (if not met) sell at
Close to finish the trade. Odiously a walk in the park for a lot you
guys but a real puzzler for me. I'd include the many variations of what I have
written but I think you guys would just laugh as I am so new.
Steve J
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
|