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