1 BAR DEAL?!

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #48253 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    Hi everyone!

    how can i code to exit both long or short position just after finishing the bar?

    #48264 quote
    DespairDespair
    Blocked
    Master
    sell at market
    exitshort at market

    Very simple but this was maybe not what you want. Is it a special bar you want to exit after?

    PEDRAM.JOKAR thanked this post
    #48272 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    Thanks for reply

    how if i want exit after special number of bars?!

    #48277 quote
    DespairDespair
    Blocked
    Master

    Then you do so. LOL

    if barindex-tradeindex=X then
      sell at market
      exitshort at market
    endif
    #48286 quote
    PEDRAM.JOKARPEDRAM.JOKAR
    Participant
    Average

    I tried this alrdy but sometimes delay to close. I may try again i shld be wrong. With thanks.

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

1 BAR DEAL?!


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by PEDRAM.JOKARPEDRAM.JOKAR
8 years, 12 months ago.

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