cumulate order = true/false.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38980 quote
    Kenneth 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
    Nicolas
    Keymaster
    Master

    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
    Derek
    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 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
    Nicolas
    Keymaster
    Master

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

    #39446 quote
    Kenneth Kvistad
    Participant
    Senior

    Thnx alot. 🙂

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

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 Kvistad
8 years, 7 months ago.

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