Breakout DAX 15 min

Forums ProRealTime English forum ProOrder support Breakout DAX 15 min

Viewing 10 posts - 1 through 10 (of 10 total)
  • #24247

    Hi, I need help, I’m working on a robot, the one I copy next. It is the break in the dax of the first 15 minutes of the day. But I need you not to be continuously buying and selling, I only try 2 times a day, once in purchase and another one for sale if the price touches. how can I do it? thank you

     

     

    #24261

    If you are on market you are already tagging your 2 variables at lines 26 and 30, so their tests at lines 15 and 19 should already work.

    #24268

    If it works, it works. But what happens is that he spends all day doing operations. And I want you to only put one to buy and one to sell at the most. Although the condition is returned, if it has already bought once, do not buy again that day.

    #24286

    When using pending orders, they can trigger anytime between 2 bars at the price level we put them on. So, we never know when they are executed, and if they last only 0 bar (open and close inside the bar), there is no way to know we were on market inside this bar, that’s why you have a lot of trades because your ‘compra’ and ‘venta’ variables will never be set to 1.

    #24352

    in pdf of probuilder  of prorealtime there is a code very good , page 80 i think .

    #24354
    #24376

    Hello, I already tried it, but when you change the stop by 10 and put a take of 10, it happens again, spend the day getting operations, I want you to schedule a purchase operation at the maximum and a sale in The minimum and that throughout the day if the price touches it will execute one or both. And not to continue scheduling all day orders.

    #24543

    Sorry but the code i gave here , only take 2 orders max in one day .Sometimes no orders .

     

    maybe your code is different . To solve your problem you have just to implement a counter , with reset  for a  new day ….

     

    hope that helps .

    #24544

    if you want to have one sell and one buy

    if INTRADAYBARINDEX =0 THEN

    COUNTBUY =0

    COUNTSELL =0

    LASTINDEX = 0

    ENDIF

     

    etc  etc etc

    #24545

    Is the same code that I put take of 10 and stop of 10. in the original code, has no take and ends at the end of the day, and has a large stop. Would you know how to do the meter and reset it the next day?

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

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