PDA

View Full Version : Retrieving Highest High for today


1reason
01-12-2008, 01:49 PM
In Market analyzer I am scanning for setups that use daily bars and 10 min bars.

So far I have completed the daily scan indicator but now I want to further filter by 10 minute bars within today.

I would like to add in a check to see what the highest high is for todays 10 minute bars from the open to four bars ago. ( I don't care about bar 1,2,3)

Is it possible to have a market analyzer scanning daily bars AND also further drill down when the daily information meets my criteria.

Then when all that is met I would like to have ninja automatically enter into a posistion.

Thanks

NinjaTrader_Ray
01-12-2008, 01:59 PM
All this can be built into a strategy...the downside, you can't run a strategy in the Market Analyzer.

The Market Analyzer does allow indicator columns which does not support multi-time frame.

To get the the highest high you should use the MAX() indicator. You can have an internal counter and check for the property FirstBarOfSession, when true, set the counter to a value of zero and increment on each new bar. Then on the current bar you could do -

double highestHigh = MAX(High, CounterValue - 4)[4];

Something like that.