Exit within the next 4 bars if higher than entry price on market

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #236091 quote
    KovitKovit
    Participant
    Senior

    Hi guys,

    Apologies again for my inability to code can anyone help with this?

    Thanks in advance and best of luck with your endeavors.

    #236097 quote
    JSJS
    Participant
    Master

    Hi,

    If (BarIndex-TradeIndex(1))<=4 and Close>TradePrice(1) then

    Sell at Market

    EndIf

    Kovit and Iván González thanked this post
    #236100 quote
    KovitKovit
    Participant
    Senior

    Thank you JS.

    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 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

Exit within the next 4 bars if higher than entry price on market


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Kovit @kovit Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by KovitKovit
2 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/03/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...