1 BAR DEAL?!

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

    Hi everyone!

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

    #48264 quote
    Despair
    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.JOKAR
    Participant
    Average

    Thanks for reply

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

    #48277 quote
    Despair
    Blocked
    Master

    Then you do so. LOL

    if barindex-tradeindex=X then
      sell at market
      exitshort at market
    endif
    #48286 quote
    PEDRAM.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.

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

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