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,454 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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: 0

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?
Trade idea based off three indicators.
Traders Hideout
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
HumbleTraders next chapter
11 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


© 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