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

[amibroker] Re: Tweezer Top exit



PureBytes Links

Trading Reference Links


Greg,

I suggest that you familiarise yourself with following functions:
TimeFrameCompress - compress single array to given time frame (AFL 
2.5) 
TimeFrameExpand - expand time frame compressed array (AFL 2.5) 
TimeFrameGetPrice - retrieve O, H, L, C, V values from other time 
frame (AFL 2.5) 
TimeFrameRestore - restores price arrays to original time frame (AFL 
2.5) 
TimeFrameSet - switch price arrays to a different time frame (AFL 
2.5) 


The idea is to expand time frame to hourly basis, calculate your 
condition then expand it to 10 min basis and calculate your 10min 
condition. You will have two arrays of signals as a result. You can 
then eliminate excessive signals with use of ExRem function or write 
loop to process them in other manner.

I do not have too much time at the moment to write code for you but 
maybe it will push you into right direction.

Let us know how you are progressing and if not drop me an email and 
I'll be glad to help.

Cheers
Max 

--- In amibroker@xxxxxxxxxxxxxxx, "Greg" <gregbean@xxxx> wrote:
> Hi,
> 
> I'm still struggling with coding changes in timeframe. 
Hellllllllpp!  :)  .
> 
> I'm trying to add a sell condition that would normally trade in an 
hourly timeframe and exit a trade in an hourly condition OR a 
condition in the 10 min timeframe. Something like this.
> 
> Sell= HourlyCondition or 10MinCondition;
> 
> If the exit is triggered by the HourlyCondition , Then the exit 
would occur on the Open of the next hourly bar. 
> 
> If the trade is triggered by the 10MinCondition, then the exit 
would occur on the open of the next 10 minute bar.
> 
> The 10MinCondition is a TweezerTop.  TweezerTop = Two consecutive 
bars in the 10 min timeframe with the same High. I have tried coding 
it as ... 
> 
> TweezerTop = Ref(H,-1)==Ref(H,-2)
> 
> Hopefully I've explained this so you can understand what I am 
trying to do.
> 
> If anyone would care to help me out with this, I'd greatly 
appreciate it. 
> 
> 
> Greg
> 
> [Non-text portions of this message have been removed]





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

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