Skip to main content

Bar average trade for Amibroker (AFL)

arthasfin almost 15 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 5)
  • Tags:
    trading system, amibroker

This formula is bars average

Screenshots

You cannot view the code for the following reasons:
  • You must be a member.

8 comments

almost 15 years ago

IT IS BEST INDICATOR.BUT SELL ENTRY OR BUY ENTRY IT SHOWS BEFRE ENTRY.PLZ CORRECT IT

almost 15 years ago

PLZ CHANGE THE FOMULA AT SellPrice=ValueWhen(Sell,SS,1);
BuyPrice=ValueWhen(Buy,BS,1);

almost 15 years ago

what is so amazing? I like to note that when you define:

Buy=Cross(C,b);
Sell=Cross(S,C);
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

you can calculate any sellprice or buyprice construction you like buy at the earliest you can buy at the close.

SellPrice=C;
BuyPrice=C;

if you cheat then ofcourse your backtest results look great. This code is nothing more than a cross of a 3 period moving average of the highs and lows. Because the buy and sellprice are defined wrong it seems like a great system. But it is not.

Leave Comment

Please login here to leave a comment.