NexusFi: Find Your Edge


Home Menu

 





Renko Barnumber Previous Open Equals Current Bar Open


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,152 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)
jkepha
San Antonio, TX
 
Posts: 31 since Apr 2020
Thanks Given: 10
Thanks Received: 6

Hi,

I'm trying to tell easylanguage, if the previous open of the bar equals the current bar's open (renko) then go long. I'm not sure how to express this. Can you help?

Here is my attempt. Did not work.


<code>
if o[barnumber[1]] = o[barnumber]

then

Buy ( "Open" ) 1 Share this bar On close ;
</code>


Thank you!
Ryan


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
$500M Riding on World Cup 2026: France/Spain Co-Favored …
Prediction Markets & Event Contracts
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
 
  #2 (permalink)
Donovan2580
Port St. Lucie, FL
 
Posts: 36 since Jul 2016
Thanks Given: 22
Thanks Received: 37

Hi Ryan,

I have spent A LOT of time coding strategies with Renko bars and let me save you a lot of trouble.

There is technically not an open to a Renko Bar. In hindsight there is, but it real time there is not.

When a Renko bar is "active" (ie... it has not closed and formed a solid brick) the open is still able to be one of 2 spots... Either higher or lower.

I know it is kind of hard to digest - but if you really look at it for a minute you will see what I am talking about.

The ONLY way to code anything accurately with a Renko chart is to make all your calculations based on the close. The close is the close and that will never change. Everything else is dynamic until the bar closes.

Also - Be warned when back-testing with Renko Bars unless you have wicks (Or some call them tails) displayed your results will be REALLY, REALLY, REALLY inaccurate! The easiest way to get around this is to make sure any stop you have is equal to 2 brick sizes or greater and you will avoid a lot of BS.


Hope this helps... I am just trying to save you the hundreds of hours that I spent learning this lesson

Donovan


Reply With Quote
Thanked by:
  #3 (permalink)
jkepha
San Antonio, TX
 
Posts: 31 since Apr 2020
Thanks Given: 10
Thanks Received: 6


I've been chopping up the entries and exits to make executions better...worked well last go around, only a few trades though...

so if I test a strat where the brick size is 10 ticks and my buy is buy after one green bar, I'll go into the code and change the brick size to 1 tick, and buy after 9 green bars...


Thanks,
Ryan


Reply With Quote




Last Updated on June 21, 2020


© 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