Announcement

Collapse
No announcement yet.

Taking Profits

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

  • Taking Profits

    Hi,
    I am trying to backtest a strategy that I will run in 15min tf. I want to take some profits after i.e. 20 40 pips. I want to make sure that when price moves 20 pips within the same bar, efs will take some profits. How can efs check the market price before the next bar becomes available? I thought of periodically looking at 1min bars while running the efs in 15min chart, but I'm not sure whether it is possible.

    Regards,

    Yigit

  • #2
    you need to control this with code order. In your code, when you enter a trade (entry trigger), you need to check the high/low of the entry bar to see if your targets have been reached.

    The only problem with doing this is in backtest mode, you are making decisions based on the END OF A BAR. Thus, if you make decisions based on the end of a bar, you need to be cautious that you are not developing code that "looks forward" in time and tries to make decisions. If you do this, then you're going to see HUGE PROFITS that are unrealistic.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X