Search found 7 matches
- 12 Feb 2017
- Forum: MultiCharts .NET
- Topic: The most efficient way to calculate if a session profit threshold has been achieved?
- Replies: 1
- Views: 1307
The most efficient way to calculate if a session profit threshold has been achieved?
Hi All, What is the most efficient way to calculate if a predefined daily profit threshold for a single trading session has been exceeded in MultiCharts.NET? The purpose of this requirement is to pause trading temporarily once a specific profit target has been achieved for the session. When a new se...
- 12 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Re: Buy this bar at close, buys next bar at open? [SOLVED]
Thanks TJ, seems like buy the penultimate bar tick without the need for a 2nd data feed. I'll give that a go.You are over complicating things.
All you need is this:Code: Select all
[ IOG=True ]
If volume = 499 then BUY next bar at market;
- 12 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Re: Buy this bar at close, buys next bar at open? [SOLVED]
I assume you are using market orders in live trading based on how your code is written. That would explain being off one tick in some instances. If you have IOG=False, then if you generate orders at bar close, then the only opportunity for your generated order to fill would be on the next tick whic...
- 12 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Re: Buy this bar at close, buys next bar at open? [SOLVED]
I assume you are using market orders in live trading based on how your code is written. That would explain being off one tick in some instances. If you have IOG=False, then if you generate orders at bar close, then the only opportunity for your generated order to fill would be on the next tick whic...
- 12 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Re: Buy this bar at close, buys next bar at open? [SOLVED]
Working off tick charts of various resolutions (500,1000 etc.), I wonder if something like setting up a 2nd data feed to count remaining ticks left to bar completion and executing entry on the penultimate tick before closing would work. I'd love to have something like this for range bars, but given ...
- 10 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Re: Buy this bar at close, buys next bar at open? [SOLVED]
Thanks for the prompt reply, I read page 80 of the EasyLanguage Essentials Programmers Guide. this bar on Close: Market order on the close of this bar, generally used for historical backtesting purposes only. This will not generate a market on close order. It seems like quite a limitation to have to...
- 10 Aug 2016
- Forum: MultiCharts
- Topic: Buy this bar at close, buys next bar at open? [SOLVED]
- Replies: 17
- Views: 11341
Buy this bar at close, buys next bar at open? [SOLVED]
Hi, I've developed a strategy which triggers a long entry when a certain set of conditions is met. In back-testing and forward-testing the code executes as expected. However, when I run the following code live it appears to be executing orders at the price of the open of the next bar, instead of the...