(no subject)
forbusiness
Tags:

GET AWAY
forbusiness
"Внешний вид во многом определяет внутреннее состояние"
Tags:

С 1 января в Москве повысился транспортный налог - Газета.Ru | Автомобили
forbusiness
налога в МосквеCтавка транспортного налога СейчасБудет
до 100 л.с. 7 рублей12 рублей
свыше 100 л. с. до 125 л.с. 20 рублей25 рублей
свыше 125 л. с. до 150 л. с. 30 рублей35 рублей
свыше 150 л. с. до 175 л. с. 38 рублей45 рублей
свыше 175 л. с. до 200 л. с. 45 рублей50 рублей
свыше 200 л. с. до 225 л. с. 75 рублей75 рублей
свыше 225 л. с. до 250 л. с. 150 рублей150 рублей

Marc Faber
forbusiness
"If you put a gun to my head and said 'you must choose either Obama or Romney,' I'd say 'please shoot.'"
Tags:

Крупнейшие российские ритейлеры в 2011 году
forbusiness
Крупнейшие российские ритейлеры в 2011 годуИсточник: исследование "Infoline Retailer Russia Топ-100"
открыть материал…


AmiBroker Formula Language Function Reference
forbusiness
A-Z Index | Category Index |

ApplyStop
- apply built-in stopTrading system toolbox
(AFL 1.7)

SYNTAX ApplyStop( type, mode, amount, exitatstop, volatile = False, ReEntryDelay = 0 )
RETURNSnothing
FUNCTION controls built-in stops from the formula level (allows optimization of stops)
Parameters:
type =
0 = stopTypeLoss - maximum loss stop,
1 = stopTypeProfit - profit target stop,
2 = stopTypeTrailing - trailing stop,
3 = stopTypeNBar - N-bar stop
mode =
0 - disable stop (stopModeDisable),
1 - amount in percent (stopModePercent), or number of bars for N-bar stop (stopModeBars),
2 - amount in points (stopModePoint);
3 - amount in percent of profit (risk)
amount =
percent/point loss/profit trigger/risk amount.
This could be a number (static stop level) or an array (dynamic stop level)

ExitAtStop

ExitAtStop = 0 - means check stops using only trade price and exit at regular trade price(1)
(if you are trading on close it means that only close price will be checked for exits and exit will be done at close price)
ExitAtStop = 1 - check High-Low prices and exit intraday on price equal to stop level on the same bar when stop was triggered
ExitAtStop = 2 - check High-Low prices but exit NEXT BAR on regular trade price.

volatile -
decides if amount (or distance) (3rd parameter) is sampled at the trade entry and remains fixed during the trade (Volatile = FALSE - old behaviour) or if can vary during the trade (Volatile = TRUE) (allows single line Chandelier exit implementation)(2)
ReEntryDelay -
how many bars to wait till entering the same stock is allowed.
Note on using stops:
Scenario 1:
you trade on next bar OPEN and want to exit intraday on stop price

Correct settings:
ActivateStopsImmediately turned O
Tags:

Back testing your trading ideas
forbusiness
Buy = Cross( MACD(), Signal() );

priceatbuy=0;

for( i = 0; i < BarCount; i++ )
{
if( priceatbuy == 0 && Buy[ i ] )
priceatbuy = BuyPrice[ i ];

if( priceatbuy > 0 && SellPrice[ i ] > 1.1 * priceatbuy )
{
Sell[ i ] = 1;
SellPrice[ i ] = 1.1 * priceatbuy;
priceatbuy = 0;
}
else
Sell[ i ] = 0;
}
Tags:

Back testing your trading ideas
forbusiness
Buy =
Sell = 0; // selling only by stop
TrailStopAmount = 2 * ATR( 20 );
Capital = 100000; /* IMPORTANT: Set it also in the Settings: Initial Equity */
Risk = 0.01*Capital;
PositionSize = (Risk/TrailStopAmount)*BuyPrice;
ApplyStop( 2, 2, TrailStopAmount, 1 );
Tags:

Просмотр темы - Тестирование систем
forbusiness
Cond1 = .......;
Cond2 = .......;

X=BarsSince(Cond1);

X1=BarsSince(Cond2);


Buy = Cond1;

Short = Cond2;


Y = Ref(C,- x) = = ((1-rev)*C) AND ...........;


Y1 = Ref(C,- x1) = =((1+rev)*C) AND ..................;



Sell=Y;
Cover=Y1;

Растем!!!
forbusiness



?

Log in