Skip to main content

One Day Trading for Amibroker (AFL)

yoganurrahman over 9 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 4)
  • Tags:
    atr, trading system, amibroker

The main tools we use are:

Average True Range (ATR) to determine the smallest range of the last 7 days
Ref, to refer to previous days
BuyPrice and SellPrice, to ensure we are buying and selling at the trigger level we want.

Indicator / Formula

Copy & Paste Friendly
SetTradeDelays( 0, 1, 0, 0);

PreCondition = ATR( 1 ) < ATR( 7) ;

MoveUp = H > Ref( H, -1 );

Buy = Ref( PreCondition, -1 ) AND MoveUp;
BuyPrice = Max( Ref( H, -1 ), O );

Sell = Buy;
Sell = ExRem( Sell, Buy );
SellPrice = C;

0 comments

Leave Comment

Please login here to leave a comment.