[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Exit on different time frame



PureBytes Links

Trading Reference Links

Hi Brian

Nothing to offer.

I keep on going back to it and haven't had any inspiration.  No responces from the forum either.

I'm sure that a start would get me on the right path.

Graham

--- In amibroker@xxxxxxxxxxxxxxx, "bartlettbm" <bartlett@xxx> wrote:
>
> Graham,
> Hopefully you have found an answer to this problem. Please share 
> as I am stumped on similar issue.
> Simple timeframe functions TimeFrameSet() etc gets tangled in the loop stuff. . . 
> 
> Would like to see an example of weekly entry and exit on daily (specific day).
> Perhaps you could expand a little on what you have so far?
> Brian
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "grahamj42" <graham.johnson@> wrote:
> >
> > I've been reading the User Docs and searching the forum for a starting point, but I seem to be getting more and more confused.
> > 
> > The system is weekly and if the weekly open is < Stop then exit at weekly close.
> > 
> > What I want to experiment with exit on Monday close or Tuesday close ......  Probably use optimization to best determine the effect.
> > 
> > If TimeFrameGetPrice is used - how do I navigate the array that is returned?
> > 
> > For other reasons (mainly Stop manipulation) the exit is in a loop.  Code below has the unrelated lines removed (hopefully, for clarity).
> > 
> > SellPrice	=	Close;
> > for (bar1 = 2 ; bar1 < BarCount ; bar1++)
> > {     
> > 	if(Open[bar1] < Stop[bar1 - 1])
> > 	{
> > 		Sell[bar1] = True;
> > 	}
> > }
> > 
> > Graham
> >
>




------------------------------------

**** 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/