cumulate order = true/false.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38980 quote
    Kenneth KvistadKenneth Kvistad
    Participant
    Senior

    Is it possible to make cumulating orders somewere between true and false?

    Lets say: only enter 2 or 4 first signals for order.

    #38993 quote
    NicolasNicolas
    Keymaster
    Legend

    You can use COUNTOFLONGSHARES or COUNTOFSHORTSHARES in order to know how much orders/lots/shares/contracts are actually already on market. This way you can limit the quantity of orders of your strategy.

    Derek thanked this post
    #39003 quote
    DerekDerek
    Participant
    Veteran

    And you can count your signals:

    If buycondition=true then
    Signal=Signal +1
    Endif
    
    If (signal<>signal[1] and ( signal =1 or signal =3) then
    Buy at market
    Endif
    
    If notonmarket then
    Signal = 0
    Endif
    
    Nicolas and GraHal thanked this post
    #39176 quote
    Kenneth KvistadKenneth Kvistad
    Participant
    Senior

    I also have a problem with the strategy were it can short and go long and if there is a long trade in operation it can suddenly sell out in loss and go short.

    Possible to tell the program to stay in on short or long untill it hits stop or target.

    #39183 quote
    NicolasNicolas
    Keymaster
    Legend

    You can use “NOT ONMARKET” to prevent a new order to be set on market.

    #39446 quote
    Kenneth KvistadKenneth Kvistad
    Participant
    Senior

    Thnx alot. šŸ™‚

Viewing 6 posts - 1 through 6 (of 6 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

cumulate order = true/false.


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Kenneth KvistadKenneth Kvistad
9 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/25/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...