NexusFi: Find Your Edge


Home Menu

 





Basics of SbS Renko charting needed


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one roonius with 4 posts (18 thanks)
    2. looks_two cunparis with 4 posts (4 thanks)
    3. looks_3 Eric j with 2 posts (2 thanks)
    4. looks_4 stephenszpak with 2 posts (4 thanks)
      Best Posters
    1. looks_one roonius with 4.5 thanks per post
    2. looks_two stephenszpak with 2 thanks per post
    3. looks_3 cunparis with 1 thanks per post
    4. looks_4 Big Mike with 1 thanks per post
    1. trending_up 20,950 views
    2. thumb_up 36 thanks given
    3. group 20 followers
    1. forum 34 posts
    2. attach_file 5 attachments




 
Search this Thread

Basics of SbS Renko charting needed

  #31 (permalink)
philtrader
sydney
 
Posts: 3 since Jul 2011
Thanks Given: 4
Thanks Received: 0

Hi,

This is my first post and I am just learning Ninjascript. I am working on a strategy that uses SbSRenko(5) as a primary Bar chart and SbSRenko(20) as a secondary.

In Initialize() I try to add the SbSRenko first and then the SbSRenko(20):

Add(PeriodType.Custom6,
5);
Add(PeriodType.Custom6,20);

Then when I backtest I select SbSRenko(5) as a Data serie type. I got the "Custom6" by opening the file SbSRenkoChart.cs.


I would like to continue on something like:


// condition below should apply to my primary chart SbSRenko(5) and SbSRenko(20)

if
(EMA(BarsArray[1], 5)[0] > EMA(BarsArray[1], 20)[0]) && (EMA(BarsArray[2], 5)[0] > EMA(BarsArray[2], 20)[0])
{
// condition below should apply to my primary chart SbSRenko(5)only
if (anaMACDBBLines(10, 12, 26, 1).BBMACDLine[0] >= anaMACDBBLines(10, 12, 26, 1).Upper[0]
{
EnterLong(DefaultQuantity, "");
}
}

Is that correct ?

Thanks.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #32 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395


philtrader View Post
Hi,

This is my first post and I am just learning Ninjascript. I am working on a strategy that uses SbSRenko(5) as a primary Bar chart and SbSRenko(20) as a secondary.

In Initialize() I try to add the SbSRenko first and then the SbSRenko(20):

Add(PeriodType.Custom6,
5);
Add(PeriodType.Custom6,20);

Then when I backtest I select SbSRenko(5) as a Data serie type. I got the "Custom6" by opening the file SbSRenkoChart.cs.


I would like to continue on something like:


// condition below should apply to my primary chart SbSRenko(5) and SbSRenko(20)

if (EMA(BarsArray[1], 5)[0] > EMA(BarsArray[1], 20)[0]) && (EMA(BarsArray[2], 5)[0] > EMA(BarsArray[2], 20)[0])
{
// condition below should apply to my primary chart SbSRenko(5)only
if (anaMACDBBLines(10, 12, 26, 1).BBMACDLine[0] >= anaMACDBBLines(10, 12, 26, 1).Upper[0]
{
EnterLong(DefaultQuantity, "");
}
}

Is that correct ?

Thanks.

Hi,

I am certainly not an expert yet with "Multi-timeframe" strategies but I can tell you the INIT you don't need the primary set in your chart type. Just add the 20 not the 5. 5 will be BarsInProgress==0 and 20 will then be BarsInProgress==1.

I am not sure your conditional statements are valid. You should probably use a construct more like:

If (BarsInProgress==0)
{// Put all sb=5 conditions,etc here
m_EMA5=EMA(Close,myperiod);
}

If (BarsInProgress==1)
{// Put all sb=20 conditions,etc here
m_EMA20=EMA(Close,myperiod);
}

Also note in your logic that if both bars close at the same time, BarsInProgress==0 will aways fire first. You should be able to use all the Open/Close/High/Low/Volume datasets and NT sets them to the appropriate data set. It uses BarsInProgress to tell you which data set they are currently point.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #33 (permalink)
philtrader
sydney
 
Posts: 3 since Jul 2011
Thanks Given: 4
Thanks Received: 0


Thanks, it works now with your recommendation.

Reply With Quote
  #34 (permalink)
 daytrader4 
Birmingham England
 
Experience: Intermediate
Platform: Tradestation
Trading: ES
Posts: 10 since Sep 2010
Thanks Given: 0
Thanks Received: 2

Hi can someone please post the sbs renko nt7 download I know it exists but cannot find it

Thanks

Reply With Quote
  #35 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


daytrader4 View Post
Hi can someone please post the sbs renko nt7 download I know it exists but cannot find it

Thanks

search use keyword sbsrenko
https://nexusfi.com/search/attachments/

Reply With Quote
Thanked by:




Last Updated on October 5, 2011


© 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