NexusFi: Find Your Edge


Home Menu

 





Multi Timeframe Function in ninjatrader ??


Discussion in NinjaTrader

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




 
Search this Thread

Multi Timeframe Function in ninjatrader ??

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629

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

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter 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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts