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

[amibroker] Trigger entry orders as price moves in our favor



PureBytes Links

Trading Reference Links

Hi all,

I'm testing a system which increases the number of positions as price moves in our favor, for example at $0.1 price intervals.
entry at $25.00
2nd position at $25.10
3rd position at $25.20
4th position at $25.30
......
.....
.....
Example:

fiblevel=..... // this is the trigger line
buy=cross(H,fiblevel);
buyprice=fiblevel;


The first entry is ok and the entry price is exactly the same as the trigger price (I don't want to trade only at the closing price of the bar).

My question is how to enter the rest of the positions.

My solution was this:

fiblevel=..... // this is the trigger line
buy=cross(H,fiblevel) or cross(H,fiblevel+ 0.1) or cross(H,fiblevel+ 0.2).... etc 

My problem now is the buyprice variable, because I want to enter at 0.1 price intervals, and if these occur during the same bar I don't know how to define several entry prices during the same bar.

Is there another way to do this?

thanks very much





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

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