MACd auto trading Attempt

Forums ProRealTime English forum ProOrder support MACd auto trading Attempt

Viewing 15 posts - 1 through 15 (of 22 total)
  • #98412

    Hello there every, new to this group.

    Im attempting to set up an auto trader based on the MACd and i cant work out why its buying and selling at the same time. See attached pic

    Nothing i change seems to make a difference to it, can any body please assist?

    Cheers

     

    DJ

     

     

    #98414

    Please post your code so we can help find out any issue.

    We need to be able to replicate your trades.

    You also need to tell us:

    • Instrument
    • Time frame used

     

    #98426

    Here is my code

    Not sure what u mean by Instrument sorry

    1 min time frame on the any market/chart i apply it too

    hope that helps, if u need more please let me know

    cheers

    DJ

     

    #98427

     

    #98431

    i cant work out why its buying and selling at the same time

    Your code doesn’t do above on my platform … it does attached.

    EDIT / PS

    What do you have spread set at?

    If you have it set at 10 then it will do what you are experiencing due to your  TS of 10.

    #98433

    you can see on the chart that its making 2 orders at a time.

    #98436

    yet on the closed list there doesnt appear to be multiple transactions at the same time

    #98439

    i asked in another thread what MAE and MFE stand for, so i best get these dumb questions out of the way as well Abs Perf? Relate Per%? what do they mean please?

    Does nbr bars refer to the points/pips of trade?

    Also, i have a trailing stop of 10 set why is it then on the losing trades that the nbr bars showing 10 + shouldnt this close the trade at 10 losing points instead of the 20, 23, 19 that it shows?

    cheers

    DJ

     

    #98441

    It’s because your trailing stop is hit, usually within the first bar, since it’s really tight.

    As you can see from my Pic1 (the same as your, but abridged), the first two trades are tagged both as ENTRY first, then as TRAILING STOP on exit. While the third one hit your target profit.

    You can easily spot them on pic2.

    #98444

    Mine is on DAX, 1h, that’s what I meant by “instrument“.

    #98454

    so from my coding what do i need to change to stop it happening please?

    whats a more reasonable trailing stop, take profit margin to assist it?

    #98455

    Its interesting to see the same strategy do completely different things , on the left is the asx200 index, which is after hours now, and then on the right the EUR/USD, being a FX trade im guessing the market doesnt shut down like each countries local Stockmarkets.

    #98457

    whats a more reasonable trailing stop, take profit margin to assist it?

    Try using the Optimiser to determine above.

    Have you  watched Nicolas videos?

    #98458

    i cant work out why its buying and selling at the same time

    Your code doesn’t do above on my platform … it does attached.

    EDIT / PS

    What do you have spread set at?

    If you have it set at 10 then it will do what you are experiencing due to your TS of 10.

    If i have what part set at 10? the TS or something else?

     

    #98466

    If i have what part set at 10? the TS or something else?

    See red squiggly line on attached

Viewing 15 posts - 1 through 15 (of 22 total)

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