question: do something IF current bar (or previous bar) is LLV - AmiBroker | futures io social day trading
futures io futures trading

question: do something IF current bar (or previous bar) is LLV
Updated: Views / Replies:535 / 1
Created: by choubix Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

question: do something IF current bar (or previous bar) is LLV

  #1 (permalink)
Trading Apprentice
Bangkok + Thailand
Futures Experience: None
Platform: none yet
Favorite Futures: guitar ;)
Posts: 10 since Aug 2012
Thanks: 2 given, 0 received

question: do something IF current bar (or previous bar) is LLV


I would like to calculate the ratio between MinL and MaxH only if MinL is the current bar (or the one before).

MinL and MaxH are defined as follows.

MaxH = HHV(Mom, Len);
MinL = LLV(Mom, Len);

Mom is a lengthy formula defining momentum and Len = 5 bars

I tried IIF and If statements with the following syntax to compare but I cannot get it to work.

Would anybody have an idea on how to do that please?

Thanks a bunch

Reply With Quote
  #2 (permalink)
Trading Apprentice
paris France
Futures Experience: Advanced
Platform: Amibroker Motive Wave
Favorite Futures: Stocks
Posts: 5 since Mar 2014
Thanks: 1 given, 1 received

try this :

Mom = ROC(C,1) ;
Len = 5;

MaxH = HHV(Mom, Len);
MinL = LLV(Mom, Len);

ratio_MaxMin = IIf( (mom == Minl) OR (Ref(mom,-1) == Minl) , 100* ( MaxH / MinL ),0);

Plot( ratio_MaxMin, "ratio_MaxMin", colorBlue, styleLine|styleThick);

Last edited by bob303; April 9th, 2015 at 03:43 PM.
Reply With Quote


futures io > > > > question: do something IF current bar (or previous bar) is LLV

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
current and previous Bar print highs/low above bars on chart Guss NinjaTrader 0 February 13th, 2014 11:28 AM
EasyLanguage entry in active bar on previous bar's low tolu7325 EasyLanguage Programming 3 July 29th, 2013 09:08 AM
How to step forward bar by bar (F12) with full bar not half bar? mercyman MetaTrader 1 October 23rd, 2012 04:49 PM
Best way to check for that-bar-was-in-the-previous-session? AdvancedIndicators Elite Automated NinjaTrader Trading 1 November 17th, 2011 05:27 AM
Stop using the value of an indicator on previous bar nanobiotech NinjaTrader Programming 6 March 29th, 2010 10:20 PM

All times are GMT -4. The time now is 12:40 AM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts
Page generated 2018-05-22 in 0.06 seconds with 19 queries on phoenix via your IP