Stop Loss Problem

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #141146 quote
    robertogozzi
    Moderator
    Master

    Because you have to adjust lines 6 and 14 to the size of your position:

    Sl = (abs(close – lowest[3](low)-1) / PipSize * PipValue) * PositionSize
    Sl = (abs(close - highest[3](high) + 1)/ PipSize * PipValue) * PositionSize
    mizatt thanked this post
    #141156 quote
    mizatt
    Participant
    Junior

    That’s solved it Roberto.  You’re a star!

    Thanks so much.

    Mark

    #141219 quote
    Nicolas
    Keymaster
    Master

    Because the “SL” variable count for 1 contract, you should multiplied it by the quantity of contracts you want for the order:

    Set Stop $loss min(100,Sl*PositionSize)
Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.

Stop Loss Problem


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
mizatt @mizatt Participant
Summary

This topic contains 17 replies,
has 3 voices, and was last updated by Nicolas
5 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/07/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...