Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Current price < Previous bar's low = exit position

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by Jebelle View Post
    Yes it was generated from a backtest. Can't go live yet.

    I see, so it was impossible for the trade to exit exactly when the "current" price is lower than the previous bar's low- in a backtest. Sorry for not knowing about the part that backtesting only knows the OHLCV of each bar. Which is why it never worked the way I was expecting it to. If I went live then, would it surely exit the moment it passes the the previous bar's low? Like where I pointed it out on the picture? And if I do use this strategy, will it really be too heavy for the computer? Cause it's necessary for me to set CalculateOnBarClose to false right...
    Easy to test live by simulation. First use the simulated datafeed. where you can actual control the apparent trendiness of the market in order to force favorable test conditions; then with Market Replay, which by using actual market data comes a smidgen closer to reality.

    Comment


      #17
      Originally posted by koganam View Post
      Easy to test live by simulation. First use the simulated datafeed. where you can actual control the apparent trendiness of the market in order to force favorable test conditions; then with Market Replay, which by using actual market data comes a smidgen closer to reality.
      Thank you! I 'll try that immediately. Sorry I took long to reply. I didn't know there was another post.

      Can you tell me if setting the CalculateOnBarClose to false will really be intensive for my CPU? Apparently I really have to set it to false. I hope it it's not too heavy for my PC. I guess I'll get a good idea from simulated trading. If it's really that intensive, is there a way to get the "price"of the previous bar's low so I could just set a stop loss at that price?

      Sorry for all the questions. I'm doing my best to build my strategy on ways that I know as much as possible, but there really are a lot of things that I still have to learn.

      Comment


        #18
        Originally posted by Jebelle View Post
        Thank you! I 'll try that immediately. Sorry I took long to reply. I didn't know there was another post.

        Can you tell me if setting the CalculateOnBarClose to false will really be intensive for my CPU? Apparently I really have to set it to false. I hope it it's not too heavy for my PC. I guess I'll get a good idea from simulated trading. If it's really that intensive, is there a way to get the "price"of the previous bar's low so I could just set a stop loss at that price?

        Sorry for all the questions. I'm doing my best to build my strategy on ways that I know as much as possible, but there really are a lot of things that I still have to learn.
        How the extra load "COBC = false" places on your computer affects things just depends on how much is also running on your computer and how much oomph the computer has.

        The lowest price of the previous bar is simply Low[1], and is historical, so the COBC value has no effect on it.

        Comment


          #19
          Originally posted by koganam View Post
          How the extra load "COBC = false" places on your computer affects things just depends on how much is also running on your computer and how much oomph the computer has.

          The lowest price of the previous bar is simply Low[1], and is historical, so the COBC value has no effect on it.
          I see. It should be fine then. Thank you so much koganam

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          149 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          5 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,283 views
          0 likes
          Last Post Leafcutter  
          Working...
          X