NexusFi: Find Your Edge


Home Menu

 





Renko 9 and Renko 6 on a pair. how to I get info from one a pass it to the other


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 benwincky 
Brussels Belgium
 
Experience: Beginner
Platform: Ninjatrader
Broker: GAINCAPITAL/Forex.com
Trading: Forex
Posts: 14 since Mar 2013
Thanks Given: 5
Thanks Received: 1

Hello to you,

I'm carefully reading the Wiki part. But can't make it all on one day. I fully understand the Idea behind Wiki and find it a good idea.

I get slowly and slowly more comfortable with C# starting from scratch with BigMike’s videos
I trade forex only
This is a pure renko charts (mutli-renko bricks) question

I have to charts (let’s suppose EURJPY)
One chart is set to 9 ticks bricks
The other one to 6 ticks bricks

I use the 2 MACD’s ( We agree they have different patterns)
I don’t use any other indicators (I just get inspired by the 240 minutes ATR) but it doesn’t come inside the logic.
Let’s call them BigMACD ( the renko 9MACD)
And LittleMACD (the renko 6MACD)

Here is the logic
If BigMACD > 0 and littleMACD > 0 Enter Long or Do nothing
If BigMACD > 0 and littleMACD < 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD > 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD < 0 Enter Short or Do nothing
Though still a beginner, I fully understand the “CalulateOnBarClose= true (option)

Now, as a beginner with ninjascript I have this problem

If I attach my strategy to the MACD9renko, it won’t actually read my MACD6renko (COBC) and won’t run my logic

If I attach my strategy to the MACD6renko, it won’t actually read my MACD9renko (COBC) and won’t run my logic

So to rephrase all this that would look like this
CalulateOnBarClose= true
(Whether the signal comes out the Renko9MACD or the Renko6MACD)
(That’s where I hit a problem)

If BigMACD > 0 and littleMACD > 0 Enter Long or Do nothing
If BigMACD > 0 and littleMACD < 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD > 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD < 0 Enter Short or Do nothing

Any way around this?

PS I don't think I can attach a screen shot . I did so to a user name patbateman, but I don't think I succeded

Thanks in advance for your help


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Synapse Pro - Trade Copier with topstep and MT5 integrat …
NinjaTrader
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
Irans Answer Due Today: Peace Surges to 33.5%, Invasion …
Prediction Markets & Event Contracts
Prop Firms Are Banning Gold Trading as Record Prices Mak …
Funded Trading Evaluation Firms
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 traderjh 
South Jordan UT
 
Experience: Intermediate
Platform: Ninjatrader
Trading: Forex
Posts: 15 since Jan 2013
Thanks Given: 6
Thanks Received: 1


benwincky View Post
Hello to you,

I'm carefully reading the Wiki part. But can't make it all on one day. I fully understand the Idea behind Wiki and find it a good idea.

I get slowly and slowly more comfortable with C# starting from scratch with BigMike’s videos
I trade forex only
This is a pure renko charts (mutli-renko bricks) question

I have to charts (let’s suppose EURJPY)
One chart is set to 9 ticks bricks
The other one to 6 ticks bricks

I use the 2 MACD’s ( We agree they have different patterns)
I don’t use any other indicators (I just get inspired by the 240 minutes ATR) but it doesn’t come inside the logic.
Let’s call them BigMACD ( the renko 9MACD)
And LittleMACD (the renko 6MACD)

Here is the logic
If BigMACD > 0 and littleMACD > 0 Enter Long or Do nothing
If BigMACD > 0 and littleMACD < 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD > 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD < 0 Enter Short or Do nothing
Though still a beginner, I fully understand the “CalulateOnBarClose= true (option)

Now, as a beginner with ninjascript I have this problem

If I attach my strategy to the MACD9renko, it won’t actually read my MACD6renko (COBC) and won’t run my logic

If I attach my strategy to the MACD6renko, it won’t actually read my MACD9renko (COBC) and won’t run my logic

So to rephrase all this that would look like this
CalulateOnBarClose= true
(Whether the signal comes out the Renko9MACD or the Renko6MACD)
(That’s where I hit a problem)

If BigMACD > 0 and littleMACD > 0 Enter Long or Do nothing
If BigMACD > 0 and littleMACD < 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD > 0 Stop order or Do nothing
If BigMACD < 0 and littleMACD < 0 Enter Short or Do nothing

Any way around this?

PS I don't think I can attach a screen shot . I did so to a user name patbateman, but I don't think I succeded

Thanks in advance for your help


Which platform are you using? If you are using NT7, you can use 'BarsInProgress = 0' for BigMACD and 'BarsInProgress = 1' for littleMACD to work with conditions. I would suggest false for CalulateOnBarClose so you can get specific prices you want for entry/exit unless you want the next bar.

Hope it helps,
-traderjh


Reply With Quote
Thanked by:




Last Updated on July 23, 2013


© 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