Multiple entries

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #72950 quote
    ChrisNYEChrisNYE
    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
    VonasiVonasi
    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
    GraHalGraHal
    Participant
    Legend

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

    Vonasi thanked this post
    #72969 quote
    ChrisNYEChrisNYE
    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.
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

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

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