Hi all
new member.
daily breakout for shares using daily timeframe.
Using chande kroll stop as trailing stop.
position entry is based on 5 times ATR. the % risk is a variable.
// Definition of code parameters
DEFPARAM CumulateOrders = False // Cumulating positions deactivated
REM Money Management
Capital = 40000
Risk = (a)
StopLoss = Myrange //
Myrange = (AverageTrueRange[14](close) * 5)
REM Calculate contracts
equity = Capital + StrategyProfit
maxrisk = round(equity*Risk)
PositionSize = abs(round((maxrisk/StopLoss)))
// Conditions to enter long positions
indicator1 = Volume
c1 = (indicator1 > 200000)
indicator2 = Average[40](close)
indicator3 = Average[120](close)
c2 = (indicator2 > indicator3)
indicator5 = (highest[40] (high[1]))
c4 = (close >= indicator5)
IF c1 AND c2 AND c4 THEN
BUY PositionSize SHARES AT MARKET
ENDIF
// Conditions to exit long positions
IF CLose Crosses Under ChandeKrollStopUp[20,20,4] THEN
SELL AT MARKET
ENDIF
// Stops and targets
Hi colydog,
Thanks for joining in and sharing your strategy.
I can see you are using volumes to determine your trade enter conditions. Do this strategy is for stocks only? Do you know some tickers that perform well with your code? Thanks again.
hi there
have only used it for stocks at the moment. it is a very basic system that just tries to jump on the back of trends and where the movement is