Buy a specific day

Forums ProRealTime English forum ProOrder support Buy a specific day

  • This topic has 2 replies, 3 voices, and was last updated 5 months ago by avatarJS.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #224182

    Hi,

    I’m doing a simple strategy, just to verify how a ticket like Soybean ZS behave buying at first hour of day and selling last hour.

    DEFPARAM CumulateOrders=false

    OrarioInizioGiorno=000000
    OrariofineGiorno=200000
    TIMEFRAME(1 hour,default)
    IF (DayOfWeek = KK) and time=OrarioInizioGiorno THEN
    buy 1 shares AT MARKET
    ENDIF
    IF time=OrariofineGiorno THEN
    sell 1 shares AT MARKET
    ENDIF

     

    KK goes from 1 to 5. it works until 2015 and nothing more after. any idea why?

    thank’s in advance for your answer.

     

    Alessio

    #224197

    Will you please attach the ITF file?

     

    #224211
    JS

    Hi,

    I think that over time the trading hours have been adjusted, when you use the correct trading hours the system works…

    (Remember that the position is opened on the OPEN of the next bar… an hour later)

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