If I make sure that my system has K stick data, there is transaction information on the chart, but when I run the backtest, I can't see the back test data before a certain day. How do I check the problem?
In automatic analysis window, you should also set the range or minimum bars required with appropriate periodicity.
I have set the backtest range for 10/8 to 10/12 , but there will still be no transaction data during the backtest.
the back test setting like this
i am make sure i have the data in database show on this
the final the afl code in this
maS = MA(C, 4);
maL = MA(C, 6);
Plot(maS, "MAShort", colorRed, styleLine);
Plot(maL, "MALong", colorYellow, styleLine);
Buy1m = Cross(maS, maL);
Sell1m = Cross(maL, maS);
Short1m = Cross(maL, maS);
Cover1m = Cross(maS, maL);
Buy = ExRem( Buy1m, Sell1m );
Sell = ExRem( Sell1m, Buy1m );
Short = ExRem(Short1m, Cover1m);
Cover = ExRem(Cover1m, Short1m);
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
First thing I notice is your equity in the settings is at 10000, most your close values are above 10000.
Thank you, solved my problem.
I'd recommend giving this guide a read.
https://www.amibroker.com/guide/w_settings.html
Looking at your data ,theirs some lower volume values so I'd pay attention to to this part.
Limit trade size as % of entry bar volume
This prevents from entering the trades greater than given percentage of entry bar's volume. For example if backtesting daily data and today's volume for thinly traded stock is 177,000 shares, setting this to 10% will limit the maximum trade size to 17,700 shares (10% of total daily volume). This prevents from 'affecting the market' by huge orders.