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

[amibroker] Tweezer Top exit



PureBytes Links

Trading Reference Links

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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/