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

[amibroker] Applystop StopLoss - trade on next day OPEN when PREVIOUS day CLOSE hits stop



PureBytes Links

Trading Reference Links

Hi,

I would like to apply a stoploss on next day OPEN when PREVIOUS day 
CLOSE hits stop and Sellprice=Open. In the AFL library, I could only 
find the solution for
"Scenario 3: 
you trade on next day OPEN and want to exit by stop on OPEN price 
when PREVIOUS day H-L range hits stop"

This is almost good for me except I want the Applystop function to 
check the PREVIOUS day Close instead of the H-L range.

The settings I would like to use is as follows.  
SetOption("AllowSameBarExit",1);  
SetOption( "ActivateStopsImmediately", 1);         
SetTradeDelays( 1, 1, 1, 1 );      
SellPrice=O; 

I am stucked. Could anybody help me please how I can do it.

Thank you.


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

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

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