Simple DAX code 1 min

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #102164 quote
    BarneyBarney
    Participant
    Senior

    Here is a simple DAX code on 1 min timeframe.

    Spread=1

    Optimized on 100k

    It look like this on 200k

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    DEFPARAM FLATBEFORE = 080000
    DEFPARAM FLATAFTER = 220000
    
    
    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    
    // Conditions to enter long positions
    indicator1 = ExponentialAverage[9](MACDline[12,26,9](close))
    c1 = (indicator1 < -4.5)
    indicator2 = BollingerDown[20](close)
    c2 = (close <= indicator2)
    
    IF c1 AND c2 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    
    
    myATRLL = 13* averagetruerange[1](close)
    myATRPL = 34* averagetruerange[32](close)
    
    SET stop loss myATRLL
    
    SET target profit myATRPL
    
    reb thanked this post
    dax.jpg dax.jpg
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Simple DAX code 1 min


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Barney @rickardktm Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/08/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...