DAX DAYLY: system that works.

Forums ProRealTime English forum ProOrder support DAX DAYLY: system that works.

Viewing 3 posts - 1 through 3 (of 3 total)
  • #233954

    I am monitoring followin system, which seems tu make gains.

    There is but something in the code which impedes to active the automatic orders in Prorealtime. Could someone help me kindly to understand which is the problem?

    Many thanks in advance!!

    lorenzo

    DEFPARAM CumulateOrders = false

    Timeframe(Daily,UpdateOnClose)
    DDhigh = high
    DDlow = low
    Timeframe(default)
    IF OnMarket AND DDhigh <> DDhigh[1] THEN
    SELL AT Market
    EXITSHORT AT Market
    ENDIF
    IF close < DDhigh AND Not LongOnMarket THEN
    BUY 1 CONTRACT AT DDhigh STOP
    ENDIF
    IF close > DDlow AND Not ShortOnMarket THEN
    SELLSHORT 1 CONTRACT AT DDlow STOP
    ENDIF
    set stop ploss 80
    set target pprofit 40

    #234033

    I tested it on DAX, 1-hour TF and it works like a charm, both in Backtesting (it regularly opens and closes trades) and Autotrading (started without any issue).

    No errors reported.

     

    #234035

    Works fine for me also … no errors, nothing weird happens as I can see.

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

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