NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-21-2008, 08:56 AM   #1
ju1234
Senior Member
 
Join Date: Nov 2008
Posts: 227
Thanks: 1
Thanked 0 times in 0 posts
Default Difference between"Bars ago" & "look Back"

What is the difference between "Bars ago" and "Look back period".

If I understand it correctly: the look back of 3 will look for the condition (all settings in the condition left panel and right) in last 3 bars and if any of the three meet the condition it will take action. On the other hand "Bars ago=3", ONLY the parameter set in left panel of the Builder will be searched through the last 3 bars. Am I right? Thanks.
ju1234 is offline  
Reply With Quote
Old 11-21-2008, 09:37 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi ju1234,
Thanks for your post.

The 'LookBack' period sets the number of bars to look back to check for the cross above / cross below condition.

'BarsAgo' references a certain data point value of your parameters in past.

Please also see this link -

http://www.ninjatrader-support.com/H...onditions.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 11-21-2008, 10:09 AM   #3
ju1234
Senior Member
 
Join Date: Nov 2008
Posts: 227
Thanks: 1
Thanked 0 times in 0 posts
Default Bars ago?

For VOL if I have bars ago=3, does that mean the volume of "bar 3" or "any bar in last 3". If the former, how do i express "any bar in last 3"? Thanks.
ju1234 is offline  
Reply With Quote
Old 11-21-2008, 10:56 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi ju1234,

Thanks for posting!

This means it considers the volume that occured 3 bars ago.

For your purpose you can look into MAX() from the indicators and specify 3 as the 'Period' while using Volume from the Price data category as your input series.

Please also see this link - http://www.ninjatrader-support.com/H...aximumMAX.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between "trades" and "strategies" results suitguy1 Automated Trading 1 07-25-2008 03:05 PM
Please add "Calmar" and "Sterling" ratios to Performance._Trades.TradesPerformance Elliott Wave Suggestions And Feedback 2 06-10-2008 09:57 PM
the forum can not remember the settings of "Sorted by" and "Sort Order" clearpicks Suggestions And Feedback 1 05-23-2008 12:05 PM
"'OrderRejected'. Strategy has sent cancel requests" & "There is no market data..." Elliott Wave Strategy Development 6 04-12-2008 12:03 AM
Control center "strategies" tab, "Positions tab, and "Market Analyzer" not funk101 Strategy Development 6 04-10-2007 03:44 AM


All times are GMT -6. The time now is 07:17 PM.