Struggling to code a DAX scalping strategy

Forums ProRealTime English forum ProOrder support Struggling to code a DAX scalping strategy

  • This topic has 3 replies, 4 voices, and was last updated 2 years ago by avatarsmp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #167501

    Ladies and gents

     

    I am struggling to code a strategy to scalp the open of the DAX that I think should be vey simple,

     

    Staggery is,

    1min candles on the open of the DAX,

    At the open find the high and the low from the pre trading (7pm to 8pm UK time)

    1.when the price breaks above or below this point enter a trade with a 15pt stop loss and a 30 Take profit,

    so far this works fine, however I am struggling to code the next bit, the attached code just does not seem to work

    2. if the profit goes up to 15 points (1R) move the stop loss to break even

    3. if I get stopped out I re-enter if the price crosses the original entry point in the same direction as the original trade

    my full code is below

     

     

    #167558

    Try this one:

     

    #167577

    Bob Harris

    • Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’. Your title has been edited.
    #181456
    smp

    I am struggling to code a strategy to scalp the open of the DAX that I think should be vey simple,

    Try this, active risk management to the upside as the downside always go straight to stop if wrong.  A little 5 min direction to stop false breaks

    See what you think?

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login