Stop Loss when position is opened with more than one contract

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #173987 quote
    DreaC
    Participant
    Average

    Hi everyone,

    Have programmed a system that I have backtested and that is now running via ProOrder Automatic Trading. The backtest results are different from the Automatic Trading results. One difference I noted was the behaviour of the Stop Loss in backtesting and automatic trading. When I define a stop loss of 60 points and I enter a position with 2 contracts then the behaviour is as follows:

    • in backtestesting the position is closed when a loss of 120 points is reached
    • in automatic trading  the position is closed when a loss of 30 points is reached

    Is this an error in the backtesting software or am I doing something wrong?

    Best regards,

    Dré

    #173998 quote
    robertogozzi
    Moderator
    Master

    How did you set your SL?

    #174004 quote
    DreaC
    Participant
    Average

    Stop loss 60

    #174005 quote
    robertogozzi
    Moderator
    Master

    If you are using your strategy with indices (Dax, SP, etc…) where Price-to-Pips ratio is 1:1 , then it’s fine and you shouldn’t have those differences.

    If you use it with other instruments with a different ratio, say FX pairs, where it’s usually 1:10000, 60 would be a price difference of 60.12345, which can be fine (well… a bit too large)  for Eur/Jpy, but it would be impossible to reach with Eur/Usd.

    You should use ploss 60, instead. “p” stands for Pips.

    #174015 quote
    DreaC
    Participant
    Average

    Thank you Roberto for your reply.
    I am using it on DOW. But the product I am using is of no importance. The results should be the same for backtesting and for automatic trading

    #174016 quote
    robertogozzi
    Moderator
    Master

    Only checking the code while replicating trades may help finding out the reason.

    #174062 quote
    DreaC
    Participant
    Average

    When I define a stop loss of 60 points and I enter a position with 2 contracts then the behaviour is as follows:

    • in backtestesting the position is closed when a loss of 120 points is reached
    • in automatic trading  the position is closed when a loss of 30 points is reached

    What should be the right behaviour?

    #174065 quote
    robertogozzi
    Moderator
    Master

    The SL is set for the whole position, it’s 60 pips, no matter how many contracts.

    It’s the number of contracts that work as a multiplier, 1 contract will lose 60 pips, the other contract will loose another 60 pips, but the number of pips cannot change!

    You should revert to:

    SET STOP $LOSS X

    (the same for $PROFIT) where X is the money (just numbers, no currency symbol) you are willing to risk.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Stop Loss when position is opened with more than one contract


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
DreaC @dreac Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/22/2021
Status: Active
Attachments: No files
Logo Logo
Loading...