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

[amibroker] How do I set buy price one tick above previous high?


  • Date: Sun, 24 Jan 2010 01:06:49 -0800 (PST)
  • From: Jagd Trader <jagd.trader@xxxxxxxxx>
  • Subject: [amibroker] How do I set buy price one tick above previous high?

PureBytes Links

Trading Reference Links



I understand that a tick could mean different to different instruments.

What I'm trying to ask is how to code buy stop on previous bar's high plus one tick.
Since a tick could mean different, I can't just generalize it by using Buyprice = Ref(H,-1) + 0.01 for instance, because 0.01 is one tick for one kind of instrument and on the other hand it isn't measured as one tick for other kinds of instruments.

I wish I could just code
Buyprice = Ref(H,-1) + tick,

but alas there is no keyword for one tick unit, and I also haven't found the solution.

Can anybody help me?

Thanks in advance



__._,_.___


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





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___