PureBytes Links
Trading Reference Links
|
yes, that it is working, i get rows.
after, i delete all of the code which was comment out, to copy the code into the post. and for fun i tried it again, and it worked! i checked it with the old file, which i kept as backup, that it were only comment out lines. but that file is now working too?! the only explanation i have yet, is that maybe the file was corrupted... i will play a little around with the files, maybe i can find out something usefull, if it is a bug.
Mike, thanks a lot for your help, your answers kept me alive!!!
my kindest regards,
olli
--- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@xxx> wrote:
>
> Try the formula below, run an exploration for it on the current symbol (i.e. select "current symbol" for Apply To) using all quotations (i.e. select "all quotations" for Range) in AA window.
>
> Do you see any rows?
>
> Buy = DayOfWeek() == 1;
> Sell = DayOfWeek() == 5;
> Filter = Buy;
> AddColumn(Close, "Close");
>
> If not, it may be time for you to contact support directly.
>
> Mike
>
> --- In amibroker@xxxxxxxxxxxxxxx, "oliverdoerler" <oliverdoerler@> wrote:
> >
> > hi,
> >
> > the exploration dosnt show up any row, neither the backtest. i can see the signals by plot the buy array, but i dont see any of that signals in the exploration or in the backtest. that the backtest can be affected by the settings i understood. but that the exploration is empty for the buy array?
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@> wrote:
> > >
> > > So what exactly is not working? Are you not getting rows showing up in your explore? Are you not getting trades showing up in your backtest?
> > >
> > > Or are you saying that your exploration and backtest don't put arrows on your diagram for you? If you want the explore or backtest to put arrows on the diagram, you can right click on the results area and select any of the "show arrows..." menu items.
> > >
> > > Mike
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "oliverdoerler" <oliverdoerler@> wrote:
> > > >
> > > > hi Mike,
> > > >
> > > > thanks again for your answer!
> > > >
> > > > i expected that maybe the settings for the backtest could be a reason, that is the reason i tryed it over the exploration. anyway, i checked for a redefinition of the array, but that should not be the problem. :(
> > > >
> > > >
> > > > the last part of my code, starting with the buy array:
> > > >
> > > > // Long
> > > > Buy = Kauf AND StochRSISchwelleL AND VolumenBedLong AND InBandBereichUnter AND KoerperL;
> > > > Sell = StochRSI < SRSISchwelleL AND InBandBereichOber OR Close < UnterBB;
> > > >
> > > > // Short
> > > > Short = Verkauf AND StochRISSchwelleS AND VolumenBedShort AND InBandBereichOber AND KoerperS;
> > > > Cover = StochRSI > SRSISchwelleS AND InBandBereichUnter OR Close > OberBB;
> > > >
> > > > PlotShapes(Buy * shapeUpArrow, colorGreen, 0, Low, -20);
> > > >
> > > > Filter = Buy;
> > > > AddColumn( DateTime(), "Date", formatDateTime);
> > > > //EOF
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@> wrote:
> > > > >
> > > > > Olli,
> > > > >
> > > > > Most likely your problem is related to your settings, and you can reproduce the issue using any Buy/Sell rules.
> > > > >
> > > > > In answer to your question, yes, AmiBroker will produce different results during backtest than during a simple plot. A backtest requires sufficient funds to make the trade, cancels redundant orders, restricts the number of positions, etc. all based on your settings. A plot shows *signals*. A backtest shows *trades*.
> > > > >
> > > > > However, the exploration should behave the same as the plot. If your exploration is not showing the same dates as your chart, then check to see if you are redefining the value of Buy after the Plot, in which case the exploration would show the latter values but the Plot would show the former.
> > > > >
> > > > > For backtesting, review all your settings from the Automatic Analysis window. Documentation can be found here:
> > > > >
> > > > > http://www.amibroker.com/guide/h_backtest.html
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In amibroker@xxxxxxxxxxxxxxx, "oliverdoerler" <oliverdoerler@> wrote:
> > > > > >
> > > > > > hi Mike,
> > > > > >
> > > > > > thanks for your answer. i ran it over the complete period, which contains the plotted arrows in the chart (eod data over several years).
> > > > > >
> > > > > > is it possible, that amibroker evaluate the buy array diffrent for plot and buy signals?
> > > > > >
> > > > > > i would like to provide more information about the problem. but how, without copy the complete afl code. :)
> > > > > >
> > > > > > olli
> > > > > >
> > > > > > --- In amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@> wrote:
> > > > > > >
> > > > > > > Make sure that you are running your exploration over a long enough period such that at least one buy appears. If you are running your exploration for just the last day, then there will be no results if there were no buy signals on that one day.
> > > > > > >
> > > > > > > Same answer for the backtest. Make sure the backtest period is long enough to include one of your buy signals.
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In amibroker@xxxxxxxxxxxxxxx, "oliverdoerler" <oliver@> wrote:
> > > > > > > >
> > > > > > > > hi,
> > > > > > > >
> > > > > > > > when i plot my buy array, i get several (correct) arrows in my charts for open signals. unfortunately, in a backtest or exploration dosnt appear any trade.
> > > > > > > >
> > > > > > > > Buy = some formulas...
> > > > > > > >
> > > > > > > > PlotShapes(Buy * shapeUpArrow, colorGreen, 0, Low, -20);
> > > > > > > >
> > > > > > > > Filter = Buy;
> > > > > > > > AddColumn(DateTime(), "Date", formatDateTime);
> > > > > > > >
> > > > > > > >
> > > > > > > > if i use the buy array for the filter, should not appear exact the same datarows, like for the plot function? (the backtest is empty too) how can it be possible, that once the buy array has once some marks to plot and no marks for explore? i understand something wrong?
> > > > > > > >
> > > > > > > > thanks in advance,
> > > > > > > > olli
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|