Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

rublizz

Members
  • Content Count

    3
  • Joined

  • Last visited

Posts posted by rublizz


  1. Orders are placed on the next bar. That's is, the bar after the bar that just closed.

     

    This is how I would do it. After determining my buy level I turn on a flag. Each time the current bar closes and my order is not filled, the order is replaced. If order is filled, my flag is disabled. At the end of day, my flag is disabled and all unfilled orders canceled.

     

    Let me know if you want me to post a code example.

     

    I get the concept.

    But how can I catch bar close event?

     

    Code would be good.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.