NexusFi: Find Your Edge


Home Menu

 





Close > Close the day before


Discussion in Platforms and Indicators

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




 
Search this Thread
  #1 (permalink)
alexb1995
Ludwigshafen am Rhein
 
Posts: 4 since Jan 2017
Thanks Given: 0
Thanks Received: 0

Hello,

I'am searching for a way to compare close values of different days. The problem is, that I want to compare multiple days in a given time period, not only the last days.

Ref(Close, -5) > Ref(Close, -4) compares the values starting from today minus 5/4 days. What I want, is to compare any days in the given time period. (buy = Close of any day > Close the day before this day.)

Can anybody help me?


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
The Confluence Meter: A Multi-Layered Signal Framework B …
The Elite Circle
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
 
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)
milkysahai001
Agra+India
 
Posts: 42 since Sep 2016
Thanks Given: 17
Thanks Received: 3


alexb1995 View Post
Hello,

I'am searching for a way to compare close values of different days. The problem is, that I want to compare multiple days in a given time period, not only the last days.

Ref(Close, -5) > Ref(Close, -4) compares the values starting from today minus 5/4 days. What I want, is to compare any days in the given time period. (buy = Close of any day > Close the day before this day.)

Can anybody help me?



though it is not clear from your post. i think you can try this:

Close > Ref(Close, -1)

this should work.


Reply With Quote
  #3 (permalink)
johny
Melbourne, Australia
 
Posts: 20 since Jun 2010
Thanks Given: 0
Thanks Received: 6


Ref(Close, -5) > Ref(Close, -4) would result in an array in Amibroker whose values represent bar 6 days ago is greater than the bar 5 days ago.


Reply With Quote




Last Updated on May 10, 2017


© 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