Help: Autotrade making incorrect trades?

Forums ProRealTime English forum ProOrder support Help: Autotrade making incorrect trades?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #192026

    I made a pretty basic auto trading algo that trades off both 200DEMA and supertrend. It looks something like this

     

    It ran well in backtesting so I thought i’d enter a position with it today and test it out. Unfortunately it doesn’t follow my code???

    https://ibb.co/mX5wrhv

    As you can see from the picture I uploaded, it entered a short position at 215, which doesn’t make sense as the price wasn’t under the 200DEMA line which I specified it should. Why is this? I am really confused

    #192030

    I set up chart for NVIDIA on 15M TF (spreadbet) and price has been below DEMA since about 15:15 today … see attached at red arrowhead?

    What time did your Algo take the trade?

    #192032

    From the attached pic I can’t see the time and date of entry, and the values of the price and indicators, so I can’t replicate exactly.

    Moreover “It looks something like this“, isn’t accurate. To compare results the code must be absolutely IDENTICAL to the one you used.

    My backtests are all good, though.

    I suggest that you add these lines to your code, maybe this will help detect something wrong (though they only work in backtests):

    #192035

    Hey, thanks for the reply.

     

    The trade happened at 10:45am US time, which would be 3:45pm UK Time. For some reason my DEMA line is glitched? Its completely different to yours.

    https://ibb.co/cJ3PtNs

    From this image here, it shows my DEMA line only crossed above price at 11:45am US time, which is 4:45pm UK time. This is consistent with my graph on tradingview. How come yours is different?

    #192036

    My code is exact, the same one I ran the backtest with I ran the automated trading program with. I’m just confused as to why it’s not following my instructions

    #192040

    For some reason my DEMA line is glitched? Its completely different to yours.

    Try it on Spreadbet as you are showing NVIDIA on CFD?

    It shouldn’t make any difference, except the figures shown for Price (multiplied by 100 on SB)

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

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