Buy Close sell Open AAPL

Forums ProRealTime English forum General trading discussions Buy Close sell Open AAPL

Viewing 5 posts - 1 through 5 (of 5 total)
  • #207770

    Hi again!

    I have a hard time figuring out why my system doesnt do what i want it to do.

    I want to buy the close if it’s above moving average 200 and closing above 3%.

    Then i want to sell this position the day after at open.

    Since i live in Sweden the trading hours for the NY stockxchange is 15:30 -> 22:00.

    Stock is AAPL (just an example).

    When i backtest i get 10 trades only and the system doesnt sell the positions the day after.

    #207772

    It opens trades at 22:00 (when the 21:30 candle closes) and exits at 15:30 (when the 15:00 candle closes, provided there is one).

    Try replacing Time with OpenTime.

    1 user thanked author for this post.
    #207775

    Hi again,

    Got it to work now, thanks alot! The system is closing the position after 30 min now (16:00) instead of 15:30. I guess when i change the time the system will not find a closing candle to sell it on.

    #207781

    Here is the final version, either short or buy close depending on the trend and sell/covers the day after.

     

    #207784

    Want to add it works very poorly overall on other stocks. But it was a fun project 🙂 On to the next!

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

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