NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe Function in ninjatrader ??


Discussion in NinjaTrader

Updated
    1. trending_up 1,663 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
fxtraders
connaught, DL
 
Posts: 11 since Sep 2016
Thanks Given: 1
Thanks Received: 0

Hello peoples,
I've few
Questions:

1. Is there function like TimeFrameSet(), TimeFrameRestore(), Timeframeexpand() in Ninjatrader?

2. (Optional question) Is there function like Varset and Varget in NInjatrader?



 
Code
Plot( C, ""+Interval(2), styleCandle );
for( i = 1; i <4 ; i++ ) 
{ 
   TimeFrameSet(i*in1Minute );
   rs = RSI(14);
   TimeFrameRestore();
   m = TimeFrameExpand( rs, i*in1Minute , expandPoint ); 
  // VarSet( "M"+ i, TimeFrameExpand( rs, i*in1Minute , expandPoint ) ); 
//M = VarGet( "M" + i );

   for( b = 0; b < BarCount; b++ )
    {
if(M[b] )   PlotText(" "+(i), b, L[b]-1-(i), colorAqua);
}
}
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );



Upper Code is merely 10 lines of code,
Is it possible to make such thing in Ninjatrader?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
CME Raises Energy Futures Margins After Iran-War Volatil …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,759 since Jun 2009
Thanks Given: 3,828
Thanks Received: 4,645

It doesn't work exactly like this, check the @sampleMultiTimeFrame.cs included in the Ninja strategy folder.


Success requires no deodorant! (Sun Tzu)
Reply With Quote
Thanked by:
  #3 (permalink)
fxtraders
connaught, DL
 
Posts: 11 since Sep 2016
Thanks Given: 1
Thanks Received: 0



sam028 View Post
It doesn't work exactly like this, check the @sampleMultiTimeFrame.cs included in the Ninja strategy folder.

Thx Sam028,
Is it a folder in NinjaTrader 7 ?
I'll search for it.


Reply With Quote




Last Updated on October 20, 2016


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts