Stop Loss Problem

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

    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
    mizattmizatt
    Participant
    Junior

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

    Thanks so much.

    Mark

    #141219 quote
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
6 years, 2 months ago.

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