intraday DAX strategy 5min mini1€ spread 1

Forums ProRealTime English forum ProOrder support intraday DAX strategy 5min mini1€ spread 1

Viewing 15 posts - 181 through 195 (of 503 total)
  • #22393

    Hi all. I’ve had a serious problem this morning with the previous version of the code. It sold at 08:05 as it should have and I got stopped out (again as it should have). The problem seems to be when I was stopped out the order was partially executed. I’ve had this problem with other systems I have been working on. When there is a partial executed order, the amount that is partially executed is either bought or sold again. I hope I’m making sense. See the screen shot attached. You can see the order tickets:

     

    08:05:02: executed -5 Dax (@ 11,679.0)

    08:05:16: SL : partially executed +4 Dax (@ 11,683.50)

    08:05:16: SL : fully executed +1 Dax (@11,684.00)

    08:05:18: executed +4 Dax (@11,684.00)

     

    Result is that I have a naked long 4 position (shame as I would have made good money).
    Can anyone help with this problem? Has anyone seen it before? The version of the code I’m using is below. Thanks everyone

     

     

    #22398

    Hello,

    On the dax, the minimum stop loss is 6

    The stop loss trailing is 5

    1 user thanked author for this post.
    #22400

    @ Raul. I ran the code you posted yesterday at 3:55pm. Same problem with using ptrailing with the data in July 2014. I attach the two results.

    (I’m aware that thinking / code has moved on since then).

    #22407

    Hello jonjon, in your code the problem I see is that the minimum stop loss is 5, at least in my broker. By the way, the error that you say in the backtest the same day of June can be due to that as maximum can do 500 checks tick by tick by backtest. Try to put the backtest from May 1, 2014 until you get to see if t leaves the problem on the same day.

    #22412

    @Raul and @arcane. Thanks for the replies. I’m not signed up to IG. I realise that I will have minimum SLs to work with (these do seem to change by country). As / when I trade through IG then I will have to change the code accordingly. I may be wrong however at the moment my SL level being 4 instead of 5 (or 6) should not explain the error??

    I’ve logged it with PRT as well and I’ll let you know what they say.

    #22445

    Hi,

    Today in the first bar has happened again the other day, live has opened later due to the first time pull, in the backtest has opened when due and the first bar has been winning, live has opened later and has lost. It is necessary to prove it well, to see if this is common entry because the price changes very fast.

    #22452

    @Roul

    Today all trade in loss..total day -25….I’m out for business travel and what is the difference between real and backtest today ? Thanks

    #22459

    with risk manager, Every 1000 euro of profits, adds a contract.

     

     

    #22462

    For the strategy, I advise another martingale.

    When the program is losing, you increase the position.

    This famous martingale is the work of Alembert, French mathematician of the eighteenth century.
    In case of loss, the position is increased by one unit, and in case of gain, it is reduced by one unit.

     

    The gain is better.

    #22472

    In my race towards madness I decided to re-edit the code.

     

     

    5 users thanked author for this post.
    #22476

    Hi, just a thought.. If you want a smaller SL that the broker allows- you can try and play around with this code

     

     

    2 users thanked author for this post.
    #22484

    Hi!

    I tried to run it in live in my demo ig acount and it says that minimum 10 stop is allowed for automated strategies and today it made a loss trade with trailing sl at 5. Same strategy  with tick backtest says it won that trade……

     

    Regards

    Henrik

    #22486

     https://www.prorealcode.com/topic/5-min-mini1e-dax-spread-1/page/13/#post-22445

    #22492

    off topic i know but worth reading http://www.trade2win.com/boards/spread-betting-cfds/220766-interview-highbury-fx.html

    this is a smaller firm than IG and i think and i hope IG have a different way of handling the trades and hedging

    but IG is still a market maker and as long they can pass on your wins to someone else (losing) its no problem but if you try to get IG to pay your profits it can be a problem?

    dont answer to this here and ruin the thread, start a new topic in general trading in case of any thoughts on this

    i dont want to sound negative just try to help

    2 users thanked author for this post.
    #22541

    @Raul,

    what about putting a fixed profit (eg 5 points) on half of the position and let go the other half of the position with the trailing stop? I suspect that some profits will be locked this way.

Viewing 15 posts - 181 through 195 (of 503 total)

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