Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
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 .
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.
Question:
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[0] and Strategy.Close[0]?
Hi Pak,
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".
Baruch
p.s.
You do it with EnterLong(0, true.....)
or EnterLong(1, true.....)