PureBytes Links
Trading Reference Links
|
Alexander:
>Does anyone know how to do the following?
>
>if the current bar is the entry bar and condition A is true then
>setprofittarget (x)
if BarsSinceEntry = 0 and conditionA = true then setprofittarget(x);
>if the current bar is the entry bar and condition A is false then
>setprofittarget (y)
See above, make appropriate changes.
>if the current bar is any bar beyond the entry bar then
>setprofittarget (y)
if BarsSinceEntry > 0 then setprofittarget(y);
>I use momentum of data2 (on a shorter timeframe of the same symbol)
>to determine condition A.
conditionA = momentum(Close of data2, length);
>All my various attempts have generated excellent backtest results
>that would not hold true AT ALL in real time trading...
Have you set the commission and slippage for your strategy?
--
,|___ Alex Matulich -- alex@xxxxxxxxxxxxxx
// +__> Director of Research and Development
// \
// __) Unicorn Research Corporation -- http://unicorn.us.com
|