Multiple entries

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #72950 quote
    ChrisNYE
    Participant
    Senior

    Is there any way I can create code to enter my first position based on an indicator and then place a second trade once price has moved in my favor – similar to pyrmading or scaling into a position?

    #72952 quote
    Vonasi
    Moderator
    Master
    DEFPARAM CumulateOrders = true
    
    IF not OnMarket and (your conditions) then
    Buy 1 contract at market
    ENDIF
    
    IF OnMarket and (your conditions) and close > PositionPrice then
    Buy 1 contract at market
    ENDIF

    Something like this?

    #72959 quote
    GraHal
    Participant
    Master

    Above Snippet added, as row 37,  to Snippet Link Library

    Vonasi thanked this post
    #72969 quote
    ChrisNYE
    Participant
    Senior

    Will try. Thank you

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

Multiple entries


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ChrisNYE @chrisnye Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by ChrisNYE
7 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/12/2018
Status: Active
Attachments: No files
Logo Logo
Loading...