Price Exit Strategies

D

Dannosuke

New member
Hi Everyone,

Does any one know how to create an exit trigger that is based on price movement? I want it to exit on the second higher bar after trigging or after breaking the low of the bar that was triggered. This is for trading Options

Here is what I have so far the exit is based on crossing the upper bollinger band but it doesn't seem to be a good indicator to exit on.


Code:
###

input tradeSize = 10;

def signal = RSI()."RSI" crosses above 25 and low crosses below BollingerBands()."LowerBand" within 8 bars;

addOrder(OrderType.BUY_TO_OPEN, signal, open[-1], tradeSize, Color.CYAN, Color.CYAN);

def exit = RSI()."RSI" is less than RSI()."RSI" from 1 bars ago and high crosses above BollingerBands()."upperband" within 4 bars;

addOrder(OrderType.SELL_TO_CLOSE, exit, open[-1], tradeSize, Color.MAGENTA, Color.MAGENTA);

###


Thanks for any help

DannosukePhD
 
Last edited:
Thread starter Similar threads Forum Replies Date
S Watchlist column for price with respect to pivot points Questions 1
A Price index label on chart Questions 0
A 2-step price action relative to MA Questions 3
J007RMC How to calculate tomorrows close price Questions 21
S Help painted target zone time / price Questions 3

Similar threads

Top