[amibroker] Re: Wow what a plunge !

2010-05-06 Thread hiscores
Lots of hilarious rumors out there like someone at Citi accidentally selling 16B worth of ES futures instead of 16M (lol really?), or a bad tick on PG that sent algos going wild. It was so tempting to pick off stuff like AAPL < $200 but i never thought I would be filled. I didn't trade any of it

[amibroker] Re: plz point out what's going with this AFL

2010-04-28 Thread hiscores
There should be no dashes and date or times, you also need to use two equal signs to test for equality: bi1=ValueWhen(DateNum() == 1070101, bi); bi2=ValueWhen(DateNum() == 1071201, bi); As per the documentation: "1 * (year - 1900) + 100 * month + day, so 2001-12-31 becomes 1011231 and 19

[amibroker] AFL No-no's

2010-04-20 Thread hiscores
rote: > > Hello, > > >SellPrice = Ref(O, 1); > > Wrong advice. > Once again: NEVER move trading prices using ref(). > > Instead delays SIGNALS > Buy = ref( Buy, -1 ); > Sell = ref( Sell, -1 ); > > > Best regards, > Tomasz Janeczko > amibroker.com > >

[amibroker] Re: Take profit and Stop Loss

2010-04-20 Thread hiscores
There are numerous ways to do this, but here is a simple one Buy = C > MA(C, 20); BuyPrice = C; StopLoss = C < MA(C, 50); ProfitTarget = C > MA(C, 10); Sell = StopLoss OR ProfitTarget; // If we exit due to stop loss take the 50 MA otherwise // by process of elimination we exit at target 10 MA Se

[amibroker] Re: Refering to Yesterday Close (with ESignal)

2010-04-10 Thread hiscores
If all you need are daily values than as qq said just set the time frame in the scan/explore settings to daily. If your scan requires comparing intraday bar values with yesterday's daily values learn the timeframecompress/expand functions: // Get daily values TimeFrameSet( inDaily ); YO = Ref(O

[amibroker] Re: Looking for an ATR indicator that works.

2010-04-07 Thread hiscores
Whats wrong with using ApplyStopLoss with the flag to recompute the value each bar? ApplyStop(stopTypeTrailing, stopModePoint, (Parameter1 * ATR(10)) + whatever, 1, 1); The final argument forces the stop to recalculate each bar -hi --- In amibroker@yahoogroups.com, "archibaldhead" wrote: >