Simple share breakout system

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10104 quote
    colydog
    Participant
    New

    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
    
    grizzly and Nicolas thanked this post
    #10160 quote
    Nicolas
    Keymaster
    Master

    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.

    #10223 quote
    colydog
    Participant
    New

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Simple share breakout system


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
colydog @colydog Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by colydog
9 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/02/2016
Status: Active
Attachments: No files
Logo Logo
Loading...