Can't speak to why NT is unable to do this, but MultiCharts does it fine. You simply click a button and it will use "bar magnifier" (tick data) on non-tick data series to give you accurate OHLC. The other nice thing is it automatically assumes the worst OHLC order, whereas it seems to me that NT assumes the best. Even if NT would just assume the worst it would be a huge improvement in the "don't get your hopes up" department, but obviously the best choice would be a bar magnifier type feature.
But seriously, if NT does what you need - stick with it. If it doesn't, just switch. There are good alternatives. No need to beat yourself up.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
Well, they have Historical Fill Processing you can toggle between 'Default' and 'Liberal', It should be very easy to implement that similar toggle best/worst processing for OHLC order, at the very least. Probably 10 lines of code, including comment lines .
The following user says Thank You to monpere for this post:
I'm trying to understand how it should work but I'm getting lost. maybe someone with more neurons (or with better connexions) is able to show some light.
NextLow, NextHigh, etc variables, where are they filled? What do they REALLY mean with "Next"?
let's suppose an order is filled at bar X (can be controlled by CurrentBar)
Now Target and Stop Loss (OCO) are on the market (state == working).
If Target (or StopLoss) price is reached, will be filled on the same bar X if and only if it "follows the colour of the bar".
IF bar X is red and we are processing a long order, we will not fill the target, but will fill the stopLoss
IF bar X is red and we are processing a short order, we will not fill the stopLoss, but will fill the Target
IF bar X is green and we are processing a short order, we will not fill the target, but will fill the stopLoss
IF bar X is gree and we are processing a long order, we will not fill the stopLoss, but will fill the Target
Can I get the "red" and "green" values from Strategy.Open and Strategy.Close?
You can search in NT forum.
But its easy:
1. In Initialize - Add new time frame
2. In OnBarUpdate - now ninja runs twice through it. Once on BarsInProgress == 0 and once on BaesInProgress == 1.
Just put the code in the right place.
Like entries in "0" and stop and profit in "1".
You do it with EnterLong(0, true.....)
or EnterLong(1, true.....)